+ Reply to Thread
Results 1 to 4 of 4

Multiple Vlookup Formulas to get data from correct table

  1. #1
    Registered User
    Join Date
    03-16-2009
    Location
    New Brunswick, Canada
    MS-Off Ver
    Excel 2003
    Posts
    3

    Multiple Vlookup Formulas to get data from correct table

    I am hoping someone can help me out here.

    I have three separate columns that have information in it, and I am trying to setup a vlookup that will scan all three columns and give me the info that I am looking for.

    I know how to do a basic vlookup, I just don't know how to do a vlookup, that will scan the first column, if the info is not in there, it will scan the second column, as well as the third column if necessary.

    I thought of maybe doing three separate vlookups, but two of the vlookups are going to give me a #N/A, while only one column will actually have the info. If I go this route, is there a formula that will scan the 2 #N/A/ and the 1 cell with the info, and then actually give me the one with the info in it?

    I hope someone can help as I need to have this finished by the end of the week.

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

    Re: Looking for a Vlookup formula

    A Nested If/Vlookup should do it.

    something like:

    =If(ISNA(Vlookup1()),If(ISNA(Vlookup2()),Vlookup3(),Vlookup2()),Vlookup1())
    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 Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Looking for a Vlookup formula

    From PM:

    I asked a question a while back on how to do a vlookup on multple columns, you suggested to do a nesting formula.

    I am wondering if you might be able to give me an example formula on a vlookup that has to search 5 different arrays for one answer?

    The formula you gave me was:
    IF(ISNA(Vlookup1()),IF(ISNA(Vlookup2()),Vlookup3(),Vlookup2()),Vlookup1())
    How can I extend this to 5 columns instead of three?

    Your help would be greatly appreciated.

    James Marshall
    Try:

    =IF(ISNA(Vlookup1()),IF(ISNA(Vlookup2()),IF(ISNA(Vlookup3()),IF(ISNA(Vlookup4()),Vlookup5(),Vlookup4()),Vlookup3()),Vlookup2()),Vlookup1())

  4. #4
    Registered User
    Join Date
    03-16-2009
    Location
    New Brunswick, Canada
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Multiple Vlookup Formulas to get data from correct table

    Thank you it worked well.

    I appreciate you taking the time to help me out of this jam.

    James

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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