I need help with an Excel formula. I am trying to create an MPG tracker for my company vehicles, and I would like the results of a formula to remain blank until all the relevant data has been entered. I have my starting mileage in cell B9, my ending mileage in cell C9, and my total miles in cell D9. I would like the total miles cell (D9) to remain blank until I have entered my ending mileage at the end of the day. The current Formula I have entered in cell D9 now is: =C9-B9
. See the below screenshot.
Answer
You can try using IF
, OR
and ISBLANK
like this:
=IF(OR(ISBLANK(B9),ISBLANK(C9)), "", C9-B9)
Comments
Post a Comment