Sumifs the sum range activity from start to end date lands within 7-14 days from today

mdmhal

New Member
Joined
Jan 4, 2022
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Hi dream team,

I need help with rectifying a formula. I currently have:

=SUMIFS('Live Project Data'!$D$4:$D$1001,'Live Project Data'!$E$4:$E$1001,">="&TODAY()+7,'Live Project Data'!$E$4:$E$1001,"<"&TODAY()+14,'Live Project Data'!$C$4:$C$1001,A6)

Where:
D4:D1001 - is the sum range
E4:E1001 - is a column of project start dates
C4:C1001 - is a column of various words from a drop down list, an example being "CAD". In this instance A6 = "CAD"

I also have a column of project end dates within my date source F4:F1001

I'm trying to make a sum of the D4:D1001 range, when a project has activity 7-14 days from today and contains "CAD" in C4:C1001. However as in the above formula I am calculating from a start date and not within the range of dates from project start to project end I am getting false readings.

For example today being 04/01/22

A project start date of 01/12/21 and end date of 01/03/22 would have activity within 7-14 days from today but it falls out of my formula calculation.

Hope that makes sense - Very appreciative of any help....

Many thanks,
Hal
 
Eric,

The formula you have in A9 very nearly works in my sheet hence my prior excitement.

It sums all figures, just as I'd like, provided the project has a start date prior to the 7-14 day period and it runs into/through that period. Or indeed if the start day is within the 7-14 day period but the end date is beyond it.

HOWEVER when both the start date and the end date are within that 7-14 period the number in cells D4:D1001 is not included in the sum. I am looking for this to be included also.

I believe this is demonstrated in your sheet and is why your total in cell A9 is zero not one, as the dates in E4 and F4 are both within the 7-14 days from today period. As an example I think if you were to change say E4 for 1/1/2022 then cell A9 would read one??

Does that make sense?
 
Upvote 0

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).
Oops! ? My bad, I got a few of the pieces in the wrong order. Try this:

Book1
ABCDEF
1
2
3StartEnd
4CAD11/12/20221/14/2022
5xxx212/2/20213/2/2022
6CADxxx312/3/20213/3/2022
7xxx412/4/20213/4/2022
8xxx512/5/20213/5/2022
91xxx612/6/20213/6/2022
10xxx712/7/20213/7/2022
11xxx812/8/20213/8/2022
129
Live Project Data
Cell Formulas
RangeFormula
A9A9=SUMPRODUCT('Live Project Data'!$D$4:$D$1001,SIGN((TODAY()+7>='Live Project Data'!$E$4:$E$1001)*(TODAY()+7<='Live Project Data'!$F$4:$F$1001)+('Live Project Data'!$E$4:$E$1001>=TODAY()+7)*('Live Project Data'!$E$4:$E$1001<=TODAY()+14)),--('Live Project Data'!$C$4:$C$1001=A6))
 
Upvote 0
Solution
That looks to be the ticket!

Thank you again Eric, especially for sticking in there with me!

All the best my friend!

Hal
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,552
Members
449,088
Latest member
davidcom

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