+ Reply to Thread
Results 1 to 9 of 9

VLOOKUP FORMULA RETURNING #N/A and need it to show ZERO

Hybrid View

  1. #1
    Registered User
    Join Date
    01-13-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    60

    VLOOKUP FORMULA RETURNING #N/A and need it to show ZERO

    Hi Everyone,

    I need my VLOOKUP formulas in rows 5 and 6 of the "Cashflow" sheet to return a zero if there is no corresponding value or date in the table it looks to in the "Inputs" sheet.

    Any help would be greatly appreciated.

    Thanks in advance.PERE_Vlookup returning error.xlsx

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

    Re: VLOOKUP FORMULA RETURNING #N/A and need it to show ZERO

    I didn't download your file.

    Try putting the VLOOKUP function inside an IFERROR function:

    =IFERROR(VLOOKUP(...),0)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    01-13-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: VLOOKUP FORMULA RETURNING #N/A and need it to show ZERO

    does that attachment work now?
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-13-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: VLOOKUP FORMULA RETURNING #N/A and need it to show ZERO

    The IFERROR didn't seem to work?

  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: VLOOKUP FORMULA RETURNING #N/A and need it to show ZERO

    Works for me:

    =IFERROR(-VLOOKUP(E$2,Inputs!$H$10:$I$14,2,0),0)

    You have the cell formatted as Accounting which displays 0 as - (dash).

  6. #6
    Registered User
    Join Date
    01-13-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: VLOOKUP FORMULA RETURNING #N/A and need it to show ZERO

    is it possible to include the -(dash) before it and get the outcome I need? You're right IFERROR works when the -(dash) is removed but i need accounting format

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

    Re: VLOOKUP FORMULA RETURNING #N/A and need it to show ZERO

    Maybe this...

    =IFERROR(-VLOOKUP(E$2,Inputs!$H$10:$I$14,2,0),"0")

    That will return 0 as a TEXT value. Since numeric 0 has no effect on a sum then a TEXT 0 will also have no effect in a SUM(...) formula.

  8. #8
    Registered User
    Join Date
    01-13-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    60

    Re: VLOOKUP FORMULA RETURNING #N/A and need it to show ZERO

    that is working for me in row 5 but not in row 6 for some reason?

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

    Re: VLOOKUP FORMULA RETURNING #N/A and need it to show ZERO

    Like this...

    =IFERROR(-VLOOKUP(E$2,Inputs!$B$6:$D$88,3,0)*Inputs!$I$18,"0")

    But now your SUM function returns $ -.

+ 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 formula is returning odd results
    By Nitefox in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 10-23-2013, 06:08 AM
  2. vlookup formula not returning the value i need
    By djbcktt in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-07-2013, 11:53 AM
  3. Replies: 15
    Last Post: 09-27-2011, 01:22 PM
  4. Replies: 2
    Last Post: 06-27-2011, 09:11 PM
  5. Vlookup returning formula
    By Juran in forum Excel General
    Replies: 8
    Last Post: 04-06-2009, 10:06 PM

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