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
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
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
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
=IF(ISNA({cell-with-formula}),0,{cell-with-formula})
Or;
=IF(ISERROR(FORMULA),"0",FORMULA)
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.
Any chance of someone writing out a sample formula that I can mirror please?
=if(iserror(vlookup(a5,range,4,false),0,vlookup(a5,range,4,false)
Not sure if you have to CTRL SHIFT ENTER
=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.
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
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks