I have a spreadsheet to determine the number of hours a machine worked from one month to the next based on meter readings. However, if a meter reading wasn't entered for a month (total of zero), I need the formula to go back each month until it finds a month where the meter reading is greater than zero.
My spreadsheet is for a year, so there is a possible 12 ifs for the formula to go through.
What is the best way to do this?
My spreadsheet is for a year, so there is a possible 12 ifs for the formula to go through.
This is my formula for April and I need it to go to December (cell DV3)
=(IF(AND(AS3=0),0,IF(AND(AI3>0),AS3-AI3,IF(AND(AI3=0),IF(AND(AI3>0),AS3-Y3,AS3-U3))))))What is the best way to do this?