Return value if a cell in the same row has highest value in the column
I'm working on an email campaign and want to see which issue has the highest open rate. If a value in Column C has the highest value in the column, return the value of Column A in the same row. I'm stumped. Can anyone provide this formula? VLOOKUP seems like the obvious choice, but I don't know how to reference a MAX formula.
Answers
-
@SarahBKarna I'm not 100% sure what you are trying to do but this formula may do the trick:
=INDEX(COLLECT(ColumnA:ColumnA, ColumnC:ColumnC, MAX(ColumnC:ColumnC)), 1)
This returns the value in ColumnA where the value in ColumnC is the maximum value found for all items. In the example below since 10 is the largest value the result returned will be "B".
You could also do this with a VLOOKUP():
=VLOOKUP(MAX(ColumnC:ColumnC), ColumnC:ColumnA, 2, 0)
But this would require that ColumnC is the leftmost column in your range so that the lookup has something to search for. Basically find the maximum value ("10") and use that to find the correct row and return the value from ColumnA.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!