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 run into an interesting but small bug. When setting up an automation, the action 'change cell value' will allow you to select checkbox columns, but not checkbox columns that are the star or flag visual variant. Those can't be selected in the change value action. Now the real issue. I go to submit a bug report or…
Hello All, I am having difficulties uploading my information to the welcome and help screens. We are a Micro Soft 365 shop, using share point, and I am getting the error message that share point in refusing to connect. Whereas this appears to be a share point issue; I have reached out to our IT Department, and we cannot…
Hi Everyone, I am managing a pipeline tracking sheet, and there's one intake form and one dynamic view connecting with this sheet. For the column "Branch Contact" and "Sales leader", I set the filed type as "Contact list" and the validation as "No validation". Once I input the username in the intake form, I go to the…