I am creating an expense sheet, and when it comes to meals, some claim what they actually paid and others claim the per diem amount.
I'm having a hard time to figure out how to use the max function to give me the actual amount spent or the per diem but not going over $40.00
Here is how its set up
Cells: F22 is breakfast F23 is Lunch and F24 is dinner. These cells would be the actual amount spent on each meal and returns the total in cell M22. However, my maximum amount that can be paid out is $40.00 so example is 8.00+16.00+20.00 M22 would return 44.00 but I want it to maximize the cell amount to $40.00.
How can I write the formula for this?
Thanks in advance.
Bob
I'm having a hard time to figure out how to use the max function to give me the actual amount spent or the per diem but not going over $40.00
Here is how its set up
Cells: F22 is breakfast F23 is Lunch and F24 is dinner. These cells would be the actual amount spent on each meal and returns the total in cell M22. However, my maximum amount that can be paid out is $40.00 so example is 8.00+16.00+20.00 M22 would return 44.00 but I want it to maximize the cell amount to $40.00.
How can I write the formula for this?
Thanks in advance.
Bob