SUMIFS a date is between 2 dates

JustHooch

New Member
Joined
May 17, 2018
Messages
44
I am having trouble summing a column if a date is between (or equal to) a date range.

The column to total is P
The start date if the range is in column Q
The end date of the range is in column R

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]P[/TD]
[TD="align: center"]Q[/TD]
[TD="align: center"]R[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Time[/TD]
[TD]Start Date[/TD]
[TD]Stop Date[/TD]
[/TR]
[TR]
[TD]Row 3[/TD]
[TD]0:20[/TD]
[TD]7/16/2018[/TD]
[TD]7/17/2018[/TD]
[/TR]
[TR]
[TD]Row 4[/TD]
[TD]0:30[/TD]
[TD]7/16/2018[/TD]
[TD]7/16/2018[/TD]
[/TR]
[TR]
[TD]Row 5[/TD]
[TD]0:10[/TD]
[TD]7/17/2018[/TD]
[TD]7/20/2018[/TD]
[/TR]
[TR]
[TD]Row 6[/TD]
[TD]1:15[/TD]
[TD]7/18/2018[/TD]
[TD]7/19/2018[/TD]
[/TR]
[TR]
[TD]Row 7[/TD]
[TD]0:05[/TD]
[TD]7/19/2018[/TD]
[TD]7/20/2018[/TD]
[/TR]
</tbody>[/TABLE]


The dates to compare are
Dates to compare to is in Cell E4, F5, F6, F7

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[TD="align: center"]I[/TD]
[/TR]
[TR]
[TD]Row 4[/TD]
[TD]7/16/2018[/TD]
[TD]7/17/2018[/TD]
[TD]7/18/2018[/TD]
[TD]7/19/2018[/TD]
[TD]7/20/2018[/TD]
[/TR]
[TR]
[TD]Row 5[/TD]
[TD]sum[/TD]
[TD]sum[/TD]
[TD]sum[/TD]
[TD]sum[/TD]
[TD]sum[/TD]
[/TR]
</tbody>[/TABLE]

The formula needs to include the start and stop date listed above as well as any date between them.
Example Cell E5 should sum to be 0:20 and Cell H5 should sum to be 1:30

The formula I was working with is "=SUMIFS(P3:P7,Q3:Q7,">="&E4,R3:R7,"<="&E4) but is not working
 
Last edited:

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Try changing your formula to:
Excel Workbook
EFGHIJOPQR
1
2TimeStart DateStop Date
30:207/16/20187/17/2018
47/16/20187/17/20187/18/20187/19/20187/20/20180:307/16/20187/16/2018
50:500:301:251:300:150:107/17/20187/20/2018
61:157/18/20187/19/2018
70:057/19/20187/20/2018
Sheet
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,322
Members
452,635
Latest member
laura12345

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