Problem: Clean up of data that I have no control over the source
See attached workbook
Source data looks like:
"Review ID" "Question Text" "Answer Text Line 1a"
"Blank Cell" "Blank Cell" "Answer Text Line 2a"
"Blank Cell" "Blank Cell" "Answer Text Line 3a"
"Review ID" "Question Text" "Answer Text Line 1b"
"Blank Cell" "Blank Cell" "Answer Text Line 2b"
"Blank Cell" "Blank Cell" "Answer Text Line 3b"
"Blank Cell" "Blank Cell" "Answer Text Line 4b"
"Review ID" "Question Text" "Answer Text Line 1c"
"Blank Cell" "Blank Cell" "Answer Text Line 2c"
Result required:
"Review ID" "Question Text" "Answer Text Line 1a & 2a & 3a"
"Review ID" "Question Text" "Answer Text Line 1b & 2b & 3b & 4b"
"Review ID" "Question Text" "Answer Text Line 1c & 2c"
ie I want to be able to concatenate the arbitrary number of "Answer" lines (let's say minimum of 1 to maximum of 20 lines) for each "Review ID" and "Question Text" neither of which is independently unique, but the AND of the two is unique.
I'd also be interested to know how to insert a return character in a cell using an equation ie equivalent to alt-return when typing directly in a cell to start a new line.
My solutions involve using ISTEXT() and CONCATENATE() functions with IF(). However, I'm unable to stop the concatenation to only pickup the required answer lines and not those of the following question.
Thanks in advance for any hints.
Cheers, XL4NEthing
Bookmarks