+ Reply to Thread
Results 1 to 7 of 7

Creating a contiguous list from a non contiguous list of items

  1. #1
    Registered User
    Join Date
    11-26-2012
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    8

    Creating a contiguous list from a non contiguous list of items

    I would be grateful if someone could help with taking a list of non-contiguous entries and recreating those same entries in a contiguous list in another column as shown below:

    Non-contiguous list:
    Peter
    Paul
    Tracy

    John

    Abigail
    Darcy

    James


    Contiguous list:
    Peter
    Paul
    Tracy
    John
    Abigail
    Darcy
    James


    I need to simpley recreate the (non-contiguous) list in another column where the blanks are missed out/ ignored.

    Any help will be much appreciated!

    Thanks
    Tony

  2. #2
    Valued Forum Contributor
    Join Date
    08-13-2012
    Location
    Gardony, Hungary
    MS-Off Ver
    Excel 2003
    Posts
    558

    Re: Creating a contiguous list from a non contiguous list of items

    Hi,

    here's one way to do it:
    1. select the whole column by clicking the column header.
    2. use autofilter (data/filter/autofilter)
    3. filter for blanks (click the little mark that appears in the top cell and select "Blanks")
    4. select/highlight all the selected rows --> right click --> delete.

    Now you should only have the cells with data in it.

  3. #3
    Registered User
    Join Date
    11-26-2012
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Creating a contiguous list from a non contiguous list of items

    Thanks for the quick reply but I need this done using formulas as opposed to a manual operation or any type of scripting. I should have perhaps explained better in my question

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Creating a contiguous list from a non contiguous list of items

    hi tonymq, welcome to the forum. assuming your data is in A1:A10, try this array formula:
    =IF(COUNTA($A$1:$A$10)<ROW(A1),"",INDEX($A$1:$A$10,SMALL(IF($A$1:$A$10<>"",ROW($A$1:$A$10)-ROW($A$1)+1),ROW(A1))))

    you have to paste the formula inside the formula bar & press CTRL + SHIFT + ENTER

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  5. #5
    Registered User
    Join Date
    11-26-2012
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Creating a contiguous list from a non contiguous list of items

    You sir are a star and a major league array formula master! Thank you

    That formula does it.

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Creating a contiguous list from a non contiguous list of items

    Or a non-array formula, (more efficient than array entered formulae on larger sheets).

    With data in A2 down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Marcol; 11-26-2012 at 09:36 AM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  7. #7
    Registered User
    Join Date
    11-26-2012
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Creating a contiguous list from a non contiguous list of items

    That also works a treat. Thank you.

    Two great replies.

+ 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