I need to evaluate how many days off a person is going to get depending on their location. Offshore or Onshore. We have Onshore employees and Onshore contractors as well as Offhore employees and Offshore contractors. The formula below evaluates if someone is an Onshore or Offshore resource then uses a range from another sheet to determine the number of working days.
In the formula below, my Onshore employee and Onshore contractor is working. The value appears, but when I select Offshore employee, I get a blank in the field and when I select Offshore Contractor, I get an #invalid data type error. I tried cutting and pasting the functioning part of the formula into the non-functioning part of the formula and just replacing the Onshore with Offshore and the range reference but that didn't work.
Any advice on how I should fix this? - Thanks
=IF(OR(AND([Resource Location]@row = "Onshore Employee"), AND([Resource Location]@row = "Onshore Employee")), NETWORKDAYS([Start Date]@row, [End date]@row, {2021 HGS Digital Holiday Range 1}), IF(OR(AND([Resource Location]@row = "Onshore Contractor")), NETWORKDAYS([Start Date]@row, [End date]@row, {2021 HGS Digital Holiday Range 1}), IF(OR(AND([Resource Location]@row = "Offshore Contactor"), AND([Resource Location]@row = "Offshore Contractor")), NETWORKDAYS([Start Date]@row, {2021 HGS Digital Holiday Range 2}, NETWORKDAYS([Start Date]@row, {2021 HGS Digital Holiday Range 2})))))