+ Reply to Thread
Results 1 to 4 of 4

Multiple Variables in a Single Column to a Dummy Variable Matrix

  1. #1
    Registered User
    Join Date
    02-14-2017
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    19

    Multiple Variables in a Single Column to a Dummy Variable Matrix

    I have an excel file with 1 just column. The thing is this column has multiple fields in each cell, all of which are separated by a comma.

    Example would be:
    A,B,C,D
    A,B,C
    A,B
    A
    A,D

    I wanted to have a dummy variable matrix such that it would look something as attached.

    Dummy Data.JPG

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Multiple Variables in a Single Column to a Dummy Variable Matrix

    With your data in A2 down and A,B,C,D in B1:E1

    in B2

    =--(ISNUMBER(SEARCH(B$1,$A2)))

    Copy across and down

  3. #3
    Registered User
    Join Date
    02-14-2017
    Location
    Philippines
    MS-Off Ver
    2010
    Posts
    19

    Re: Multiple Variables in a Single Column to a Dummy Variable Matrix

    Works perfectly. Thanks a lot!

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Multiple Variables in a Single Column to a Dummy Variable Matrix

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Multiple Variables in a single column
    By ExcelHelp813 in forum Excel General
    Replies: 1
    Last Post: 05-23-2012, 02:40 PM
  2. Replies: 4
    Last Post: 01-14-2011, 09:30 PM
  3. Dummy variable and multiple regression
    By Excel_mastah in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-07-2009, 04:49 PM
  4. dummy variables
    By Miloud in forum Excel General
    Replies: 2
    Last Post: 11-25-2009, 02:50 PM
  5. Dummy variables
    By Miloud in forum Excel General
    Replies: 2
    Last Post: 02-06-2009, 03:55 AM
  6. LINEST for dummy variables?
    By BlueFortyTwo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-25-2007, 10:00 PM
  7. Insert dummy variables
    By Chris_t_2k5 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-26-2006, 09:30 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1