Not sure what to use...sumif, countif, sumproduct

dgardnerman

Board Regular
Joined
Jul 17, 2014
Messages
73
Hi group,

I've been digging for hours trying to figure out what to use for this formula and I am coming up with blanks...
I want to count the dates in column A that will come due in 1 week, 2 weeks, 3 weeks, etc and report that number back to the corresponding cell A1,A2,A3,A4 or A5, yes each will have a different formula based on the due criteria. I think I'm close, I just not sure if I am expressing the ">=" values correctly.

Also, I need to make sure it'll work if there are blanks found in the range of A21:A175

Thanks for your help!
 

Attachments

  • Screen Shot 2019-11-19 at 8.37.57 PM.jpg
    Screen Shot 2019-11-19 at 8.37.57 PM.jpg
    49.2 KB · Views: 7

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
I think I figured it out....I'm using this:
=COUNTIFS($A$21:$A$175,">="&TODAY(),$A$21:$A$175,"<="&TODAY()+7) ------this watches anything within week 1
=COUNTIFS($A$21:$A$175,">="&TODAY()+7,$A$21:$A$175,"<="&TODAY()+14) --this watches anything within week 2

It appears to be doing what I want and the blanks do not appear to be an issue
 
Upvote 0
I'd suggest changing the "<=" to "<" otherwise you'll count the TODAY()+7 twice.


Book1
ABCD
1Updated11/20/2019
2
3
4
5Due in 1 week2
6Due in 2 weeks1
7Due in 3 weeks2
8Due in 4 weeks2
9Past Due1
10
19
20Due DateSubmitted Final Rev.Rev.Estimate No.
2111/19/201911/18/2019 2 737373
2211/21/201911/22/2019 - 368687
2311/22/201911/26/2019 - 184343
2411/30/201911/30/2019 4 727271
2512/5/201912/4/2019 2 929292
2612/8/201912/8/2019 - 8383838
2712/12/201912/12/2019 - 4191919
2812/16/201912/16/2019 4 2095960
2912/20/201912/20/2019 2 1047980
3012/24/201912/24/2019 - 523990
3112/26/201912/26/2019 - 261995
Sheet1
Cell Formulas
RangeFormula
B1B1=TODAY()
B5B5=COUNTIFS($A$21:$A$75,">="&$B$1+0,$A$21:$A$75,"<"&$B$1+7)
B6B6=COUNTIFS($A$21:$A$75,">="&$B$1+7,$A$21:$A$75,"<"&$B$1+14)
B7B7=COUNTIFS($A$21:$A$75,">="&$B$1+14,$A$21:$A$75,"<"&$B$1+21)
B8B8=COUNTIFS($A$21:$A$75,">="&$B$1+21,$A$21:$A$75,"<"&$B$1+28)
B9B9=COUNTIFS($A$21:$A$75,"<"&$B$1)
 
Upvote 0

Forum statistics

Threads
1,214,924
Messages
6,122,294
Members
449,077
Latest member
Rkmenon

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