Mileage reimbursement Help
I have automated an expense report. This worked great as I did an index/match on the date the expense was for, compared to the year, and reported back the mileage reimbursement rate.
=IF(ISBLANK(Miles@row), Miles@row * 0, Miles@row * (INDEX({Mileage Reimbursement master Range 1}, MATCH([F*Year]@row, {Mileage Reimbursement master Range 2}, 0))))
The core sheet looked like the below (minus the start and end, that i just added)
My goal is to get something that looks at the expense sheet of DATE, if date is between the start and end date, it will pull back the rate into the calculation.
I'm just not sure how to do a formula without nested if statements.
Can anyone help out?
Best Answer
-
Your MATCH would look more like this...
MATCH(MAX(COLLECT({Start Date}, {Start Date}, @cell <= Date@row)), {Start Date}, 0)
Answers
-
Your MATCH would look more like this...
MATCH(MAX(COLLECT({Start Date}, {Start Date}, @cell <= Date@row)), {Start Date}, 0)
-
@Paul Newcome Thank you!! This yielded the exact results I needed.
Below is the exact formula I use for our expense report.
=IF(ISBLANK(Miles@row), Miles@row * 0, Miles@row * (INDEX({Mileage Reimbursement Rate}, MATCH(MAX(COLLECT({Mileage Reimbursement Start Date}, {Mileage Reimbursement Start Date}, @cell <= Date@row)), {Mileage Reimbursement Start Date}, 0)))
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 494 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!