I am trying to write out an IF statement to that looks back through several cells checking if each is blank and going back to the next until I hit a cell with an amount it in.
I have been able to write it to check at least 3 cells back, but then I get stuck.
Formula I have so far is:
=IF(Sheet1!$AS7="",IF(Sheet1!$AP7="",Sheet1!$AM7,Sheet1!$AP7),Sheet1!$AS7)
Essentially I need to the formula to say if AS7 is blank, give me AP7. If AP7 is blank give me AM7, AM7 blank give me AJ7, so forth and so on.
My order of precedence is AS7, AP7, AM7, AJ7, AG7, AD7, AA7, X7, U7, R7, O7, L7, I7, and finally F7.
I have been able to write it to check at least 3 cells back, but then I get stuck.
Formula I have so far is:
=IF(Sheet1!$AS7="",IF(Sheet1!$AP7="",Sheet1!$AM7,Sheet1!$AP7),Sheet1!$AS7)
Essentially I need to the formula to say if AS7 is blank, give me AP7. If AP7 is blank give me AM7, AM7 blank give me AJ7, so forth and so on.
My order of precedence is AS7, AP7, AM7, AJ7, AG7, AD7, AA7, X7, U7, R7, O7, L7, I7, and finally F7.