Vlookup to find Max Instance
![Jen K.](https://us.v-cdn.net/6031209/uploads/defaultavatar/nWRMFRX6I99I6.jpg)
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
- 62.1K Get Help
- 351 Global Discussions
- 198 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
- 283 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!