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"))
Joseph Aloysias| Solutions Lead
vSaaS Global
Book a Meeting
Phone: +91-8148459084 -
=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
Joseph Aloysias| Solutions Lead
vSaaS Global
Book a Meeting
Phone: +91-8148459084 -
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 😊
Joseph Aloysias| Solutions Lead
vSaaS Global
Book a Meeting
Phone: +91-8148459084 -
@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"))
Joseph Aloysias| Solutions Lead
vSaaS Global
Book a Meeting
Phone: +91-8148459084 -
@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.
Joseph Aloysias| Solutions Lead
vSaaS Global
Book a Meeting
Phone: +91-8148459084
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.5K Get Help
- 468 Global Discussions
- 156 Industry Talk
- 511 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 156 Just for fun
- 81 Community Job Board
- 520 Show & Tell
- 35 Member Spotlight
- 3 SmartStories
- 307 Events
- 35 Webinars
- 7.3K Forum Archives