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
- Smartsheet Customer Resources
- 64K Get Help
- 412 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 140 Just for fun
- 57 Community Job Board
- 461 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!