How do I return the number of workdays in a month using only the start date?
Answers
-
First I had this, worked fine until December
=NETWORKDAYS([start day]@row, DATE(YEAR([start day]@row), MONTH([start day]@row) + 1, 1) - 1)
then i tried this
=IF(MONTH(start day@row) = 12, NETWORKDAYS(start day@row, DATE(YEAR(start day@row), 12, 31)), NETWORKDAYS([start day]@row, DATE(YEAR([start day]@row), MONTH([start day]@row) + 1, 1) - 1))
neither works
-
First I had this, worked great until December went Invalid
=NETWORKDAYS([start day]@row, DATE(YEAR([start day]@row), MONTH([start day]@row) + 1, 1) - 1)
then i tried this
=IF(MONTH(start day@row) = 12, NETWORKDAYS(start day@row, DATE(YEAR(start day@row), 12, 31)), NETWORKDAYS([start day]@row, DATE(YEAR([start day]@row), MONTH([start day]@row) + 1, 1) - 1))
-
see above
-
Hey Dave
In your IF formula, you referenced 'start day' but it doesn't have the square brackets required for a column name containing a space.
This should work for you
=IF(MONTH([start day]@row) = 12, NETWORKDAYS([start day]@row, DATE(YEAR([start day]@row), 12, 31)), NETWORKDAYS([start day]@row, DATE(YEAR([start day]@row), MONTH([start day]@row) + 1, 1) - 1))
Kelly
-
Thank you!
works fine now!
-
Hey Dave
Would you take a screenshot of your formula with the colored text? It would be terrific if it also included your column header for your date field
Thanks,
Kelly
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!