I have a spreadsheet from a survey that contains multiple column results for one question. There is a separate column for each possible response to the question.
Is there a way to combine these into one?
thank you for any assistance!
Example:
Affiliated Units Affiliated Units Affiliated Units Affiliated Units
8MICU
8MPCU
8MPCU
10MPCU
8MICU
9MICU
9MICU
COALESCC function if only one response.
If multiple responses use CATX to include a separator
thank you!
And in the interest of "fix it as early in the process as possible" I would examine the settings in you your survey software. Some survey data collection programs I have worked with have 2 or more data "export" formats with the default often as you are describing. The fun parts are finding the settings for the multiple response type questions but often you can create an export profile that makes things easier in the long run, at least if you use the same survey (or data collection approach) multiple times.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Lock in the best rate now before the price increases on April 1.
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.