+ Reply to Thread
Results 1 to 5 of 5

Need formula to return blank instead of #N/A when source cell is blank, using VLOOKUP

  1. #1
    Registered User
    Join Date
    01-03-2013
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    2

    Need formula to return blank instead of #N/A when source cell is blank, using VLOOKUP

    The document is an expense report template and I want users to fill in a cell with the account number, then the formula fills in the account description. However, when someone hasn't filled in an account number, I want the cell to wind up blank. Here's my formula:

    =VLOOKUP([@[Acct Number]],Sheet1!$A$3:$B$13,2,FALSE).

    The formula connects to a separate sheet which has a list of account numbers and their account descriptions, in order to look up their account descriptions. I've tried several of the options listed in other posts on this site, but couldn't make any of them work.

    Help!

    TMB1234

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

    Re: Need formula to return blank instead of #N/A when source cell is blank, using VLOOKUP

    wrap it in iserror()

    =iserror(VLOOKUP([@[Acct Number]],Sheet1!$A$3:$B$13,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
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Need formula to return blank instead of #N/A when source cell is blank, using VLOOKUP

    =IFERROR(Your formula,"")

  4. #4
    Registered User
    Join Date
    01-03-2013
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Need formula to return blank instead of #N/A when source cell is blank, using VLOOKUP

    Perfect! Thank you Teethless mama

  5. #5
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Need formula to return blank instead of #N/A when source cell is blank, using VLOOKUP

    You're Welcome!

+ 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