How to ignore #N/A in the summation of a column

jamesc1987

New Member
Joined
Aug 17, 2011
Messages
9
Hello everybody.

I am having a problem with a complicated workbook I have inherited at work.

Currently, a cell with the formula =SUMIF(D$3:D$149,1,H$3:H$149) is returning a #N/A value because there are several #N/A cells in column H.

How would I amend the formula to ignore any #N/A cells?

I have tried the following =SUMIF(D$3:D$149,1,H$3:H$149,"<>#N/A") but have had no luck.

Any help is much appreciated!!

Regards.
 
I used:

=IF(ISNA(VLOOKUP($A137,'Rolling # Tests'!$A$2:$AT$76,ReportMonth,FALSE)),0,VLOOKUP($A137,'Rolling # Tests'!$A$2:$AT$76,ReportMonth,FALSE))

Mainly because the data is much more comprehensible with 0's instead of #N/A's.

It turns out you're other method worked too, I just hadn't been holding Cntrl, Shift and Enter.

Thanks again.
 
Upvote 0

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,223,264
Messages
6,171,081
Members
452,377
Latest member
bradfordsam

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