I have an Excel sheet with values similar to the table below.
-------------------------------------
| A | B | C | D | E | F |
-------------------------------------
| 95| | 98| 96| 95| |
-------------------------------------
| 96| 95| | 92| 91| |
-------------------------------------
| 93| | 92| 98| 94| |
-------------------------------------
| 92| 98| | 95| 92| |
-------------------------------------
| 95| | 99| 92| 98| |
-------------------------------------
The formula for F1
should be =(B1-A1)+(C1-B1)+(D1-C1)+(E1-D1)
However, some cells are blank. So, if the cell is blank, it should take the next cell.
eg; F1
should be =(C1-A1)+(D1-C1)+(E1-D1)
and F2
should be =(B2-A2)+(D2-B2)+(E2-D2)
and so on...
Is there a formula to automate this?
-186
, and not-93
, correct? – BruceWayne