Manolocs

Active Member
Joined
Mar 28, 2008
Messages
340
Hi, Little bit workload but I need to figure out a calculation for this meal allowances with formulas:
A truck company pays their drivers a meal allowance but only when they are not driving and out of the base, the allowances are:
1- Breakfast 20USD from 7:30 to 9:30
2- Lunch = 40 USD from 12:30 to 14:30
3- Dinner = 50 USD from 19:30 to 21:30
For example, the truck start the journey 5:00 on the 2nd August, arrived in the first layover at 19:30 on the same day the driver is entitled to Dinner only, on the 3rd AUG the driver stay all day in this city resting so the driver is entitled to breakfast, lunch, and dinner, on the 4th AUG the journey starts at 04:00. The journey last until 14:35 only Dinner will be paid because the driver arrived 14:35 and miss by 5 minutes the lunch allowance.
The company only pays the meals if the drivers are out of the home base and not are driving at the time.

Any help is more than welcome.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
A1BCDEFGHIJKLMN
2DateAwayDriving at
Breakfast
Driving at
Lunch
Driving at
Dinner
BreakfastLunchDinnerTotal Driving
Start
Driving
Stop
38/1/17x 204050110 NoneNone
48/2/17x xx 20 20 5:007:00
58/3/17xxxx 0 5:0020:00

<colgroup><col><col><col><col><col><col><col><col><col><col><col span="3"><col></colgroup><tbody>
</tbody>
 
Upvote 0
Hello Manolocs - I hope this will help you get started.

The equation I used in H3 is: =IF(AND($C3="x",D3<>"x"),20,"")
 
Upvote 0
The equation in I3 is: =IF(AND($C3="x",E3<>"x"),40,"")
The equation in J3 is: =IF(AND($C3="x",F3<>"x"),50,"")

Let me know if you do not understand what I'm trying to do here.
 
Upvote 0
The driver would then have to fill in an x in columns C, D, E, and F as appropriate. If they are away - put an x in column c, if driving at breakfast, put an x in column d and so forth.
 
Upvote 0
Hi goesr, Thanks for your time but the idea is to get this "x" from the times the driver is working and not to make it all manually. there is a Start time and End time and then the spreadsheet should calculate.
 
Upvote 0

Forum statistics

Threads
1,214,782
Messages
6,121,532
Members
449,037
Latest member
tmmotairi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top