+ Reply to Thread
Results 1 to 5 of 5

IF Statements With VLOOKUP Giving an Error if False

  1. #1
    Registered User
    Join Date
    08-15-2019
    Location
    akron, ohio
    MS-Off Ver
    64 bit
    Posts
    4

    IF Statements With VLOOKUP Giving an Error if False

    =IF(VLOOKUP(B4,'Multiple Cases'!$A$2:$D$19,1,FALSE)=B4,(VLOOKUP(B4,'Multiple Cases'!$A$2:$D$19,2,FALSE)),"")

    I am still new to excel, and can not seem to figure out why this formula is not working correctly. if the vlookup finds a match on the Multiple cases Sheet it will return the correct information using the second vlookup statement, but when there is no match I would like the cell to remain blank. In stead it is just giving me #N/A when blank.

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: IF Statements With VLOOKUP Giving an Error if False

    Try:
    =iferror(=IF(VLOOKUP(B4,'Multiple Cases'!$A$2:$D$19,1,FALSE)=B4,(VLOOKUP(B4,'Multiple Cases'!$A$2:$D$19,2,FALSE)),""),"")
    Click the * to say thanks.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: IF Statements With VLOOKUP Giving an Error if False

    Try it like this:

    =IFERROR(VLOOKUP(B4,'Multiple Cases'!$A$2:$D$19,2,FALSE),"")

    or you could do this:

    =IF(COUNTIF('Multiple Cases'!$A$2:$A$19,B4),VLOOKUP(B4,'Multiple Cases'!$A$2:$D$19,2,FALSE),"")

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    08-15-2019
    Location
    akron, ohio
    MS-Off Ver
    64 bit
    Posts
    4

    Re: IF Statements With VLOOKUP Giving an Error if False

    Yes that works, thank you!

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: IF Statements With VLOOKUP Giving an Error if False

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] VlookUp giving an error
    By Jacolene in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 04-27-2016, 03:02 PM
  2. [SOLVED] Vlookup giving an error after a MAX, Offset
    By mchambersusmc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-24-2015, 11:30 AM
  3. [SOLVED] Nested IF statements are returning FALSE values - cannot find error in code!
    By apex_chio in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-03-2013, 11:01 PM
  4. [SOLVED] Vlookup is not working and giving =vlookup(B2,$T$2:$U$135,2,false) this kind of values.
    By yogeshsharma1981 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-09-2013, 04:08 PM
  5. Vlookup Giving #N/A error
    By sonny.thind in forum Excel General
    Replies: 3
    Last Post: 10-12-2011, 08:36 AM
  6. Vlookup fromula is giving REF error
    By coolhit in forum Excel General
    Replies: 3
    Last Post: 03-03-2010, 07:22 AM
  7. IF(ISNA(Vlookup giving an error...
    By VinceValdez12 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-16-2007, 02:56 PM

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