Sumif with Two Conditions that Ignore #N/A

joshkrag

New Member
Joined
Dec 4, 2008
Messages
2
Greetings:

I have a data sheet with 10,000 rows that (as a result of an array formula) returns "#N/A" for some values. Each of the rows is also classified as "customer a" and "customer b".

I am trying to sum the data column for only "customer a" values AND ignore the "#N/A" error. I have tried and both of these return #N/A:

=SUM(IF(base!F3:F44<>#N/A,IF(base!A3:A44="Customer A",1,0)))

and

=SUMPRODUCT( --(base!F3:F44<>"#N/A"), --(base!A3:A44="Traditional Segment"), base!F3:F44)

Any insight is appreciated. Thanks
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi

=SUM(IF(base!A3:A44="Customer A",IF(ISNUMBER(base!F3:F44),base!F3:F44)))

which is an array formula and so confirmed by Ctrl+Shift+Enter
 
Upvote 0
Try

=COUNTIF(base!A3:A44,"Customer A")
=SUMIF(base!A3:A44,"Traditional Segment",base!F3:F44)
 
Upvote 0
Thanks very much for your quick response. The suggestion below worked wonders!

=SUM(IF(base!A3:A44="Customer A",IF(ISNUMBER(base!F3:F44),base!F3:F44)))
 
Upvote 0

Forum statistics

Threads
1,216,458
Messages
6,130,757
Members
449,588
Latest member
accountant606

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