+ Reply to Thread
Results 1 to 3 of 3

VLOOKUP variation?

  1. #1
    Forum Contributor
    Join Date
    06-25-2007
    Posts
    166

    VLOOKUP variation?

    I think this should be an easy task for most of you. We'll see...

    pleaseHelp!.zip

    If you take a look at the attached file, you'll see a list of names. Beside each name is a number that corresponds to that person's country.

    On a separate sheet, say sheet2, I want to make a list of all the people from Ireland, for instance, by pulling it from Sheet 1.

    My first instinct was a VLOOKUP function, something like:

    =VLOOKUP(1,$B$3:$C$13,-1,0)

    but as I've found out, VLOOKUP only works from left to right, not the opposite (I would switch the columns, but my actual worksheet is a lot more complex, and won't allow me to do so). Also, I think VLOOKUP would return a list of the same name - whoever is closest to the top.

    If anyone can help me tackle this one, I would appreciate it! Many thanks.

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

    Formula in Sheet2!C1: =COUNTIF(Sheet1!C:C,B1) -- This counts matches.

    Formula in Sheet2!A3:
    Please Login or Register  to view this content.
    Confirmed wiht Ctrl+Shift+Enter not just Enter.. Adjust ranges to suit and reconfirm with CSE combo. Then copy down as far as needed to extract all possible matches.... -- This extracts matches.
    Attached Files Attached Files
    Last edited by NBVC; 06-27-2007 at 04:41 PM.
    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
    06-25-2007
    Posts
    166
    Wow. Perfect. More complicated than I thought! I tried it out with my data and it all worked out.

    I really appreciate your help. Thank you.

+ 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