How to get farthest left value greater than 0?

Copper Contributor
I've got 31 columns (one for each day), not every day has a value, but I want to be given the date of the value that's the farthest left, how do I do this?
3 Replies
You can try something like this formula:
=INDEX(B2:AF2,
AGGREGATE(15,6,1/(LEN(B2:AF2)>0)*(COLUMN(B2:AF2)-1),1))
I've never used aggregate or Len before, what's the cliffnotes on them?
You just have to enter the formula I suggested, then press F2 to enter edit mode and click the name of the function to obtain help on it. By the way, please let me know if the formula returns your desired result.