+ Reply to Thread
Results 1 to 3 of 3

VLOOKUP returns N/A - Need to return blank cell

Hybrid View

  1. #1
    Registered User
    Join Date
    04-11-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    5

    VLOOKUP returns N/A - Need to return blank cell

    Hi,

    I have a normal VLOOKUP of this loookup range:

    A 1
    B 2
    C 3
    D 4

    =VLOOKUP(T14,U6:V9,2,TRUE)

    If the value in T14 is in the lookup range, I get the expected value returned. If the value exceeds the vlaues in the lookup range (e.g. I enter "E"), I get the last value in the range (4).

    How do I get it to return a blank cell if the entry in T14 is not found?
    Last edited by wulliemc; 04-28-2009 at 05:38 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: VLOOKUP returns N/A - Need to return blank cell

    You need to use FALSE rather than TRUE if you want an Exact match (ie entering E returns an error), eg:

    =VLOOKUP(T14,U6:V9,2,FALSE)

    If you want Blank returned if an Exact match is not found conduct as ISNUMBER(MATCH test on T14 against U prior to executing the VLOOKUP, eg:

    =IF(ISNUMBER(MATCH(T14,U6:U9,0)),VLOOKUP(T14,U6:V9,2,FALSE),"")

    Aah, I see you are from Fife... I went to Uni at St.Andrews and miss that part of the world...

  3. #3
    Registered User
    Join Date
    04-11-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: VLOOKUP returns N/A - Need to return blank cell

    perfect, thanks.

    Having been in Fife most of my life, can't think of anywhere else I'd ratehr live - nice blend of town and country...

+ 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