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
- 62.1K Get Help
- 348 Global Discussions
- 199 Industry Talk
- 427 Announcements
- 4.4K Ideas & Feature Requests
- 133 Brandfolder
- 127 Just for fun
- 127 Community Job Board
- 455 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 282 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!