Hi All,
I've got a single-tab, 30+ column, Excel sheet with numbers (product cost, shipping, retail, etc.). These cells are both manually and simple-formula populated.
What I am trying to do is compare the "original" retail price with the actual "sold" price, THEN before populating a "differential" cell, to compare the original "projected profit" to the "actual realized profit" ~ IF the "actual profit" is lower AND the "difference between the original and actual "sold" price is <=0, then return zero, otherwise calculate how much actual profit was lost:
I think the logic is:
D=original price
F=actual price
J=original profit
K=actual profit
1) Compare J & K (profit) on the same row
2) IF there is a difference between J & K, then I want the formula to look at other cells D & F (price) to calculate the difference between J & K as it relates to D & F as follows:
3) IF J=K then I want the formula to return a zero
3) IF J<K AND D>F then I want the formula to return a zero
4) IF J<=K AND D<=F then I want the formula to return the number
4) IF J>=K AND D>=F then I want the formula to a zero
5) IF J>=K AND D<=F then I want the formula to return the number
What I tried...
a) IF(X1>=Y1,Y1-X1,0), this works for the profit-only comparison (J & K) in the case of >=, it does not address the then necessary comparison of D & F at which point I'm out of game.
I hope this is clear.
TIA,
gsacorp
I've got a single-tab, 30+ column, Excel sheet with numbers (product cost, shipping, retail, etc.). These cells are both manually and simple-formula populated.
What I am trying to do is compare the "original" retail price with the actual "sold" price, THEN before populating a "differential" cell, to compare the original "projected profit" to the "actual realized profit" ~ IF the "actual profit" is lower AND the "difference between the original and actual "sold" price is <=0, then return zero, otherwise calculate how much actual profit was lost:
I think the logic is:
D=original price
F=actual price
J=original profit
K=actual profit
1) Compare J & K (profit) on the same row
2) IF there is a difference between J & K, then I want the formula to look at other cells D & F (price) to calculate the difference between J & K as it relates to D & F as follows:
3) IF J=K then I want the formula to return a zero
3) IF J<K AND D>F then I want the formula to return a zero
4) IF J<=K AND D<=F then I want the formula to return the number
4) IF J>=K AND D>=F then I want the formula to a zero
5) IF J>=K AND D<=F then I want the formula to return the number
What I tried...
a) IF(X1>=Y1,Y1-X1,0), this works for the profit-only comparison (J & K) in the case of >=, it does not address the then necessary comparison of D & F at which point I'm out of game.
I hope this is clear.
TIA,
gsacorp