+ Reply to Thread
Results 1 to 9 of 9

To vlookup or not to vlookup?

  1. #1
    Registered User
    Join Date
    08-25-2009
    Location
    Leeds, England
    MS-Off Ver
    Excel 2003
    Posts
    72

    To vlookup or not to vlookup?

    That is the question.

    I have a list of towns, some of which are included in a survey. I need to identify which of the list of towns are included in that survey with a simple Y or N in the yellow colum in the attached example. Those towns in the survey are listed (number only) in the 'Included Towns' tab. I thought a vlookup would do this but I can't get any joy. Please help!

    Many thanks.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Rahul Nagar's Avatar
    Join Date
    09-18-2008
    Location
    nasik
    MS-Off Ver
    Excel 2003
    Posts
    465

    Re: To vlookup or not to vlookup?

    Hi,

    Try this formula
    =VLOOKUP(A5,'Included Towns'!A:A,1,0)
    __________________
    Regards
    Rahul Nagar
    Founder of www.myshortcutkeys.com.


    If you get the answer of your questions then please click EDIT in your original post then click on GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
    Also
    If you are satisfied by any members response to your problem please consider using the scales icon top right of thier post to show your appreciation.

  3. #3
    Registered User
    Join Date
    11-16-2010
    Location
    Alberta,Canada
    MS-Off Ver
    Excel 2007,Excel 2010
    Posts
    9

    Re: To vlookup or not to vlookup?

    I am not a pro in excel but I have a solution that should do what you want.
    Check the attached file.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111

    Re: To vlookup or not to vlookup?

    My two cents worth

    Place in F1 and copy drag down

    Please Login or Register  to view this content.
    Have I made you happy ??? If yes, please make me happy by pressing the http://www.excelforum.com/images/buttons/reputation-40b.png Add Reputation button in my post.
    Please don't forget to do the same to other contributors of this forum.

    Thanks
    I don't void confusion, I create it

  5. #5
    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: To vlookup or not to vlookup?

    Maybe this, or similar

    =IF(ISERROR(VLOOKUP(A2,'Included Towns'!A:A,1,0)),"N","Y")

    Hope this helps
    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.

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: To vlookup or not to vlookup?

    This formula in Data sheet, cell F2, copied down, does not require any helper column construct.

    =IF(ISNA(MATCH(A2,'Included Towns'!A:A,0)),"N","Y")

    see attached
    Attached Files Attached Files

  7. #7
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: To vlookup or not to vlookup?

    Gee, all the brass calling in at the same time. Magic moment!

    To my credit: Match is faster than Vlookup! Zoooommmmmm!

  8. #8
    Registered User
    Join Date
    08-25-2009
    Location
    Leeds, England
    MS-Off Ver
    Excel 2003
    Posts
    72

    Re: To vlookup or not to vlookup?

    These are all great. Many, many thanks to you all!

    RL

  9. #9
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111

    Re: To vlookup or not to vlookup?

    Quote Originally Posted by teylyn View Post
    .......To my credit: Match is faster than Vlookup! Zoooommmmmm!
    ALL HAIL !!!! Teylyn the queen of excel

+ 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