Backboards: 
Posts: 155

TTIS spreadsheet help: I want to find the first and last non-blank values a in a row of cells -- (edited)

My A1:G1 column headers are Sunday, Monday, Tues etc.

Cell values
A2
B2
C2 Rain
D2
E2
F2 Snow
G2

My 'first' return cell formula is
INDEX(A2:G2,MATCH(TRUE,INDEX((A2:G2<>0),0),0)) which will show "Rain" as the value from the first cell from the left which is not blank.

I want my 'last' return cell formula to show the the value from the (last) cell from the right which is not blank, in this case F2 "Snow". If I were to add the value "Hail" to G2, then the formula would show "Hail."


Responses:
Post a message   top
Replies are disabled on threads older than 7 days.