Multiple Criteria for SUMIF

InfamousQBert

New Member
Joined
Jan 6, 2009
Messages
2
I need to write a formula that sums info where the customer in column A matches another field and the amount in column B is >0. I've found lots of variations of these types of formulas, but none of them are working. Can someone help?
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
I need to write a formula that sums info where the customer in column A matches another field and the amount in column B is >0. I've found lots of variations of these types of formulas, but none of them are working. Can someone help?

Are you trying to sum the positive figures in column B when column A matches a certain criterion ("another field") you didn't specify? If so, something like:

Code:
=SUMPRODUCT(
   --($A$2:$A$100=E2),
   --($B$2:$B$100 > 0),
   $B$2:$B$100)

where E2 houses a value (criterion) the range in column A must meet.
 
Upvote 0
I'm getting a #VALUE when I use that.

=SUMPRODUCT(--('All Detail'!$E$3:$E$105=2174),--('All Detail'!$G$2:$G$105>0),'All Detail'!$G$2:$G$105)

Where the "2174" is, I tried linking to the cell and just typing in the value (it's a customer number on our system). Linking to it gave me an error and typing it in gave me the #VALUE.
 
Upvote 0
All your ranges must be the same size. Note that your first one starts in row 3 while the other two start in row 2.
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,924
Members
452,366
Latest member
TePunaBloke

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