+ Reply to Thread
Results 1 to 3 of 3

shorten a long list

  1. #1
    Forum Contributor
    Join Date
    01-06-2011
    Location
    cleveland
    MS-Off Ver
    Excel 2007
    Posts
    225

    shorten a long list

    in column A, i have 1000 rows. there are 30 cells containing text mixed randomly throughout this column.

    is there a way i can shorten this list to another column containing ONLY the cells with the text, preferably by the order from which they are listed within the original column (meaning the first entry in row 11 will be in the new column row 1, the next entry in the original column at 202 will be in the new column row 2 etc etc)

    sorry for the obscure question, i dont know how to begin to properly describe my needs and how to address it
    Last edited by NBVC; 01-28-2011 at 01:17 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: shorten a long list

    Add a helper column next to the source.. and at row 2, enter formula:

    =IF(A2="","",COUNT(B$1:B1)+1)

    copied down, where A2 is first cell in the column to look at and B1 is cell above the one you are in...

    Then in another cell in another column enter:

    =MAX(B:B) where column B is your helper columnm

    Then formula to extract the values would be:

    =IF(ROWS($A$1:$A1)>$C$2,"",INDEX(A:A,MATCH(ROWS($A$1:$A1),B:B)))

    where C2 is the cell you placed the MAX formula in.

    copied down as far as you need.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    01-06-2011
    Location
    cleveland
    MS-Off Ver
    Excel 2007
    Posts
    225

    Re: shorten a long list

    thank you...this works beautifully.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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