Meal Allowance Reimbursement calculation

pajaropr

New Member
Joined
Jun 26, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I am in need of a Meal Allowance Reimbursement Template that calculates based on the information what allowances are due to the traveler.

Breakfast $6
Lunch $11
Dinner $19
Total for day $36

Meals for first and last days of Domestic Travel are based on times of departure and return. On first and last days, travel must begin before 6am and extend past 8am to qualify for breakfast; begin before Noon and extend past 2pm to qualify for lunch; and begin before 6pm and extend past 8pm to qualify for dinner.

Thank you.
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
MrExcelPlayground18.xlsx
ABCD
1BLD
26:00 AM12:00 PM6:00 PM
38:00 AM2:00 PM8:00 PM
4$6.00$11.00$19.00
5
6StartMonday 6/26/2023 6:00 AM
7FinishFriday 6/30/2023 2:00 PM
8
9Meal:$161.00
Sheet10
Cell Formulas
RangeFormula
B9B9=LET(s,B6,f,B7,sm,A2:C2,fm,A3:C3,mp,A4:C4,a,SEQUENCE(INT(f)-INT(s)+1,1,INT(s)),b,a+sm,c,a+fm,d,IF((b>=s)*(c<=f),mp,0),SUM(d))
 
Upvote 0
MrExcelPlayground18.xlsx
ABCD
1BLD
26:00 AM12:00 PM6:00 PM
38:00 AM2:00 PM8:00 PM
4$6.00$11.00$19.00
5
6StartMonday 6/26/2023 6:00 AM
7FinishFriday 6/30/2023 2:00 PM
8
9Meal:$161.00
Sheet10
Cell Formulas
RangeFormula
B9B9=LET(s,B6,f,B7,sm,A2:C2,fm,A3:C3,mp,A4:C4,a,SEQUENCE(INT(f)-INT(s)+1,1,INT(s)),b,a+sm,c,a+fm,d,IF((b>=s)*(c<=f),mp,0),SUM(d))
Thank you!!!!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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