Returning the most recent value that matches multiple criteria (cross-sheet lookup)
Hi All,
I am trying to create a preventative maintenance schedule for our fleet vehicles and heavy equipment machines based on the vehicle/machine, the most recent odometer readings or machine hours, and the type of service needed (PM Service 2, PM Service 3, Oil Change, etc.).
For my source sheet, I'm using a repair and maintenance sheet that covers all repairs and maintenance performed on all machines.
My desire is to only return the most recent odometer readings/machine hours of these services.
I tried VLOOKUP but can only search for one value and return 1 value.
How do I get (Can I get) SmartSheet to return a cross-sheet value that meets 2 or more criteria and can this work if there are multiple matches which differ only by when the entry was made?
Source Sheet:
Thanks!
Best Answer
-
Hey Paul,
Your formula got me a step closer.
Thanks!
Answers
-
I will take a try at the first part of the problem.
In your Equipment Repairs Log Sheet add a new checkbox column and use this as its column formula.
=IF([Submission Date]@row = MAX(COLLECT([Submission Date]:[Submission Date], Machine:Machine, Machine@row)),1)
This should checkmark the most recent submission for each machine.
-
Hey Paul,
Your formula got me a step closer.
Thanks!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!