Welcome to the Smartsheet Forum Archives
The posts in this forum are no longer monitored for accuracy and their content may no longer be current. If there's a discussion here that interests you and you'd like to find (or create) a more current version, please Visit the Current Forums.
Lookup Function-bottom to top
Is there anyway to use lookup function to find the match from bottom (most recent) of the table rather than finding the match from top?
Comments
-
Hi Rkumar,
LOOKUP is designed to work in sorted (return the first value less than or equal to the lookup value) or unsorted (returns an exact match for the lookup value) lookup tables. There isn't a way to force the function to look from bottom to top rather than top to bottom.
All of our functions that calculate over ranges work from top to bottom, left to right. There isn't a way to change this behavior. You'd need to apply a sort to your table such that moves the recent rows to the top of the table.
-
I understand, thank you!
-
There is a way to force bottom to top LOOKUP in Excel. It doesn't seem to work in SmartSheets though. This is what it looks like in Excel and perhaps what it may look like when possible in SmartSheets:
LOOKUP(2,1/($A$2:$A$19=D2),$B$2:$B$19)
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives