Return the last text value from a multi-column search
I have 5 columns from left to right: 'Site 1', 'Site 2', 'Site 3', 'Site 4', 'Site 5'.
I am looking to search each column by row to see if there is a value entered into each site column. If a value is entered, I'd like to return the last site that has a value into a new column labeled 'Latest Site' (e.g. Site 1 and 2 have values so then the Latest Site column returns the value from Site 2).
The site columns would be text fields. Below is an example of what should happen. Could you help with a formula that could be used in the Latest Site column?
Answers
-
@Charles Stiegemeier It isn't pretty, but if you are just checking right to left, you could try:
=IF(NOT(ISBLANK([Site 5]@row), [site 5]@row, if(NOT(ISBLANK([site 4]@row, [row 4], IF(NOT( ... ETC ETC
Cheers,
dm
-
Try this:
=INDEX([Site 1]@row:[Site 5]@row, COUNTIFS([Site 1]@row:[Site 5]@row, @cell <> ""))
-
I see you marked both responses as not answering your question. Can you clarify what didn't work for you? Are you getting a formula error or an incorrect result?
Join us at Smartsheet ENGAGE 2024 🎉
October 8 - 10, Seattle, WA | Register now
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.3K Get Help
- 364 Global Discussions
- 199 Industry Talk
- 428 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 444 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!