Networkday formula with Cross Sheet Reference to Holidays Sheet

Jonathan Rinkerman
Jonathan Rinkerman ✭✭✭
edited 01/10/22 in Formulas and Functions

Hello!

I'm running into a strange issue with my networkday formula. I'm trying to keep track of time off requests as they are submitted. The following formula was working for me as of now.

=NETWORKDAY([Start Date]@row, [End Date]@row)

However, I noticed that the count wasn't correct as some people were including company holidays In their submissions which shouldn't count against that number. I added our company holidays to the same sheet and excluded them and that worked.

I then wanted to clean things up a bit and create a separate sheet for company holidays and just use a reference in the request tracker. However, when I use a cross sheet reference in the formula I get a # invalid data type error. The formula is below and here is a screenshot to the referenced sheet.

=NETWORKDAY([Start Date]@row, [End Date]@row, {Company Holidays 2022 Range 2})

Please let me know what I am missing.

Tags:

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!