I am working on a date Formula and I was able to get Feb, but it's not working for the other months?
I am putting together a KPI for my customer. I have to put how many PTD's we have for each month. The month of Feb. is working but I can not get the other months to work and could use some help.
Answers
-
Can you post the formula you currently have that is working?
-
=COUNTIFS([Estimated PTD]:[Estimated PTD], >=DATE(2023, 2, 1) <= DATE(2023, 2, 28))
-
If you're just concerned with the month, you could use:
=COUNTIF([Estimated PTD]:[Estimated PTD], IFERROR(MONTH(@cell),0) = 2)
That should work for February, and you should only have to change the month number (ie 2) to get other months to work.
-
Correct, and I have been doing that for March and April changing the month and it's not adding up correctly.
-
Then I would check your column type and also make sure there aren't any formatting issues with any of the dates you currently have in your column. Otherwise, that formula should work correctly.
If the checkbox "Restrict to dates only" is not checked in the column settings then you could potentially have entries that are not correctly formatted as dates, which would throw your counts off.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!