+ Reply to Thread
Results 1 to 7 of 7

Composite list

  1. #1
    Registered User
    Join Date
    09-02-2011
    Location
    here
    MS-Off Ver
    Excel 2003
    Posts
    27

    Composite list

    I'm trying to make a list of 15 names (List A) based on two other lists (B and C). List B has between 0 and 15 names, List C has at least 15. List A should contain all the names in List B, using List C (top to bottom) to fill in the remaining open spots until there are 15 names in List A.

    I'm stumped - thanks in advance for your help!

  2. #2
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: Composite list

    if you don't want to use VBA
    then
    add a column before B & C - so now you have column B & Column C (List B) + Column D & Column E(List C)
    Cell B1 (beside the top name in Column B) =1
    Cell B2
    Please Login or Register  to view this content.
    this should number column B 1-15
    Cell D1
    Please Login or Register  to view this content.
    Cell D2
    Please Login or Register  to view this content.
    That should continue your numbering
    Then you can use vlookups to fill List A =if(countif(B1:B15,1)=1,vlookup(B1:B15,1,2,False),vlookup(D1:D15,1,2,False))
    etc...

  3. #3
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: Composite list

    Here is an example worksheet
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-02-2011
    Location
    here
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Composite list

    That works great for how I explained it, but I didn't quite explain it well enough. =)

    I'm actually planning to have quite a few partial lists (like List B) that I want to turn into full lists (like List A), all being filled in with a single "leftovers" list (like List C). I'd like to do it without getting into macros, but I'm hoping there's a simpler way than giving List C a numbering column for each of the first sets of lists.

  5. #5
    Registered User
    Join Date
    09-02-2011
    Location
    here
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Composite list

    ... anybody?

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Composite list

    Try this:

    From B2 to B16 you have 0 to 15 names
    C2 to beyond C16 you have full list of names
    In A2:
    =IF(COUNTA($B$2:$B$16)>ROW(B1)-1,INDEX(B:B,ROW()),INDEX(C:C,ROW()-COUNTA($B$2:$B$16)))
    or just
    =IF(COUNTA($B$2:$B$16)>ROW(B1)-1,B2,INDEX(C:C,ROW()-COUNTA($B$2:$B$16)))
    and dragged down
    Last edited by Cutter; 08-18-2012 at 09:39 AM. Reason: Added formula option

  7. #7
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: Composite list

    Another option to try
    List B assumed in B2:B16
    List C in C2:C16
    To produce List A, as per specs
    Put this in A2:
    =IF(ROWS($1:1)>COUNTA($B$2:$B$16),INDEX($C$2:$C$16,ROWS($1:1)-COUNTA($B$2:$B2)),B2)
    Copy down to A16

+ 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