YTD calculation - 01Apr-31Mar
Answers
-
Hi @Paul Newcome, this also shows "0" value
=COUNTIFS([Actual End Date]:[Actual End Date], @cell >= DATE(YEAR(TODAY()), 4, 1), [Actual End Date]:[Actual End Date], @cell <= DATE(YEAR(TODAY()), 3, 31), [Project Status]:[Project Status], OR(@cell = "Completed", @cell = "In Progress"))
-
=COUNTIFS([Actual End Date]:[Actual End Date], @cell >= DATE(2022, 4, 1), [Actual End Date]:[Actual End Date], @cell <= DATE(2023, 3, 31), [Project Status]:[Project Status], OR(@cell = "Completed", @cell = "In Progress"))
Previously you said the above was working fine, but then when you switched the hardcoded year in each of the DATE functions to YEAR(TODAY()) it stopped working?
Are you able to provide a screenshot of the formula in the actual sheet as opposed to a copy/paste?
-
Thank you for your response, please find the screenshot -
Yes its stopped working after I change to YEAR(TODAY()), I get "0" value
-
I see the problem. The second DATE function needs to be YEAR(TODAY()) + 1 so that it goes into next year.
-
You are awesome! it worked. Thank you so much 😊
-
Happy to help. 👍️
-
@Paul Newcome this formula shows "zero" value from Jan 1st 2023, Could you please help to fix this?
=COUNTIFS([Actual End Date]:[Actual End Date], @cell >= DATE(YEAR(TODAY()), 4, 1), [Actual End Date]:[Actual End Date], @cell <= DATE(YEAR(TODAY()) + 1, 3, 31), [Project Status]:[Project Status], OR(@cell = "Completed"))
-
@Domnic Victor Your formula is counting where the end date is between 1 April 2023 and 31 March 2024.
-
Yes @Paul Newcome, you are right. I used this formula to calculate YTD - its working now.
=COUNTIFS([Actual End Date]:[Actual End Date], @cell >= DATE(IF(MONTH(TODAY()) < 4, YEAR(TODAY()) - 1, YEAR(TODAY())), 4, 1), [Actual End Date]:[Actual End Date], @cell <= DATE(IF(MONTH(TODAY()) > 3, YEAR(TODAY()) + 1, YEAR(TODAY())), 3, 31), [Project Status]:[Project Status], AND(@cell = "Completed"))
Thank you for your support.
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives