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
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!