+ Reply to Thread
Results 1 to 12 of 12

Need VLOOKUP to miss blanks

  1. #1
    Registered User
    Join Date
    08-19-2004
    Posts
    60

    Need VLOOKUP to miss blanks

    Hi

    I have about 90+ lists of data which looks like this: (the dots are blank cells)

    Set 1
    D0 Jimmy
    ...
    D1 Keith
    D2 Dave
    ...
    ...
    D3 Sandra

    Set 2
    ...
    D0 Andy
    D1 Ryan
    ...
    ...
    ...
    ...
    ...
    D2 Lee

    Each list was originally a set of names and i have populated the "D1, D2" cells (where D1 = the first name, D2 = the second, etc).

    Is there any way, on a seperate sheet i can get a list which shows the following (ie. no spaces between lines of data):

    Set 1 Set 2
    Jimmy Andy
    Keith Ryan
    Dave Lee
    Sandra

    Is this possible through a VLOOKUP?

    Any help would be terriffic, thanks

    James
    Last edited by jamesryan; 04-15-2008 at 09:27 AM.

  2. #2
    Registered User
    Join Date
    08-19-2004
    Posts
    60
    p.s.

    To explain it more clearly, the D0, D1, D2, etc would then be followed by an E0, E1, E2, E3, and then a F0, F1, F2.

    What i want is for a set where there is no name for D3, the list goes straight from D0, D1 to E0 (instead of entering a blank for D3)

    Thanks

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Can you post a sample workbook showing the current layout and what you want in the end?
    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.

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    If on Sheet3 in column A you list your ID's D0,D1,D2,D3,etc. then in B1

    =VLOOKUP(A1,Sheet1!$A$1:$B$10,2,FALSE)&" "&VLOOKUP(A1,Sheet2!$A$1:$B$10,2,FALSE)
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  5. #5
    Registered User
    Join Date
    08-19-2004
    Posts
    60
    Hi,

    I'll attach a sample of the document now (its football-related).

    What i want is shown in the 'Table' worksheet.

    Thanks
    Attached Files Attached Files

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Will oldchippy's solution work for you?


    ... you don't have to do the concatenating of the Vlookups though.

  7. #7
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    Not quite like your question, but here's what you want this time
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    08-19-2004
    Posts
    60
    Cheers for that Chippy, however that isn't exactly what i need.

    That formula picks the players using the position indicated (G0, D1, F2, etc), however i need a formula to check what positions are in the list as there wont always be a G3 or a D7, etc.

    So i want the master sheet to have formulas in it to populate the position column too.

    Is that possible?

    p.s. the spreadsheet is linked externally to a website which updates the players so even though for one team there may not be a 'D7' and 'M9' now, there may be in the future so the positions need to not be static.

    Thanks

    James

  9. #9
    Registered User
    Join Date
    08-19-2004
    Posts
    60
    Hi,

    Anyone have a clue about this one?

    thanks

  10. #10
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi James,

    Had another look at this and used a pivot table to look at each sheet 100 rows deep, then used the result on a VLOOKUP, it brings up all the players but unfortunately not in the order you were asking for. It's not elegent but could something like this work for you?
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    08-19-2004
    Posts
    60
    cheers oldchippy,

    However i've managed to figure out a solution to the problem.

    I've attached my solution (more a workaround though!)

    James
    Attached Files Attached Files

  12. #12
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    That looks great James - well done, thanks for sharing your results with us all

+ 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