+ Reply to Thread
Results 1 to 5 of 5

Lists to Columns

  1. #1
    Registered User
    Join Date
    07-12-2013
    Location
    Jersey
    MS-Off Ver
    Excel 2010
    Posts
    59

    Lists to Columns

    I have a long list of data that I would like to separate into different columns.

    Attached is my example file
    lists to columns.xlsx

    hope you can help

    I am happy to use either formula or vb code

    regards

    kevin

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,893

    Re: Lists to Columns

    Put this formula in cell C2:

    =IF(A2="","",A2&"_"&COUNTIF(A$2:A2,A2))

    and copy down to the bottom of your data.

    Then put this formula in E2:

    =IFERROR(INDEX($B:$B,MATCH(E$1&"_"&ROWS($1:1),$C:$C,0)),"")

    copy across to G2, then copy E2:G2 down as far as you need them (until you get blanks in all cells on a row).

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    07-12-2013
    Location
    Jersey
    MS-Off Ver
    Excel 2010
    Posts
    59

    Re: Lists to Columns

    Sorry Pete
    I could not get this to work

    Can I just check that I'd like the company titles as column titles.

    Kev

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,893

    Re: Lists to Columns

    Look at my attached file, to see where you went wrong (perhaps you omitted some of the $ signs).

    Hope this helps.

    Pete
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-12-2013
    Location
    Jersey
    MS-Off Ver
    Excel 2010
    Posts
    59

    Re: Lists to Columns

    ah got it.

    this is excellent it works

    thank you for your time

    kevin

+ 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. Pasting lists into the right columns
    By Village in forum Excel General
    Replies: 3
    Last Post: 07-09-2008, 12:06 PM
  2. columns :compare two lists
    By Tal72 in forum Excel General
    Replies: 3
    Last Post: 04-02-2008, 01:45 PM
  3. Joining lists from 3 columns
    By simonhall in forum Excel General
    Replies: 5
    Last Post: 10-28-2007, 11:12 PM
  4. [SOLVED] top 10 lists - adjacent columns
    By [email protected] in forum Excel General
    Replies: 0
    Last Post: 03-09-2006, 11:55 AM
  5. [SOLVED] How to compare the lists in two columns & separate odd one ?
    By Nikhil in forum Excel General
    Replies: 2
    Last Post: 06-13-2005, 10:05 AM

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