Index function but when cell is blank, then show latest item
Options

stephennazworth
ββ
Hello all,
I am working on a project that when a form is submitted, the index formula pulls the data from the highest row ID so it can be shown on a dashboard metric. However, if a form is submitted and parts of the form are left blank, I want the index to pull the latest data that is not blank. Column "Origin Station" is an example of an item in the form left blank. I would want the index to show the latest item that is not blank which in this case would be "LGA".
Attached is a screenshot for reference of current formula and sheet.
Can someone help in making a formula that would work? Thank you!
Answers
-
Try a MAX/COLLECT instead of just a MAX.
MAX(COLLECT([Row ID]:[Row ID], [Destination Station]:[Destination Station], @cell <> ""))
Help Article Resources
Categories
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!