+ Reply to Thread
Results 1 to 10 of 10

Removing #N/A from spreadsheet

  1. #1
    Registered User
    Join Date
    06-28-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    4

    Removing #N/A from spreadsheet

    My spreadsheet is coming up with lots of #N/A and I know it's because the data my lookup formula is looking for isn't there. What do I need to add to the formula to remove these #n/a, and if nothing show as 0?

    Many thanks

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Removing #N/A from spreadsheet

    wrap formula in an if and isna
    if(isna("your formula"),0,"your formula")
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Removing #N/A from spreadsheet

    ISERROR or ISNA or use Conditional Formatting to hide

    http://www.excel-it.com/excel_condit...formatting.htm
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    aiwnjoo
    Guest

    Re: Removing #N/A from spreadsheet

    =IF(ISNA({cell-with-formula}),0,{cell-with-formula})

    Or;

    =IF(ISERROR(FORMULA),"0",FORMULA)

  5. #5
    Registered User
    Join Date
    06-28-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Removing #N/A from spreadsheet

    My formula is =VLOOKUP(A5,RANGE,4,FALSE) are you saying use the following

    =if(ISNA(VLOOKUP(A5,RANGE,4,FALSE),0,VLOOKUP(A5,RANGE,4,FALSE))), because that didn't seem to work. Still doing something wrong!!
    Last edited by HMcCalla; 06-28-2010 at 05:50 AM.

  6. #6
    Registered User
    Join Date
    06-28-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Removing #N/A from spreadsheet

    Any chance of someone writing out a sample formula that I can mirror please?

  7. #7
    aiwnjoo
    Guest

    Re: Removing #N/A from spreadsheet

    =if(iserror(vlookup(a5,range,4,false),0,vlookup(a5,range,4,false)

    Not sure if you have to CTRL SHIFT ENTER

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Removing #N/A from spreadsheet

    =if(ISNA(VLOOKUP(A5,RANGE,4,FALSE),0,VLOOKUP(A5,RANGE,4,FALSE)))
    should be
    =if(ISNA(VLOOKUP(A5,RANGE,4,FALSE)),0,VLOOKUP(A5,RANGE,4,FALSE))



    and @ aiwnjoo this definitely does not need confirming with ctrl+shift+enter
    Last edited by martindwilson; 06-28-2010 at 06:52 AM.

  9. #9
    Registered User
    Join Date
    06-28-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Removing #N/A from spreadsheet

    Thanks to you all for your assistance yesterday. I've just updated and it now works. Martin thanks for your help in particular - Spot on. Cheers

  10. #10
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Removing #N/A from spreadsheet

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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