+ Reply to Thread
Results 1 to 4 of 4

Return Blank with VLookup

  1. #1
    Forum Contributor
    Join Date
    08-15-2014
    Location
    Michigan, USA
    MS-Off Ver
    MS Office 2021
    Posts
    101

    Return Blank with VLookup

    Ok I have a range of 26 cells to put a letter into. On the sheet2 "ABC" I have the Letter it's type C or V and it Value. Now not every cell will contain a letter. Instead of seeing "#N/A" I don't want to see anything I want it left blank. I tried =if(b2)isblank,"",VLOOKUP(B2,ABC!$A$2:$C$28,2,FALSE) and wont work. I tried a few other things I found on the web but nothing works. Can anyone help me.
    Attached Files Attached Files

  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,926

    Re: Return Blank with VLookup

    Almost there...
    =if(b2="","",VLOOKUP(B2,ABC!$A$2:$C$28,2,FALSE)
    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
    Registered User
    Join Date
    11-02-2016
    Location
    India
    MS-Off Ver
    2007
    Posts
    1

    Re: Return Blank with VLookup

    Hi

    You can use the IFERROR formula to replace the error message ie '#NA' with a blank

    =IFERROR(VLOOKUP(B2,ABC!$A$2:$C$28,2,FALSE),"")

    You can also insert a customised error message / text (eg: 'No Value' /'Error' etc.,) by inserting text with the quotes.

    Hope this helps.

    Priya

  4. #4
    Forum Contributor
    Join Date
    08-15-2014
    Location
    Michigan, USA
    MS-Off Ver
    MS Office 2021
    Posts
    101

    Re: Return Blank with VLookup

    Thanks FDibbins works perfect

+ 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. vlookup return blank
    By ctiger in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-18-2015, 05:27 PM
  2. [SOLVED] VLOOKUP - If table array is blank, need it to return blank
    By bxk006 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-27-2014, 11:36 AM
  3. [SOLVED] Need formula to return blank instead of #N/A when source cell is blank, using VLOOKUP
    By TMB1234 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-03-2013, 07:16 PM
  4. [SOLVED] How do I return a blank for VLOOKUP instead of #N/A?
    By ExcelBee in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  5. How do I return a blank for VLOOKUP instead of #N/A?
    By ExcelBee in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  6. How do I return a blank for VLOOKUP instead of #N/A?
    By ExcelBee in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  7. I need Vlookup to return a blank
    By Eaglered in forum Excel General
    Replies: 4
    Last Post: 05-19-2005, 09:08 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