Hello All,
I am stuck. I need to design a workbook that charges customers based on staff time sheets.
This is a reduced version I am using to work out the formulas before I transfer it into the proper sheet...
So, if the hours worked are between 6am and 6pm, they are charged at Rate 1, if the hours are after 6pm and before 6am, they are charged at Rate 2.
I have worked out how to calculate the number of hours for Rate 2 (Formula in C3)
, but I am having specific difficulty working out how to calculate the hours BETWEEN 6am and 6pm when the hours start before 6am and / or after 6pm.
I hope this all makes sense and you can help me?
Thank you, Toby.
I am stuck. I need to design a workbook that charges customers based on staff time sheets.
This is a reduced version I am using to work out the formulas before I transfer it into the proper sheet...
I have worked out how to calculate the number of hours for Rate 2 (Formula in C3)
Excel Formula:
=IF(A3<A1,(A1-A3)*24,0)+IF(B3>B1,(B3-B1)*24,0)
I hope this all makes sense and you can help me?
Thank you, Toby.