Hello, I would like to track planned leave and duration for my team. On my sheet, I have "Start Date", "Half Day Start", "End Date"; and "Half Day End" columns.
If Start Date is Mon 24-Jun-2024 and Half Day Start is Ticked; and
End Date is Wed 26-Jun-2024 and Half Day End is Ticked, the Duration should be 2 days
I am using this formula
=NETDAYS([Start Date]@row, [End Date]@row) + IF([Half Day Start]@row = "Yes", -0.5, 0) + IF([Half Day End]@row = "Yes", -0.5, 0)
but the duration is showing as 3d, which is incorrect. How can I fix this please?