I am restructuring a few datasets and need to retrieve a list of non-contiguous values in a row in Excel for Mac. There are cells with blank spaces that should be discarded, so the result is a horizontal list of the same values, without the blank cells in between them.
The values appear in blocks of 6 contiguous cells interspersed by varying amounts (multiples of 6!) of blank cells. Data is numeric, so >0 does the trick. I have tried adapting solutions found online, such as this one here, with no luck.
I had to do something similar by retrieving 1st to 10th occurrence of values separately, and was able to accomplish that after dumping hloookup, learning index+match and array formulas, and adjusting solutions found online for a similar problem with columns, like this.
This is how my solution to the retrieving the 2nd occurence in a row looks like:
=IFERROR(INDEX($FR5:$GT5,SMALL(IF($FR5:$GT5>0,COLUMN($FR5:$GT5)-COLUMN($FR5)+1,FALSE),2)),"9999")
where $FR5:$GT5 is the range from which I need to retrieve values, and 9999 is my code for missing values. Just thought I'd throw it there, someone with limited skills as myself might find it useful.
Any tips to help me move along? Preferably, I'd like to adapt my previous formula to resolve this issue. I tried but was unable to get rid of the blank cells. I am stuck! Thanks in advance.