To return the first non-blank cell in a row I use:
=INDEX(C1:F1,MATCH(TRUE,INDEX((C1:F1<>0),0),0))
However, how do you return the second non-blank cell in a row? I only have text in my cells.
When I attempt =INDEX(C1:F1,AGGREGATE(15,6,COLUMN(C1:F1)/SIGN(LEN(C1:F1)),2)), as suggested.
I don't get the next non-blank cell returned, I get F cell returned, even if there are others that should have been returned before it. If there is nothing in F, I get a 0.
COLUMN($A:$D)
will give you the position within columns C:F. – user4039065