Summing a Column with #N/A

Lambright44

New Member
Joined
Aug 3, 2010
Messages
12
I have a large dataset and am trying to sum the results from a VLookup. Unfortunately, the results bring in the #N/A value. I can paste special to do away with the value but then I have to do that everytime as I loose my formulae.
I know there was a way to make the N/A value into a Zero by using the Custom Formating but its ben so long that I have forgotten that step and I'm sure there is an easier way.
Have tried SumIf with mixed results.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Welcome to the Board!

Just modify your VLOOKUP formulas to return 0 in such cases.
Here is the layout for those formulas:

In Excel 2007 and later:
=IFERROR(VLOOKUP(...),0)

Earlier versions of Excel:
=IF(ISNA(VLOOKUP(...)),0,VLOOKUP(...))
 
Upvote 0
Aladin,
I think you are missing the double quote at the end of your equation...
 
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,212
Members
449,074
Latest member
cancansova

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