any ideas to help make this work
D Dolphinsblue Jun 23, 2009 #3 Sorry trying to find a way to make this work, C1 will be a percentage of the B1 and D1 left that out.
Sorry trying to find a way to make this work, C1 will be a percentage of the B1 and D1 left that out.
T T. Valko Jun 23, 2009 #4 Try this... You still didn't say what should happen if B=D so in that case the formula will return a blank. =IF(B1>D1,-C1,IF(D1>B1,C1,""))
Try this... You still didn't say what should happen if B=D so in that case the formula will return a blank. =IF(B1>D1,-C1,IF(D1>B1,C1,""))
D Dolphinsblue Jun 23, 2009 #5 Ok Sorry, For example I need this to happen If B1 has 40 in it and D1 has 60 in it then C1 should be -66.6% but If B1 has 60 in it and D1 has 40 in it then C1 should be 150% and if B1 and D1 are equal C1 is 100%
Ok Sorry, For example I need this to happen If B1 has 40 in it and D1 has 60 in it then C1 should be -66.6% but If B1 has 60 in it and D1 has 40 in it then C1 should be 150% and if B1 and D1 are equal C1 is 100%
T T. Valko Jun 23, 2009 #8 Ok, I think we finally understand! Try this: =IF(D1=0,"",IF(B1<D1,-ROUND(B1/D1,3),ROUND(B1/D1,3))) Format as Percentage to 1 decimal place.
Ok, I think we finally understand! Try this: =IF(D1=0,"",IF(B1<D1,-ROUND(B1/D1,3),ROUND(B1/D1,3))) Format as Percentage to 1 decimal place.