CountIfs Question

richtks

New Member
Joined
Jun 1, 2019
Messages
16
Hello again.

I'm trying to utilize CountIfs to determine workflow...

=COUNTIFS(Details[Market Combined],[@Market],Details[4225:Year],"=2024",Details[4225:WK],">=16",Details[4225:WK],"<=19")

instead of having to manually change the weeks (Row [4225:WK]), I'd like to just set a date range of 28 days prior to "today()" (basically 4 weeks).

Any advise?
 

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).
you have this:
Excel Formula:
=COUNTIFS(
Details[Market Combined],[@Market],
Details[4225:Year],"=2024",
Details[4225:WK],">=16",
Details[4225:WK],"<=19")
In what part of that do you want to use today()-28?
Or is it a different column in the table?
 
Upvote 0
you have this:
Excel Formula:
=COUNTIFS(
Details[Market Combined],[@Market],
Details[4225:Year],"=2024",
Details[4225:WK],">=16",
Details[4225:WK],"<=19")
In what part of that do you want to use today()-28?
Or is it a different column in the table?
I'm wanting to replace the [4225:WK],">=16" & [4225:WK],"<=19", which are week's 16 and 19 and just go with today - 28 days. I would use the dates in my "Details[PJ(4225) Construction Start]" Column
 
Upvote 0
Try:
Excel Formula:
=COUNTIFS(Details[Market Combined],[@Market],Details[4225:Year],"=2024",Details[4225:WK],">="&TODAY()-28,Details[4225:WK],"<="&TODAY())
 
Upvote 0
Another option
Excel Formula:
=COUNTIFS(Details[Market Combined],[@Market],Details[PJ(4225) Construction Start],">="&today()-28,Details[PJ(4225) Construction Start],"<="&today())
 
Upvote 0
Solution

Forum statistics

Threads
1,216,113
Messages
6,128,904
Members
449,477
Latest member
panjongshing

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