Forum

Creating Multiple R...
 
Notifications
Clear all

Creating Multiple Rows based on Cell Contents

4 Posts
2 Users
0 Reactions
81 Views
(@nrunte)
Posts: 4
Active Member
Topic starter
 

I'm having a bit of a "brain block: on this and hoping someone can give me some ideas. 

I have an Excel file built by Microsoft forms which allows multiple responses to some questions.  Each multiple selection question stores its response in its own cell with each selected item separated by a semicolon.  The form captures an unique product, 1 to many depts. who use the product (12 depts.) , 1 to many uses for the product (6 different uses) and 1 to many unacceptable outcomes of the product (6). 

What I'm planning to do is create unique table for each question using the product as a unique key.  Within each table, I want to create a separate row containing the product and a response.  For example, if the response to "How many depts. use this product?" contains 8 different depts. separated by semicolons, I want to create 8 unique rows for the dept. table.

I just can't seem to find a solution to parsing the answers and creating a unique product/dept row for each answer.  Any idea how this could be done? Or, on the other hand, am I completely off-base with this approach?  I need to be able extract how many depts. use a product [n] in what manner and who may be using it inappropriately.  

Thank you

 
Posted : 26/10/2020 5:59 pm
(@mynda)
Posts: 4761
Member Admin
 

Hi Norman,

You can use Power Query to split the columns into rows by the semi-colon delimiter. If you need help with this, please upload a small sample Excel file.

Mynda

 
Posted : 26/10/2020 6:48 pm
(@nrunte)
Posts: 4
Active Member
Topic starter
 

Thanks - Power Query --> From Table --> Split Column by Delimiter --> Advanced Options --> Rows worked liked a charm.  Just couldn't remember where to start Smile

 
Posted : 26/10/2020 10:16 pm
(@mynda)
Posts: 4761
Member Admin
 

Glad you got it working, Norman!

 
Posted : 27/10/2020 2:08 am
Share: