Vlookup to find Max Instance

Hello,
I used the below formula in a Smartsheet to count the instances of a value and it worked perfectly. I have a second sheet were I am now trying to use a vlookup to pull in the highest instance of that product.
=COUNTIFS(Product:Product, @cell = Product@row, [Auto-Number]:[Auto-Number], @cell >= [Auto-Number]@row)
Example:
Sheet 1
Product A Instance 1
Product A Instance 2
Sheet 2
Product A —> Instance 2
Could someone help?
Thank you!
Best Answer
-
You can use the MAX + COLLECT functions to do this. On a single sheet, it would look something like this:
=MAX(COLLECT(Number:Number, Product:Product, [Product Lookup]@row))
Jason Tarpinian - Sevan Technology
Smartsheet Aligned Partner
Answers
-
You can use the MAX + COLLECT functions to do this. On a single sheet, it would look something like this:
=MAX(COLLECT(Number:Number, Product:Product, [Product Lookup]@row))
Jason Tarpinian - Sevan Technology
Smartsheet Aligned Partner
-
Jason, thank you for your help!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66.7K Get Help
- 438 Global Discussions
- 152 Industry Talk
- 497 Announcements
- 5.3K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 77 Community Job Board
- 509 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 307 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!