1. Welcome to Chandoo.org Forums. Short message for you

    Hi Guest,

    Thanks for joining Chandoo.org forums. We are here to make you awesome in Excel. Before you post your first question, please read this short introduction guide. When posting or responding to questions please remember our values at Chandoo.org are: Humility, Passion, Fun, Awesomeness, Simplicity, Sharing Remember that we have people here for whom English is not there first language and we need to allow for this in our dealings.

    Yours,
    Chandoo
  2. Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  3. When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Converting semicolon separated column values to individual rows

Discussion in 'Ask an Excel Question' started by shikarishambu, Jan 13, 2019.

  1. shikarishambu

    shikarishambu New Member

    Messages:
    5
    I have a spreadsheet that lists entity and its users

    Entity Name Users
    XYZ Entity abc; def; ghi; ...

    I want to convert this to
    Entity User
    XYZ Entity abc
    XYZ Entity def
    XYZ Entity ghi

    Is there a way to do it in Excel?

    Attached Files:

  2. bosco_yip

    bosco_yip Excel Ninja

    Messages:
    2,105
    upload_2019-1-14_2-18-24.png

    Perhaps,

    1] In D2, copied down :

    =IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW($2:$3)/((LEN($B$2:$B$3)-LEN(SUBSTITUTE($B$2:$B$3,";",""))+(RIGHT($B$2:$B$3)<>";"))>=COLUMN($A:$J)),ROWS($1:1))),"")

    2] In E2, copied down :

    =IF(D2="","",TRIM(MID(SUBSTITUTE(";"&VLOOKUP(D2,A$2:B$3,2,0),";",REPT(" ",99)),COUNTIF(D$2:D2,D2)*99,99)))

    Regards
    Bosco

    Attached Files:

    Thomas Kuriakose likes this.
  3. vletm

    vletm Excel Ninja

    Messages:
    4,645

    Attached Files:

    Thomas Kuriakose likes this.
  4. shikarishambu

    shikarishambu New Member

    Messages:
    5
    Thanks everyone. I was able to use PowerQuery and do it.

Share This Page