SlideShare a Scribd company logo
1 of 27
Download to read offline
How to Use Excel for Insights – Part 1
September 2022
Ray Poynter
Sponsors
Communication
Agenda
• Excel basics
• Survey data basics
• Pivot tables and survey data
• Visualization
• Automation
• Q&A
Using Videos
Basics - 1
• Introducing some data
• Formulas
• Functions
• Editing Using a PC?
I am on a Mac – when I press the
Command key, PC users will typically
press the Ctrl key.
Basics - 2
Absolute references
A simple What-if
Basics - 3
Creating a standout matrix
– Utilizing absolute references
Conditional formatting
Survey - 1
Recoding data
– Using IF statements
Using the SUM, COUNT, COUNTIF functions
Survey - 2
Describing data
– Using more functions
Pivot Tables
Summarizing survey data
Visualizing
In the context of analysis
Checking for patterns
Visualizing - 2
Linking Data and Charts
Second axes
Sorting
Automating Tasks
Recording a Macro
Automating Tasks - 2
Writing VBA
– Visual Basic for Applications
Remove NA & None 1 of 3
Option Explicit ' this requires all variables to be declared
'Routine to tidy out NA from a list
'Author Ray Poynter
Sub RemoveNA()
'Declare the variables
Dim lRow As Long 'how many rows
Dim iNA As Integer 'the number strings to mark as NA
Dim sNA() As String 'An array holding all the versions of NA we are going to check for
Dim i As Integer, j As Integer 'counters
Dim sVerbatim As String ‘the verbatim we are processing at the moment
Dim iVerbatim As Integer 'which column has the verbatims in
Dim iOutput As Integer 'which column to write the cleaned verbatims
Dim bFlag As Boolean 'is a verbatim a NA?
Remove NA & None 2 of 3
Sheets("Automate 2").Select 'make the test sheet the selected one
'Define the NA codes
iNA = 2 'in this example we have just verbatims that are NA, but it could be a list of 10, 20 or more alternatives
ReDim sNA(iNA)
sNA(1) = "NA"
sNA(2) = "NONE"
'Define the input and output columns
iVerbatim = 8
iOutput = 9
'Find out how many rows of data there are
lRow = ActiveSheet.UsedRange.Rows.Count
'Create the heading
Cells(1, iOutput) = "Favourite Bank - Cleaned"
Remove NA & None 3 of 3
'Work through the rows
For i = 2 To lRow 'we start at 2, because 1 is the heading
sVerbatim = Cells(i, iVerbatim) 'read the verbatim
sVerbatim = Trim(sVerbatim) 'remove any preceding or trailing spaces
sVerbatim = UCase(sVerbatim) 'convert the verbatim to upper case
bFlag = False 'initially set the flag to not an NA
For j = 1 To iNA 'check the verbatim against each of the items in our list
If sVerbatim = sNA(j) Then bFlag = True 'If the verbatim is an NA set the flag
Next j
If bFlag = True Then
Cells(i, iOutput) = "" 'If an NA, write a blank
Else
Cells(i, iOutput) = Cells(i, iVerbatim) 'If not an NA, write the verbatim out
End If
Next i
End Sub
Q & A

More Related Content

What's hot

Disney: The Magic of Marketing Mix Analytics & Optimization
Disney: The Magic of Marketing Mix Analytics & OptimizationDisney: The Magic of Marketing Mix Analytics & Optimization
Disney: The Magic of Marketing Mix Analytics & Optimization
Vivastream
 

What's hot (20)

Statistics for data science
Statistics for data science Statistics for data science
Statistics for data science
 
Introduction to NumPy (PyData SV 2013)
Introduction to NumPy (PyData SV 2013)Introduction to NumPy (PyData SV 2013)
Introduction to NumPy (PyData SV 2013)
 
Data Visualization Design Best Practices Workshop
Data Visualization Design Best Practices WorkshopData Visualization Design Best Practices Workshop
Data Visualization Design Best Practices Workshop
 
Data Visualization in Python
Data Visualization in PythonData Visualization in Python
Data Visualization in Python
 
chap7_basic_cluster_analysis.pptx
chap7_basic_cluster_analysis.pptxchap7_basic_cluster_analysis.pptx
chap7_basic_cluster_analysis.pptx
 
Python pandas Library
Python pandas LibraryPython pandas Library
Python pandas Library
 
Python Seaborn Data Visualization
Python Seaborn Data Visualization Python Seaborn Data Visualization
Python Seaborn Data Visualization
 
Grid search, pipeline, featureunion
Grid search, pipeline, featureunionGrid search, pipeline, featureunion
Grid search, pipeline, featureunion
 
Disney: The Magic of Marketing Mix Analytics & Optimization
Disney: The Magic of Marketing Mix Analytics & OptimizationDisney: The Magic of Marketing Mix Analytics & Optimization
Disney: The Magic of Marketing Mix Analytics & Optimization
 
Recommendation Systems
Recommendation SystemsRecommendation Systems
Recommendation Systems
 
Python For Data Analysis | Python Pandas Tutorial | Learn Python | Python Tra...
Python For Data Analysis | Python Pandas Tutorial | Learn Python | Python Tra...Python For Data Analysis | Python Pandas Tutorial | Learn Python | Python Tra...
Python For Data Analysis | Python Pandas Tutorial | Learn Python | Python Tra...
 
Data visualization
Data visualizationData visualization
Data visualization
 
pandas - Python Data Analysis
pandas - Python Data Analysispandas - Python Data Analysis
pandas - Python Data Analysis
 
support vector regression
support vector regressionsupport vector regression
support vector regression
 
Introduction to Python Pandas for Data Analytics
Introduction to Python Pandas for Data AnalyticsIntroduction to Python Pandas for Data Analytics
Introduction to Python Pandas for Data Analytics
 
Data Visualization Tools
Data Visualization ToolsData Visualization Tools
Data Visualization Tools
 
Tableau ppt
Tableau pptTableau ppt
Tableau ppt
 
08 clustering
08 clustering08 clustering
08 clustering
 
Introduction to matplotlib
Introduction to matplotlibIntroduction to matplotlib
Introduction to matplotlib
 
ARIMA
ARIMA ARIMA
ARIMA
 

Similar to How to use Excel for Market Research and Insight - Part 1

matlab-130408153714-phpapp02_lab123.ppsx
matlab-130408153714-phpapp02_lab123.ppsxmatlab-130408153714-phpapp02_lab123.ppsx
matlab-130408153714-phpapp02_lab123.ppsx
lekhacce
 

Similar to How to use Excel for Market Research and Insight - Part 1 (20)

Matlab ppt
Matlab pptMatlab ppt
Matlab ppt
 
MySQL performance tuning
MySQL performance tuningMySQL performance tuning
MySQL performance tuning
 
matlab-130408153714-phpapp02_lab123.ppsx
matlab-130408153714-phpapp02_lab123.ppsxmatlab-130408153714-phpapp02_lab123.ppsx
matlab-130408153714-phpapp02_lab123.ppsx
 
Matlab introduction
Matlab introductionMatlab introduction
Matlab introduction
 
Mssql
MssqlMssql
Mssql
 
Raushan's MATLB PPT..pptx
Raushan's MATLB PPT..pptxRaushan's MATLB PPT..pptx
Raushan's MATLB PPT..pptx
 
Python for data analysis
Python for data analysisPython for data analysis
Python for data analysis
 
Python-for-Data-Analysis.pptx
Python-for-Data-Analysis.pptxPython-for-Data-Analysis.pptx
Python-for-Data-Analysis.pptx
 
Python for Data Analysis.pdf
Python for Data Analysis.pdfPython for Data Analysis.pdf
Python for Data Analysis.pdf
 
Python-for-Data-Analysis.pptx
Python-for-Data-Analysis.pptxPython-for-Data-Analysis.pptx
Python-for-Data-Analysis.pptx
 
Python-for-Data-Analysis.pdf
Python-for-Data-Analysis.pdfPython-for-Data-Analysis.pdf
Python-for-Data-Analysis.pdf
 
Lecture 9.pptx
Lecture 9.pptxLecture 9.pptx
Lecture 9.pptx
 
Matlab-1.pptx
Matlab-1.pptxMatlab-1.pptx
Matlab-1.pptx
 
1.1Introduction to matlab.pptx
1.1Introduction to matlab.pptx1.1Introduction to matlab.pptx
1.1Introduction to matlab.pptx
 
Matlab introduction
Matlab introductionMatlab introduction
Matlab introduction
 
An Introduction to MATLAB for beginners
An Introduction to MATLAB for beginnersAn Introduction to MATLAB for beginners
An Introduction to MATLAB for beginners
 
Lines and planes in space
Lines and planes in spaceLines and planes in space
Lines and planes in space
 
MS SQL Server.ppt
MS SQL Server.pptMS SQL Server.ppt
MS SQL Server.ppt
 
Introduction to Matlab.ppt
Introduction to Matlab.pptIntroduction to Matlab.ppt
Introduction to Matlab.ppt
 
Lecture 02: Preliminaries of Data structure
Lecture 02: Preliminaries of Data structureLecture 02: Preliminaries of Data structure
Lecture 02: Preliminaries of Data structure
 

More from Ray Poynter

More from Ray Poynter (20)

The State of AI in Insights and Research 2024: Results and Findings
The State of AI in Insights and Research 2024: Results and FindingsThe State of AI in Insights and Research 2024: Results and Findings
The State of AI in Insights and Research 2024: Results and Findings
 
ResearchWiseAI - an artificial intelligence driven research data analysis tool
ResearchWiseAI - an artificial intelligence driven research data analysis toolResearchWiseAI - an artificial intelligence driven research data analysis tool
ResearchWiseAI - an artificial intelligence driven research data analysis tool
 
AI-powered interviewing: Best practices from Yasna
AI-powered interviewing: Best practices from YasnaAI-powered interviewing: Best practices from Yasna
AI-powered interviewing: Best practices from Yasna
 
Artificial Intelligence and Qual: The Story So Far
Artificial Intelligence and Qual: The Story So FarArtificial Intelligence and Qual: The Story So Far
Artificial Intelligence and Qual: The Story So Far
 
State of Research Insights in Q1, 2024 from NewMR
State of Research Insights in Q1, 2024 from NewMRState of Research Insights in Q1, 2024 from NewMR
State of Research Insights in Q1, 2024 from NewMR
 
Sudden Death of Beliefs
Sudden Death of BeliefsSudden Death of Beliefs
Sudden Death of Beliefs
 
Uncovering Consumers’ Hidden Narratives
Uncovering Consumers’ Hidden NarrativesUncovering Consumers’ Hidden Narratives
Uncovering Consumers’ Hidden Narratives
 
Narrative Exploration of New Categories at Mondelēz
Narrative Exploration of New Categories at MondelēzNarrative Exploration of New Categories at Mondelēz
Narrative Exploration of New Categories at Mondelēz
 
The Future in Focus
The Future in FocusThe Future in Focus
The Future in Focus
 
The Future in Focus
The Future in FocusThe Future in Focus
The Future in Focus
 
The State of Insights – September 2023
The State of Insights – September 2023The State of Insights – September 2023
The State of Insights – September 2023
 
Research Thinking in the age of AI
Research Thinking in the age of AIResearch Thinking in the age of AI
Research Thinking in the age of AI
 
How might AI impact Research and Insights over the next two years?
How might AI impact Research and Insights over the next two years?How might AI impact Research and Insights over the next two years?
How might AI impact Research and Insights over the next two years?
 
From Words to Wisdom: Unleashing the Potential of Language Models for Human-C...
From Words to Wisdom: Unleashing the Potential of Language Models for Human-C...From Words to Wisdom: Unleashing the Potential of Language Models for Human-C...
From Words to Wisdom: Unleashing the Potential of Language Models for Human-C...
 
ChatGPT for Social Media Listening: practical application with YouScan’s Insi...
ChatGPT for Social Media Listening: practical application with YouScan’s Insi...ChatGPT for Social Media Listening: practical application with YouScan’s Insi...
ChatGPT for Social Media Listening: practical application with YouScan’s Insi...
 
Using Generative AI to Assess the Quality of Open-Ended Responses in Surveys
Using Generative AI to Assess the Quality of Open-Ended Responses in SurveysUsing Generative AI to Assess the Quality of Open-Ended Responses in Surveys
Using Generative AI to Assess the Quality of Open-Ended Responses in Surveys
 
Exploring the future of verbatim coding with ChatGPT
Exploring the future of verbatim coding with ChatGPTExploring the future of verbatim coding with ChatGPT
Exploring the future of verbatim coding with ChatGPT
 
Using Generative AI to bring Qualitative Capabilities to Quantitative Surveys
Using Generative AI to bring Qualitative Capabilities to Quantitative SurveysUsing Generative AI to bring Qualitative Capabilities to Quantitative Surveys
Using Generative AI to bring Qualitative Capabilities to Quantitative Surveys
 
How AI / ChatGPT Drives Business Growth
How AI / ChatGPT Drives Business GrowthHow AI / ChatGPT Drives Business Growth
How AI / ChatGPT Drives Business Growth
 
Tech for tech’s sake? Learnings from experiments with AI in consumer research
Tech for tech’s sake? Learnings from experiments with AI in consumer researchTech for tech’s sake? Learnings from experiments with AI in consumer research
Tech for tech’s sake? Learnings from experiments with AI in consumer research
 

Recently uploaded

Recently uploaded (20)

philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the life
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
 
How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptx
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
e-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopale-Sealing at EADTU by Kamakshi Rajagopal
e-Sealing at EADTU by Kamakshi Rajagopal
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
 
Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).Dementia (Alzheimer & vasular dementia).
Dementia (Alzheimer & vasular dementia).
 
IPL Online Quiz by Pragya; Question Set.
IPL Online Quiz by Pragya; Question Set.IPL Online Quiz by Pragya; Question Set.
IPL Online Quiz by Pragya; Question Set.
 

How to use Excel for Market Research and Insight - Part 1

  • 1. How to Use Excel for Insights – Part 1 September 2022 Ray Poynter
  • 3. Agenda • Excel basics • Survey data basics • Pivot tables and survey data • Visualization • Automation • Q&A Using Videos
  • 4. Basics - 1 • Introducing some data • Formulas • Functions • Editing Using a PC? I am on a Mac – when I press the Command key, PC users will typically press the Ctrl key.
  • 5.
  • 6. Basics - 2 Absolute references A simple What-if
  • 7.
  • 8. Basics - 3 Creating a standout matrix – Utilizing absolute references Conditional formatting
  • 9.
  • 10. Survey - 1 Recoding data – Using IF statements Using the SUM, COUNT, COUNTIF functions
  • 11.
  • 12. Survey - 2 Describing data – Using more functions
  • 13.
  • 15.
  • 16. Visualizing In the context of analysis Checking for patterns
  • 17.
  • 18. Visualizing - 2 Linking Data and Charts Second axes Sorting
  • 19.
  • 21.
  • 22. Automating Tasks - 2 Writing VBA – Visual Basic for Applications
  • 23.
  • 24. Remove NA & None 1 of 3 Option Explicit ' this requires all variables to be declared 'Routine to tidy out NA from a list 'Author Ray Poynter Sub RemoveNA() 'Declare the variables Dim lRow As Long 'how many rows Dim iNA As Integer 'the number strings to mark as NA Dim sNA() As String 'An array holding all the versions of NA we are going to check for Dim i As Integer, j As Integer 'counters Dim sVerbatim As String ‘the verbatim we are processing at the moment Dim iVerbatim As Integer 'which column has the verbatims in Dim iOutput As Integer 'which column to write the cleaned verbatims Dim bFlag As Boolean 'is a verbatim a NA?
  • 25. Remove NA & None 2 of 3 Sheets("Automate 2").Select 'make the test sheet the selected one 'Define the NA codes iNA = 2 'in this example we have just verbatims that are NA, but it could be a list of 10, 20 or more alternatives ReDim sNA(iNA) sNA(1) = "NA" sNA(2) = "NONE" 'Define the input and output columns iVerbatim = 8 iOutput = 9 'Find out how many rows of data there are lRow = ActiveSheet.UsedRange.Rows.Count 'Create the heading Cells(1, iOutput) = "Favourite Bank - Cleaned"
  • 26. Remove NA & None 3 of 3 'Work through the rows For i = 2 To lRow 'we start at 2, because 1 is the heading sVerbatim = Cells(i, iVerbatim) 'read the verbatim sVerbatim = Trim(sVerbatim) 'remove any preceding or trailing spaces sVerbatim = UCase(sVerbatim) 'convert the verbatim to upper case bFlag = False 'initially set the flag to not an NA For j = 1 To iNA 'check the verbatim against each of the items in our list If sVerbatim = sNA(j) Then bFlag = True 'If the verbatim is an NA set the flag Next j If bFlag = True Then Cells(i, iOutput) = "" 'If an NA, write a blank Else Cells(i, iOutput) = Cells(i, iVerbatim) 'If not an NA, write the verbatim out End If Next i End Sub
  • 27. Q & A