• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

How to Convert a Multiple Response Survey Question to Binary Responses|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / How to Convert a Multiple Response Survey Question to Binary Responses|General Excel Questions & Answers|Excel Forum|My Online Training Hub

Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…How to Convert a Multiple Response …
sp_PrintTopic sp_TopicIcon
How to Convert a Multiple Response Survey Question to Binary Responses
Avatar
David Bryant

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
December 30, 2022
sp_UserOfflineSmall Offline
1
December 30, 2022 - 6:05 am
sp_Permalink sp_Print

In the attached file you can see that respondents were asked to identify in columns A through H, which of the 15 hospitals their family had visited in the past year. Each hospital is identified as 1 through 15. Respondents could answer this question in any order and could identify up to 8 hospitals. I want to convert these answers so that columns I through W will have a 1 or 0.

So, in row 2, the respondent indicated that they visited hospital 3. I would like to find that 3 and insert a "1" in column K for IP3 and all of the rest of the columns (I through W) for that first respondent will be replaced with zeros.

You can see in row 8, I would like the lookup function to find all 8 numbers and insert 1's in for hospitals 3, 4, 6, 8, 9, 13, 14, and 15. Everything else in that row will be replace with 0's.

I have tried using the IF function with a nested LOOKUP function but can't seem to get it to work correctly.

Any ideas?

Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 845
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
2
January 1, 2023 - 8:48 am
sp_Permalink sp_Print

Hello,

See attached file for a solution.

I used COUNTIF to count the occurences of a value.

Br,
Anders

Avatar
David Bryant

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
December 30, 2022
sp_UserOfflineSmall Offline
3
January 11, 2023 - 9:45 am
sp_Permalink sp_Print

Thanks. That worked.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 170
Currently Online: Riny van Eekelen, Christian Huapaya, Laxmi Praveen
Guest(s) 41
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1431
Anders Sehlstedt: 845
Velouria: 574
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 213
A.Maurizio: 202
Aye Mu: 201
Jessica Stewart: 185
Newest Members:
Vicky Otosnika
Abhishek Singh
Kevin Sojourner
Kara Weiss
And Woox
Armani Quenga
moshood bello
annelies b
James1989
lucy gilmour
Forum Stats:
Groups: 3
Forums: 24
Topics: 6045
Posts: 26523

 

Member Stats:
Guest Posters: 49
Members: 31492
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Riny van Eekelen
© Simple:Press —sp_Information
  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
 
  • About My Online Training Hub
  • Contact
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Copyright © 2023 · My Online Training Hub · All Rights Reserved

Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.

Download A Free Copy of 100 Excel Tips & Tricks

excel tips and tricks ebook

We respect your privacy. We won’t spam you.

x