I have two formulas that work independently as they should, but I need to combine them into one and count NETDAYS, if a certain department, and count NETWORKDAYS for all other departments. I was able to combine without error, but it doesn't calculate properly, it will work for one but not the other.
Formula 1 - is the one we have been using and it works fine to calculate the working days.
=IF(AND([Department Head approval]@row ="Approved", [Cancel Request]@row = "Y"), -NETWORKDAYS([From Date]@row, [To Date]@row) - [Half Day Count]@row, IF([Department Head approval]@row ="Approved", NETWORKDAYS([From Date]@row, [To Date]@row) - [Half Day Count]@row, 0))
Formula 2 - NetDays for Department Cyber - SOC.
=IF(AND(Department@row = "Cyber - SOC",[Department Head approval]@row = "Approved", [Cancel Request]@row = "Y"), -NETDAYS([From Date]@row, [To Date]@row) - [Half Day Count]@row, IF([Department Head approval]@row = "Approved", NETDAYS([From Date]@row, [To Date]@row) - [Half Day Count]@row, 0))
I've tried everything I can think of. I'm sure it's something simple that I'm missing. Any help would be greatly appreciated.