+ Reply to Thread
Results 1 to 11 of 11

Transpose single row containing semicolon separated values to column

  1. #1
    Registered User
    Join Date
    07-15-2013
    Location
    Italia
    MS-Off Ver
    Excel 2011
    Posts
    17

    Transpose single row containing semicolon separated values to column

    Hi,

    I have a network database which is in the following format:
    the first column contains the source node and the second column contains all the nodes linked to that source node separated by semicolons.

    For example, cell A1: 1 _ cell B1: 2; 3; 4; 9
    [I'll use this notation: 1 -- 2; 3; 4; 9]

    I need to convert this to:
    1 -- 2
    1 -- 3
    1 -- 4
    1 -- 9

    Is there an easy way to do it?

    Oh, the number of links varies.

    Of course I could convert the text to columns and then manually transpose every single row, but the database is big and I'd like to find an automated way to do this.

    Thank you very much!

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Transpose single row containing semicolon separated values to column

    Could you post a workbook with a small sample of data?

  3. #3
    Registered User
    Join Date
    07-15-2013
    Location
    Italia
    MS-Off Ver
    Excel 2011
    Posts
    17

    Re: Transpose single row containing semicolon separated values to column

    Sure! Here it is!

    Example.xlsx

    Three sheets: "What I have", "What I need" (first-best solution); "Acceptable" (second-best solution if first -best too difficult).

    Thanks a lot!

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Transpose single row containing semicolon separated values to column

    Try this:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-15-2013
    Location
    Italia
    MS-Off Ver
    Excel 2011
    Posts
    17

    Re: Transpose single row containing semicolon separated values to column

    Thank you very much for your quick reply, Stephen.

    Unfortunately, it throws me runtime error 424 "Object required".

    I don't know if I'm doing something wrong...

    Thanks a lot.

  6. #6
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Transpose single row containing semicolon separated values to column

    It worked for me on your file. Which line errors?

  7. #7
    Registered User
    Join Date
    07-15-2013
    Location
    Italia
    MS-Off Ver
    Excel 2011
    Posts
    17

    Re: Transpose single row containing semicolon separated values to column

    Line 6: "For Each r ..."

  8. #8
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Transpose single row containing semicolon separated values to column

    That's odd. Are you trying this on a different file from the one you posted here?

  9. #9
    Registered User
    Join Date
    07-15-2013
    Location
    Italia
    MS-Off Ver
    Excel 2011
    Posts
    17

    Re: Transpose single row containing semicolon separated values to column

    No, exactly the same one..

    Actually, the real thing I need is a bit more complicated: here's the "real" thing.

    Example2.xlsx

    Thanks!

  10. #10
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Transpose single row containing semicolon separated values to column

    Lordy, that's quite different, why didn't you post that in the first place?!

  11. #11
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Transpose single row containing semicolon separated values to column

    Hi Wilco,
    will this work on the Mac
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Macro to match values in cells separated by semicolon and comma
    By Ale84 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-21-2013, 11:00 PM
  2. separated by a semicolon
    By Kiluk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2013, 02:38 AM
  3. Transpose multiple comma separated values
    By SRd240sx in forum Excel General
    Replies: 2
    Last Post: 12-07-2009, 09:36 PM
  4. Column with semicolon-separated values
    By nsv in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-22-2006, 08:22 AM
  5. Transpose unique values in one column/mult. rows into a single row
    By Wil in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-22-2005, 04:06 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1