I have a sheet that lists geological formations with their vertical depth(in column C), in multiple locations. The locations are separated into groups and are identified that way in column A(Group 1, Group 2, Group 3, etc). Towards the middle of each group has the target geological formation of interest. I am wanting a formula in column D that subtracts the vertical depths and define how thick each formation is, but if it is listed as target or below, in each group, to multiply by negative one and if it is the last formation in the group to leave the cell blank.
I attached a small table for visual reference, column D is where I am wanting to have the formula.
https://www.dropbox.com/s/bx6kjdgltzciham/formation.xlsx?dl=0
I attached a small table for visual reference, column D is where I am wanting to have the formula.
https://www.dropbox.com/s/bx6kjdgltzciham/formation.xlsx?dl=0