In H3 array formula:
and copy right/down
...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
If you want to understand better how it works start from innermost:
as you copy it down it gives row numbers for non-empty cells from column C. After four rows numbers it returns errors, because there is no more data. This errors are at final stage served by outermost function - IFERROR
In the middle, there is an index function which returns data from given rows.
Bookmarks