Ignore #N/A Value with Vlookup???

Parra

Well-known Member
Joined
Feb 21, 2002
Messages
752
I am doing a vlookup function and I sum the results. But how do I get the vlookup function to display "0" if there is no value for what it is looking for. I was trying to do a if function but it didn't work. Any suggestions. Thanks
 
On 2002-04-25 08:29, Parra wrote:
Thank you to everyone that helped me with this. I guess I was looking to do it a certain way when there were easier ways to do it. I ended up doing a SUMIF functions.

Aladin, Yogi Thanks

You made a good choice! :)
 
Upvote 0

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
On 2002-04-25 08:30, Mark W. wrote:
On 2002-04-25 08:29, Parra wrote:
Thank you to everyone that helped me with this. I guess I was looking to do it a certain way when there were easier ways to do it. I ended up doing a SUMIF functions.

Aladin, Yogi Thanks

You made a good choice! /board/images/smiles/icon_smile.gif

I concur.
 
Upvote 0
Please Please Please... The best and the easiest solution in case of #NA or any other error for the matter is to use "=IFERROR".

E.g. If you trying to divide 3 and zero (=A1/A2), you will get an error saying #Div/0!. All you need to do is insert "iferror" into the formula. Like this =IFERROR(A1/A2,"0"), Syntax=IFERROR(Value,Value_if_error). Thus Excel will return the Value "0" only if there is an error.

You can use any Value other than "0". "-" is a very comman practice. You can even have text, just add "There is a zero in division" and Excel will say so instead of "0".

You can use this for any Error, "#Name, #Ref, etc, and just about any error in excel.
 
Upvote 0

Forum statistics

Threads
1,214,650
Messages
6,120,736
Members
448,988
Latest member
BB_Unlv

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top