Countifs formula using DATE( )

Kemidan2014

Board Regular
Joined
Apr 4, 2022
Messages
229
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

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
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,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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