Sign in to join the conversation:
Hi
Need to determine how many days in the current year (365 or 366) to be used in a calculation. Can anyway suggest how to determine how many days in the current year?
Cheers
Simon
There are a few ways do do this. The most straightforward being
=YEARDAY(DATE(2019, 12, 31))
This will give you the year day (1 - 365 or 366) for whatever date you specify. In this case it would be the last day of the year.
You can automate the date to look at this year, next year, previous year, etc, you can leave it as manual entry within the formula, or you can use various options for cell referencing to change the entire date or the year, or many other possibilities.
Or, if you just want a simple Yes/No (is this year a leap year), divide the current year by 4, then compare that to the integer version.
"Int(currentYear/4)=currentYear/4" should return a True/False matching "Is this year a leap year"
Thanks Paul and Corey, based on your input i used the below:
=YEARDAY(DATE(YEAR([Due Date]1), 12, 31)) = 365 or 366
Provides number of days in year, based on the date contained in another cell [Due Date].
Excellent Use. Happy to help!
I have a form that will be filled out internally. There's a cell labeled "Department" which contains 8 dropdown list values. There's a another cell called "Executives" which are the leaders of these departments. In the form, I'm attempting to do a logic where when you choose a specific "Department", then the cell…
I shared access to a user to a specific folder under workspace A (folder is 2025-09-Service Factory). However, I can see that he's shown to have access to all the other child folders under 02-ACTIVE Initiatives. Why is that when I only shared out one folder? Is there a way to only share access to users to ONLY specific…
what i can do if all my existing smartsheet gant files can't be open after change my plan to Pro? what could be the reason ?