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!
Hello! Has anyone run into an issue with Portfolio Reports similar to the below and has a suggestion? We have a portfolio report set up based on the portfolio and it is bringing in sheets automatically based on the templates we have in the portfolio. Whenever we log out of Smartsheet and log back in, the report resets…
Has anyone had an issue where collaborators have lost their editor access to a worksheet? If so, how was it corrected? I have tried removing and resetting, clearing history cache, ensuring Publish:Read Only is OFF, etc. I could rteally use some help.
Hi experts, I have a problem with a conditional formatting rule not performing as expected. I have a dropdown field called "Transit country", and multiple country options can be added from a list (not blurring out the actual options as I'm sure we're all aware of current travel concerns). I've used Contains as it's…