Find Latest Date for With a criteria in rows
I have a form that my field team inputs the action they make in customer, the same form is used for every customer, In Another sheet, I have the visit controle, and in this other sheet, I want to know the last visit my team made to each customer.
So I need to use a MAX formula for each specific customer.
The only solution I found was to user forms to enter the response in the upper rows, so my Vlookup brigs the latest entered visit, but it is not failure proof, so I would like the formula to look for the latest instead.
Thanks,
Best Answer
-
Hey @Carloscmatos,
Try this formula:
=MAX(COLLECT({Ref 1:Date:Date}, {Ref 2:Customer:Customer}, [Customer]@row))
Answers
-
Hey @Carloscmatos,
Try this formula:
=MAX(COLLECT({Ref 1:Date:Date}, {Ref 2:Customer:Customer}, [Customer]@row))
-
I wrote this up back in 2020 when I faced a similar challenge. I show my flawed solution and then explain how the correct solution I found works. Mine was for finding earliest date, but I could easily be adapted to find latest date. Perhaps it will help you.
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
Thanks for both of you who answered the question, but @Devin Lee was simple and got the job done perfectly!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!