Sumifs with dates

cthompson

Board Regular
Joined
Jan 31, 2011
Messages
80
Hi All

I am trying to us the sumifs function to total data between two dates. Below I have a begin week and week end date all I am attempting to do is sum an amount from a string of data where the transaction date is equal or greater than the begin week but less than or equal to the week end date.

Below is the formula with the between condition but excel will not accept the *OR condition
=SUMIFS(Sheet2!AH:AH,Sheet2!C:C,">="&C2 *or"<="&D2)


If I remove the conditional *OR it works in either the greater than and less than but not with a conditional between
=SUMIFS(Sheet2!AH:AH,Sheet2!C:C,">="&C2)
This works correctly but I want to sum everything between the dates

-- corrupted image removed --

Thanks again for the help
Chris
 
Last edited by a moderator:

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Try
Code:
=SUMPRODUCT(((Sheet2!C:C>=Sheet1!C2)+(Sheet2!C:C<=Sheet1!D2)-1),Sheet2!AH:AH)
 
Upvote 0
Perfect thank you both so much. Funny I had never used sumproduct before, learn something new everyday.
CT
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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