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

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
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
i'm not sure why you'd want to use sumproduct with full column references
 
Upvote 0

Forum statistics

Threads
1,215,068
Messages
6,122,950
Members
449,095
Latest member
nmaske

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