SUMIF based on two criterias

buntykins

Board Regular
Joined
Apr 11, 2002
Messages
76
Is it possible to do a SUMIF formula based on two criterias? Basically what I have is a sheet with three columns - ID (Column A), Date (Column B) and Amount (Column C)

What I need to find is how much a certain user took on a certain day, so basically add together all the amount entries taken by ID number 2222 on the 28/04/02. Is this possible?

Janie

xx
This message was edited by buntykins on 2002-04-29 07:29
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
On 2002-04-29 07:28, buntykins wrote:
Is it possible to do a SUMIF formula based on two criterias? Basically what I have is a sheet with three columns - ID (Column A), Date (Column B) and Amount (Column C)

What I need to find is how much a certain user took on a certain day, so basically add together all the amount entries taken by ID number 2222 on the 28/04/02. Is this possible?

Janie

xx
This message was edited by buntykins on 2002-04-29 07:29

=SUMPRODUCT((A1:A100=2222)*(B1:B100=Date(2002,4,28))*(C1:C100))

should work for you. Adjust your ranges as necessary.

Bye,
Jay
 
Upvote 0
Hi,

Sort of works, except that the place that the formula is going is a separate sheet and because of this it doesnt seem to work.

Any idea on how I could fix this?
This message was edited by buntykins on 2002-04-29 07:51
 
Upvote 0
Maybe I should have mentioned that the things that the SUMPRODUCT is looking for are values in cells. For instance, my formula at the moment looks like this:

=SUMPRODUCT((B1:B60000=X2)*(J1:J60000=DATE(AA2,Z2,Y2))*(E1:E60000))

Help!!!
 
Upvote 0
How are the dates formatted? Can you break it down into smaller bits that you can post? Your formula should be working.
 
Upvote 0
The date is formatted like this: 28/04/02 but I have an =Date and =Month and an =Day formula to break the date down into three cells so that I have 3 separate parts for the SUMPRODUCT formula

Weird!
 
Upvote 0
On 2002-04-29 08:26, buntykins wrote:

The date is formatted like this: 28/04/02 but I have an =Date and =Month and an =Day formula to break the date down into three cells so that I have 3 separate parts for the SUMPRODUCT formula

Weird!

Does it work now? In fact you shouldn't to break up the criterion date.

Is the actual, used range really 60000 big? If not, I think you should be better off using dynamic name ranges.
 
Upvote 0
Of course!!!! Nice one Joe, here I am fiddling with formulas when I could just display it there all the time!!

Thanks baby

xxxxxx
 
Upvote 0

Forum statistics

Threads
1,214,426
Messages
6,119,414
Members
448,895
Latest member
omarahmed1

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