SUMIFS - Date Range w/ Formula Driven Date

smas_tx

New Member
Joined
Mar 4, 2013
Messages
9
Hi, decided I've spent enough time fumbling with this, time to ask for help.

The RED section or 'criteria range 2' of this sumifs formula is what I need some help on.

Column H = Duration in weeks, $H$6:$H$104
Column F = Start Date Range, $F$6:$F$104

Hypothetical 'End Date' column would equal -> F6+((H6*7)+1))
- Start date + ((7 days * # of weeks) + 1 day)
- Trying to avoid entering this column

=SUMIFS($J$6:$J$104,$F$6:$F$104,"<=" & T5,($F$6:$F$104+(($H$6:$H$104*7)+1)),">=" & T5)

Thanks in advance.
 
Last edited:

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
I would recommand using a helper column to enter that hypothetical end date
It seems like information usefull for other purposes in your sheet besides this one formula

Say column I

I6 and filled down
=F6+H6*7+1

Then use
=SUMIFS($J$6:$J$104,$F$6:$F$104,"<=" & T5,$I$6:$I$104,">=" & T5)
 
Last edited:
Upvote 0
Thanks for the reply Jonmo1 - your suggestion is how I have it set up now and I agree, but in an effort to reduce columns, I've been asked if I can embed the end date calc in the formula - currently have 4 activities with start/end dates + other data, so trying to cut down the current 8 date columns... struggling with doing so

...and no they don't want to just hide them - tried that
 
Last edited:
Upvote 0
Gotta love upper management.
Appearance is more important than function.

SUMIFS can't do it. It can only evaluate values in the cells exactly as they exist. No manipulation of those values allowed.

You'll need the much less efficient sumproduct version

=SUMPRODUCT(--($F$6:$F$104<=T5),--(($F$6:$F$104+$H$6:$H$104*7+1)>=T5),$J$6:$J$104)



Back to the point of helper column.
I understand the need for 'neatness'
But that should never outweigh the overal performance of the sheet.

If that hypothetical end date is needed for more than 1 formula, then it's duplicating calculations over and over again, that only needs to be done once.

The helper column can be 'Hidden'
It can be moved far to the side of the useable portion of the sheet (put it in column ZZ or whatever)
It can even be put on a different sheet, and hidden.
 
Last edited:
Upvote 0
True, might just move/hide them outside the usable area as you suggested, probably wouldn't even know.

Appreciate your time/help. Take it easy.
 
Upvote 0

Forum statistics

Threads
1,216,098
Messages
6,128,812
Members
449,468
Latest member
AGreen17

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