Return first non-empty value in a range
Hello everyone,
I am attempting to write a formula that will search through row data and return the first non-empty value it finds. In the example below, the cell for city is where the formula will be placed. It should scan the rows [AZ Cities]@row:[CA Cities]@row and return Yorba Linda.
If the state was AZ, The [CA Cities] row would be blank and the formula might return Phoenix.
Appreciate any help you might be able to provide.
Thank you
Best Answer
-
Try this...
=INDEX(COLLECT([AZ Cities]@row:[CA Cities]@row, [AZ Cities]@row:[CA Cities]@row, @cell <> ""), 1, 1)
Answers
-
Try this...
=INDEX(COLLECT([AZ Cities]@row:[CA Cities]@row, [AZ Cities]@row:[CA Cities]@row, @cell <> ""), 1, 1)
-
You're a wizard, Paul!
Thank you so much, that worked beautifully
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!