BookmarkSubscribeRSS Feed
tmtemples
Fluorite | Level 6

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

 

 

 

 

3 REPLIES 3
Reeza
Super User

COALESCC function if only one response. 

If multiple responses use CATX to include a separator 

tmtemples
Fluorite | Level 6

thank you!

ballardw
Super User

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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to connect to databases in SAS Viya

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.

Discussion stats
  • 3 replies
  • 997 views
  • 2 likes
  • 3 in conversation