SlideShare a Scribd company logo
Transforming multiple
responses into a series of
dummy variables
Survey Methods
In Google Form, a “checkboxes” question allows
respondents to choose multiple response
categories.
The dataset will look like this.
To separate items (response categories), go to
DATA menu in Excel and choose “Text to
Columns.”
Click on Delimited.
Add Semicolon as Delimiter and voila!
The font color has been changed.
To more effectively analyze this data, we want the same fruit
(response category) to be in the same column. In the table below,
one could quickly and easily see that respondents #1 and #4 like
apples, but not respondents #2 and #3, etc.
One could
manually
manipulate the
data (sort, copy,
paste) to do this,
but it’s tedious.
There may be a number of solutions to this
problem. One is to use function COUNTIF.
Then look for COUNTIF.
Look in the cells B2, C2, D2, E2 and count
the number of times the word “Apples”
appear.
The answer is 1. This respondent likes
apples. 0 if s/he doesn’t like apples.
Do the same for the other three fruits.
Use absolute reference (“$”) if necessary. Make sure the range is constant (B, C, D, E)
F, G, H, and I columns contain dummy variables (1 if the
respondent likes the fruit, 0 if not). Then we can count the total
number of 1s. #1 and #2 both like two kinds of fruit. #4 likes all
four.
We don’t need the columns B, C, D, E any
more, do we? Let’s delete them.
No, they cannot be deleted because the COUNTIF (and SUM) data
depend on those original columns.
Options
-Hide the unwanted columns
-Copy and paste the values (using Paste Special). Then the COUNTIF
data are no longer dependent on the original data.

More Related Content

PDF
3 inner plumbing Excel tips
PDF
DuplicatesExcelDemo
PDF
PPTX
MS Sql Server: Joining Databases
PPTX
Basics of excel for beginners
PPTX
Joins And Its Types
PPTX
joins and subqueries in big data analysis
PPTX
Sql joins inner join self join outer joins
3 inner plumbing Excel tips
DuplicatesExcelDemo
MS Sql Server: Joining Databases
Basics of excel for beginners
Joins And Its Types
joins and subqueries in big data analysis
Sql joins inner join self join outer joins

What's hot (20)

PPT
Join sql
PPTX
Lesson 4 Advanced Spreadsheet Skills/Post-Test
PPTX
SQL JOIN
PPT
Microsoft excel beginner
PPT
Microsoft excel beginner
PPTX
Microsoft Excel
PPSX
Join query
PPTX
Oracle: Joins
DOC
SQL Joins
PPT
Using excel
PDF
Microsoft excel 2007 programme for effective tertiary institution result grading
PPT
Types Of Join In Sql Server - Join With Example In Sql Server
PPTX
MySQL JOIN & UNION
PPTX
Excel Tutorial - The Pocket Money Calculator
PPTX
Joining
PPT
Lab 4 excel basics
PPTX
L4 advanced spreadsheet skills
PPT
Sql join
PPTX
Lesson 4 advance spreadsheets skills cost of ingredients.xlsx.
Join sql
Lesson 4 Advanced Spreadsheet Skills/Post-Test
SQL JOIN
Microsoft excel beginner
Microsoft excel beginner
Microsoft Excel
Join query
Oracle: Joins
SQL Joins
Using excel
Microsoft excel 2007 programme for effective tertiary institution result grading
Types Of Join In Sql Server - Join With Example In Sql Server
MySQL JOIN & UNION
Excel Tutorial - The Pocket Money Calculator
Joining
Lab 4 excel basics
L4 advanced spreadsheet skills
Sql join
Lesson 4 advance spreadsheets skills cost of ingredients.xlsx.
Ad

Similar to Data tools transform_multiple_dummy (20)

PDF
𝐁𝐚𝐬𝐢𝐜 𝐃𝐚𝐭𝐚 𝐂𝐥𝐞𝐚𝐧𝐢𝐧𝐠 for dta analytics
PPTX
OLIVE GRACE COT Presentation.powerpointx
PPTX
OLIVE GRACE COT Presentation for Education
PDF
Splitter Student version Tutorial June 2020 - English
PDF
Excel functionssimplymeasured
PPTX
advance spreadsheet skils LESSON 4 - PPT.pptx
PDF
toolkit13_sec9.pdf
PDF
Splitter Pro version Tutorial June 2020 - English
DOCX
Charts charts charts! I loved working with the charts feature. My pa
PDF
100-Excel-Tips.pdf
PDF
The Definitive 100 Most Useful Excel Tips
PPT
Excel intermediate
PDF
Empowerment Technologies - Module 5
PDF
Microsoft Forms Survey Data Feb 2021
DOC
data Sreening.doc
PPT
I wish I could... Excel Tips
PDF
ICDL Advanced Excel 2010 - Tutorial
PPT
Microsoft excel
DOC
Eds bootcamp handout
PPTX
Factorials permutations and_combinations_using_excel
𝐁𝐚𝐬𝐢𝐜 𝐃𝐚𝐭𝐚 𝐂𝐥𝐞𝐚𝐧𝐢𝐧𝐠 for dta analytics
OLIVE GRACE COT Presentation.powerpointx
OLIVE GRACE COT Presentation for Education
Splitter Student version Tutorial June 2020 - English
Excel functionssimplymeasured
advance spreadsheet skils LESSON 4 - PPT.pptx
toolkit13_sec9.pdf
Splitter Pro version Tutorial June 2020 - English
Charts charts charts! I loved working with the charts feature. My pa
100-Excel-Tips.pdf
The Definitive 100 Most Useful Excel Tips
Excel intermediate
Empowerment Technologies - Module 5
Microsoft Forms Survey Data Feb 2021
data Sreening.doc
I wish I could... Excel Tips
ICDL Advanced Excel 2010 - Tutorial
Microsoft excel
Eds bootcamp handout
Factorials permutations and_combinations_using_excel
Ad

More from Keiko Ono (20)

PDF
3-D geospatial data for disaster management and development
PDF
Political science meets computer science
PDF
人口知能・自然言語処理・社会科学・政治学
PDF
Data science week_1
PDF
Data science week_2_visualization
PDF
US presidential selection: the Electoral College challenged (again)
PDF
The latest trends in academic research on GIS
PDF
サーベイに基づく公的データが問題になった2例(2018年)
PDF
比べてみた関関同立の研究力 Top Kansai private universities' research output
PDF
Research analysis waseda_2018
PDF
Journal analysis SSJJ 2018
PDF
Journal analysis JJPS_2017
PDF
How academic research on GitHub has evolved in the last several years
PDF
Multiple regression: creating a dummy variable and an interaction
PDF
The Russians, the US presidency in peril, and the Mueller investigation
PDF
Multiple regression with interaction term 2018
PDF
Data visualization and its application to politics and elections
PPTX
Saitama
PDF
Open meteorological data_himeji
PDF
Encoding in excel
3-D geospatial data for disaster management and development
Political science meets computer science
人口知能・自然言語処理・社会科学・政治学
Data science week_1
Data science week_2_visualization
US presidential selection: the Electoral College challenged (again)
The latest trends in academic research on GIS
サーベイに基づく公的データが問題になった2例(2018年)
比べてみた関関同立の研究力 Top Kansai private universities' research output
Research analysis waseda_2018
Journal analysis SSJJ 2018
Journal analysis JJPS_2017
How academic research on GitHub has evolved in the last several years
Multiple regression: creating a dummy variable and an interaction
The Russians, the US presidency in peril, and the Mueller investigation
Multiple regression with interaction term 2018
Data visualization and its application to politics and elections
Saitama
Open meteorological data_himeji
Encoding in excel

Recently uploaded (20)

PPTX
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
PDF
[EN] Industrial Machine Downtime Prediction
PPTX
Business Ppt On Nestle.pptx huunnnhhgfvu
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
PPTX
Introduction to Knowledge Engineering Part 1
PDF
Mega Projects Data Mega Projects Data
PPTX
climate analysis of Dhaka ,Banglades.pptx
PDF
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
PDF
Introduction to the R Programming Language
PPTX
STERILIZATION AND DISINFECTION-1.ppthhhbx
PDF
Business Analytics and business intelligence.pdf
PPT
Quality review (1)_presentation of this 21
PPTX
Market Analysis -202507- Wind-Solar+Hybrid+Street+Lights+for+the+North+Amer...
PPTX
Introduction to machine learning and Linear Models
PDF
Clinical guidelines as a resource for EBP(1).pdf
PPTX
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
PPTX
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
PPTX
SAP 2 completion done . PRESENTATION.pptx
PDF
annual-report-2024-2025 original latest.
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
[EN] Industrial Machine Downtime Prediction
Business Ppt On Nestle.pptx huunnnhhgfvu
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
Introduction to Knowledge Engineering Part 1
Mega Projects Data Mega Projects Data
climate analysis of Dhaka ,Banglades.pptx
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
Introduction to the R Programming Language
STERILIZATION AND DISINFECTION-1.ppthhhbx
Business Analytics and business intelligence.pdf
Quality review (1)_presentation of this 21
Market Analysis -202507- Wind-Solar+Hybrid+Street+Lights+for+the+North+Amer...
Introduction to machine learning and Linear Models
Clinical guidelines as a resource for EBP(1).pdf
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
SAP 2 completion done . PRESENTATION.pptx
annual-report-2024-2025 original latest.

Data tools transform_multiple_dummy

  • 1. Transforming multiple responses into a series of dummy variables Survey Methods
  • 2. In Google Form, a “checkboxes” question allows respondents to choose multiple response categories. The dataset will look like this.
  • 3. To separate items (response categories), go to DATA menu in Excel and choose “Text to Columns.” Click on Delimited.
  • 4. Add Semicolon as Delimiter and voila! The font color has been changed.
  • 5. To more effectively analyze this data, we want the same fruit (response category) to be in the same column. In the table below, one could quickly and easily see that respondents #1 and #4 like apples, but not respondents #2 and #3, etc. One could manually manipulate the data (sort, copy, paste) to do this, but it’s tedious.
  • 6. There may be a number of solutions to this problem. One is to use function COUNTIF. Then look for COUNTIF. Look in the cells B2, C2, D2, E2 and count the number of times the word “Apples” appear.
  • 7. The answer is 1. This respondent likes apples. 0 if s/he doesn’t like apples.
  • 8. Do the same for the other three fruits. Use absolute reference (“$”) if necessary. Make sure the range is constant (B, C, D, E) F, G, H, and I columns contain dummy variables (1 if the respondent likes the fruit, 0 if not). Then we can count the total number of 1s. #1 and #2 both like two kinds of fruit. #4 likes all four.
  • 9. We don’t need the columns B, C, D, E any more, do we? Let’s delete them. No, they cannot be deleted because the COUNTIF (and SUM) data depend on those original columns. Options -Hide the unwanted columns -Copy and paste the values (using Paste Special). Then the COUNTIF data are no longer dependent on the original data.