I was thinking of writing multiple if statements but I don't think that will do the trick. What I would like is a formula to look at both column D & E. If column D is not null, then look for the next value in column D and subtract the values in column C. The same would apply if the value in column E is not null.
column B in the attachment is what the values should look like.
Bookmarks