I am working with an expense reimbursement report that takes into consideration several scenarios for mileage:
1. The first 30 miles driven of a total one-way trip are not reimbursed if the employee leaves from his/her residence.
2. If an employee leaves on a trip from the company storage unit (electrical contractor), all of the mileage is reimbursed the first direction but not the second; the return trip subtracts 30 miles as the employee is traveling from the jobsite to their residence.
3. Mileage is reimbursed at the rate of .50 per mile.
I have the formula for calculating the mileage correct, but failed to notice that it does not take into consideration that it should not subtract the 30 miles if the employee has started the trip from the storage unit.
Therefore, I need a modification of the formula:
=MAX(((G14-30)*0.5),0)
that:
- searches for the word "storage" in cells C14 through C35 and if found, DOES NOT subtract 30 miles before multiplying the total mileage times .50.
I cannot wrap my head around how to skin this cat. Do I need a helper column? Can it be done with one formula?
Any help would be appreciated. I need to get this resolved quickly!
Thank you,
Gina
1. The first 30 miles driven of a total one-way trip are not reimbursed if the employee leaves from his/her residence.
2. If an employee leaves on a trip from the company storage unit (electrical contractor), all of the mileage is reimbursed the first direction but not the second; the return trip subtracts 30 miles as the employee is traveling from the jobsite to their residence.
3. Mileage is reimbursed at the rate of .50 per mile.
I have the formula for calculating the mileage correct, but failed to notice that it does not take into consideration that it should not subtract the 30 miles if the employee has started the trip from the storage unit.
Therefore, I need a modification of the formula:
=MAX(((G14-30)*0.5),0)
that:
- searches for the word "storage" in cells C14 through C35 and if found, DOES NOT subtract 30 miles before multiplying the total mileage times .50.
I cannot wrap my head around how to skin this cat. Do I need a helper column? Can it be done with one formula?
Any help would be appreciated. I need to get this resolved quickly!
Thank you,
Gina
Last edited: