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
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!