Countifs formula using DATE( )

Kemidan2014

Board Regular
Joined
Apr 4, 2022
Messages
226
Office Version
  1. 365
Platform
  1. Windows
I am working on a formula for graphing some metrics at work. In the countifs statuement below Column A is a Date

Original formula, which works but doesnt allow for easy adjusting as years pass. In this case correctly gave me 12 as a result
Excel Formula:
=COUNTIFS(A3AuditMetrics!B1:B1000,"",A3AuditMetrics!A1:A1000,">=10/3/2022")

what i tried was to use a formula to target a cell that i placed for a Year value that my manager or another user can change when they need. what i was essentially needing was to count for dates in column A that are 90 days before the beggining of the year we want to evaluate. This yeilds 0
Excel Formula:
=COUNTIFS(A3AuditMetrics!B1:B1000,"",A3AuditMetrics!A1:A1000,">=DATE(G1,1,1)-90")

is it that DATE() can not be used in CountIFS?
 

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).
Try changing this:
Excel Formula:
=COUNTIFS(A3AuditMetrics!B1:B1000,"",A3AuditMetrics!A1:A1000,">=DATE(G1,1,1)-90")
to this:
Excel Formula:
=COUNTIFS(A3AuditMetrics!B1:B1000,"",A3AuditMetrics!A1:A1000,">=" & DATE(G1,1,1)-90)
 
Upvote 0
Solution

Forum statistics

Threads
1,215,480
Messages
6,125,050
Members
449,206
Latest member
Healthydogs

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