+ Reply to Thread
Results 1 to 6 of 6

Matching multiple columns based on vlookup

  1. #1
    Registered User
    Join Date
    08-04-2012
    Location
    Texas, USA
    MS-Off Ver
    Excel 2003
    Posts
    8

    Matching multiple columns based on vlookup

    So I have done a lot of googling and I am almost done with this sheet. I am slowly learning excel and everything is going good until I want to learn something new.

    So I was wondering if it was possible to find all of a teams players based on the team name?

    I have the team name-(aka alliance) on one sheet...there maybe 1 person in that alliance or up to 99. I was wondering how would I find the people in that alliance?

    I have the following code.

    =INDEX('All Coords'!B1:B600, SMALL(IF($B$10='All Coords'!A1:A600, ROW('All Coords'!A1:A600)-ROW('All Coords'!A1)+1), ROW(1:1)))

    I get the value of 0.

    If it matters this is on the Dives Bombers alliance.
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Matching multiple columns based on vlookup

    Hi,

    Check out the standard Advanced Data Filter functionality, or probably better still use a Pivot Table - see attached.
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    08-04-2012
    Location
    Texas, USA
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Matching multiple columns based on vlookup

    Thank you for the quick reply. The only catch is that I would like to keep it as a formula and the reason for that is because I want to eventually transfer it to a google document. Is it possible to do this with a formula?

  4. #4
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Matching multiple columns based on vlookup

    You can do it with an ARRAY formula, which is applied by pressing Ctrl + Shift + Enter, instead of just Enter, after typing the formula in the formula bar.

    See the "PLAYER LIST" sheet of the modified workbook I attached.

    Since you are using Excel 2003, I changed the formula to the following:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    It is filled down then from A2:A100.

    - Moo
    Attached Files Attached Files
    Last edited by Moo the Dog; 01-10-2013 at 08:40 PM. Reason: adjusted formula for xl2003

  5. #5
    Registered User
    Join Date
    08-04-2012
    Location
    Texas, USA
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Matching multiple columns based on vlookup

    Sorry for the late reply....and I am not sure if this needs to go to another post.

    My question I have on this is how do you get it to display the rest of the information? So for instance the coords

  6. #6
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Matching multiple columns based on vlookup

    If you copy the column headings ('X cord' thru 'Total Taken') from the All Coords sheet to the PLAYER LIST sheet (paste into B1:L1), then paste this formula into cell B2 and fill right, then select B2:L2 and fill down to row 100, where the other formula in column A stops, it should return the data for you:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    See my revised attachment.

    - Moo

    * One thing to note... there are duplicates in your list from the All Coords sheet (as evidenced by the duplicate names in the listing for the Fluffy Bunnies alliance. The VLOOKUP will only pull the FIRST row of data that it finds for any given name in the list. If the same name appears in the list twice, it will show the same values as the one prior... even if the data is different for both entires on the All Coords sheet.

    Hope that makes sense.
    Attached Files Attached Files
    Last edited by Moo the Dog; 01-11-2013 at 10:40 PM. Reason: Added note.

+ 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