Hi, can someone help me with this formula for the percent change for the daily open vs the daily close for a stock
For example, using the formula =(B2-D4)/B2 where B2 equals 16 and D4 equals 15, if the open was $16 (B2) and close was $15 (D4), you would get -6.25%, which is fine.
Then if I change B2 to 15 and D4 to 16 and use the same formula, I get -6.7% when it should be a positive 6.7% (because the stock is going from $15 to $16). How can I make it so it would show as positive?
In summary:
If B2 is greater than D4 than the formula should spit out a negative value (IE 16-15/16 would equal -6.25%)
If B2 is less than D4 than the formula should spit out a positive value (IE 15-16/15 would equal 6.67%)
Your help is appreciated. Thanks
Bookmarks