+ Reply to Thread
Results 1 to 6 of 6

If(isna(vlookup function help so that it looks up the text in far right column

  1. #1
    Registered User
    Join Date
    10-20-2012
    Location
    South Carolina
    MS-Off Ver
    Excel 2007
    Posts
    10

    If(isna(vlookup function help so that it looks up the text in far right column

    Hello all.
    I hope this isn't confusing but I have a table setup on another worksheet with three columns each containing different information. On another sheet I am trying to use the IF(ISNA(VLOOKUP function to seach for text in the third column (or second) to find information and pull from that first column that specific row to that text and put in the other worksheet. I know the VLOOKUP seaches the far left column but is there a way to search other columns for specific text. Any help would be appreciated and thanks in advance.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: If(isna(vlookup function help so that it looks up the text in far right column

    Hi

    I moved your post to excel,you had it in an outlook forum

    You can use vlookup to return a value in any column to the RIGHT of the column of the column you are searching in, by changing the column number. Th syntax is...

    =VLOOKUP(what-you-want-to-find,range-to-search-in,column-that-contains-the-match,FALSE) FALSE is for finding an exact match

    =vlookup(A1,B1:D20,3,false) will search in column D
    =vlookup(A1,B1:D20,2,false) will search in column C
    =vlookup(A1,B1:D20,1,false) will search in column B

    Alternatively you could use index/match combo, then you dont need to specify the column, the formula will search for it
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: If(isna(vlookup function help so that it looks up the text in far right column

    If you're using Excel 2007 (or later) use the IFERROR function instead of ISNA.

    In the VLOOKUP function you can specify which column number in the table_array to get the result.

    For example:

    =IFERROR(VLOOKUP(A1,X:Z,2,0),"")

    That formula will look in column X for the lookup_value and return the corresponding value from the 2nd column of the table_array. The 2nd column of the table_array is column Y.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    10-20-2012
    Location
    South Carolina
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: If(isna(vlookup function help so that it looks up the text in far right column

    Here is an example of what I'm trying to do. I hope this clarifies it. Thanks again.

    EXAMPLE.xlsx

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: If(isna(vlookup function help so that it looks up the text in far right column

    Maybe this...

    Cell A14 contains the lookup_value M14.

    Enter this formula in B14 and copy across to C14:

    =IFERROR(VLOOKUP($A14,$A$7:$C$9,COLUMNS($B14:B14)+1,0),"")

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: If(isna(vlookup function help so that it looks up the text in far right column

    You can do a match on the far right column and the use that with Index to get the items, as suggested.

    =INDEX($A$7:$C$9,MATCH("Unassigned 1",$C$7:$C$9,0),1)
    =INDEX($A$7:$C$9,MATCH("Unassigned 1",$C$7:$C$9,0),2)
    =INDEX($A$7:$C$9,MATCH("Unassigned 1",$C$7:$C$9,0),3)

    Add error trapping formula if unassigned 1 is not always present.

    BTW. Vlookup works be locating a match in the first column of the array
    Cheers
    Andy
    www.andypope.info

+ 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