Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88854

Paying different hourly pay between different hours during a 24 hours day

$
0
0

I am paying salaries for some workers and they have different salary depending on what time of the day they work. E.g. if they work between 06:00-22:00 they earn X and if they work between 22:00-06:00 they earn Y. The time extracted from my software take the total time worked, e.g. between 21:15-06:15, i.e. the staff will get paid differently during the time of this shift. It should get paid X between 21:15-22:00 and Y during 22:00-06:00 and X between 06:00-06:15. How do I break the time out so I can chose to pay different between the different time slots. I've attached a gsheet with some example data and with two columns where the output should be:

https://docs.google.com/spreadsheets/d/1nRrxn6tTtiNXCrssMJwRyWL2jj5TXBFVmNhKPJ_BbVg/edit#gid=0

Example:

I shift is from 05:25-22:35. Then I want to pay normal pay between 06:00-22:00 but higher pay between 22:00-06:00. So how can I with a formaula break out hours between this two different criteria's so the salary will be correct?


Viewing all articles
Browse latest Browse all 88854

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>