Consolidate multiple rows of data and remove blank rows

{ 3 Comments }

Imagine a dataset representing questions answered by various respondents in a survey.  The first column has the Respondent’s Name and thereafter there is one column each for a question posed in the survey.  The data extracted from the system suffers from the following fallacies:

1. There are blank rows; and
2. Multiple questions answered by one respondent appear in multiple lines rather than in one line.

One may want to delete the blank rows and consolidate the dataset to show only one row per respondent.

Here’s a snapshot of the source data and expected result

You may refer to my solution in this workbook.

Here’s a short video of my solution

Leave a Comment

Your email address will not be published.

*

  • A B C
    1) unique ID Data Desired Result
    2) ab1 X (XZ)
    3) ab1 Z
    4) ab2 W (WB)
    5) ab2 B

    how can i most efficiently use excel to recognize if A2 and A3 has the same unique id to consolidate the text values of B2 and B3 into C2.
    I have almost 1200 entries and I don’t believe that using the =(B2&B3) in cell C2 is the best/fastest way to do this.