Vacation Days Formula - calculating half days
Hi,
I am trying to incorporate 0.5 days of annual leave into my vacation tracker.
I have the forumla =NETWORKDAYS([Start Date]@row, [End Date]@row, {Bank Holiday Lookp}) to calculate overall number of days out (minus public holidays). From this total I then want to include any 0.5 days from this when 'half day requested' is shown as "Yes".
I can't seem to get the below forumla to work for me:
=(NETWORKDAYS([Start Date]63, [End Date]63) - IF([Half-day]63, .5_if_true, 0_if_false))
Best Answer
-
You don't need the _if_true / false pieces.
=NETWORKDAYS([Start Date]63, [End Date]63) - IF([Half-day]63 = "Yes", .5, 0)
Answers
-
You don't need the _if_true / false pieces.
=NETWORKDAYS([Start Date]63, [End Date]63) - IF([Half-day]63 = "Yes", .5, 0)
-
Thank you! that's it working now :)
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.1K Get Help
- 414 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!