I have Column A with mixed data types (numbers and strings) and in Column B I want for each numbers in Column A to display the string that is the closest above. Example:
Title|
1|Title
2|Title
Next title|
3|Next title
etc.
I was able to do it with a formula per row (here in B5 for instance):
=IF(ISNUMBER($A5),INDEX($A:$A,MAX(NOT(ISNUMBER($A$1:$A5))*(ROW($A$1:$A5))),1),"")
But as I have thousands of lines I'm looking for an =ARRAYFORMULA()
solution, if possible.
Example to play with: https://docs.google.com/spreadsheets/d/1VQpXs8-yPcLwLTxqWJnHFW-xlOsdmwxQHgxbQpDgU1k/edit?usp=sharing