Formula between two numbers show as percentage up and down

asyamonique

Well-known Member
Joined
Jan 29, 2008
Messages
1,280
Office Version
  1. 2013
Platform
  1. Windows
Good Day,
Can you please help me on that given formula below?
I couldn't find out to make the formula result if the percentage needed to show as negative.
If column D has a negative numbers it doesn't give correct result.
Thanks


Excel Formula:
IFERROR(IF(D2="","",((D2-C2)/C2)*IF(OR(AND(D2<0,C2),AND(D2<0,C2>0)),-1,1)),"")
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Not sure if I follow, how did you come up with the E column results, it doesn't look like there's a Percentage relation between C & D, it looks more like, if Both C & D are negative, you just want the difference between the two?
yes different between two columns as percentage
 
Upvote 0
yes different between two columns as percentage

Then it wouldn't be a "percentage"?, check out my post #11 formula, it accurately shows the percentage Increase/Decrease between D and C relative to C, please let me know if you still Only want the difference if Both C & D are negative.
 
Upvote 0
Here's a suggestion for keeping the percentage ratios, see if this is what you want:

Book3.xlsx
CDE
115,0007,500-50.00%
215,000-7,500-150.00%
315000 
4150002500066.67%
5100-50-150.00%
6-50100300.00%
7-50-100-100.00%
8-100-2080.00%
9-300-500-66.67%
10-700-20071.43%
Sheet942
Cell Formulas
RangeFormula
E1:E10E1=IF(OR(C1="",D1=""),"",(D1-C1)/ABS(C1))
[/RANGEtHANKS A
Cell Formulas
RangeFormula

Here's a suggestion for keeping the percentage ratios, see if this is what you want:

Book3.xlsx
CDE
115,0007,500-50.00%
215,000-7,500-150.00%
315000 
4150002500066.67%
5100-50-150.00%
6-50100300.00%
7-50-100-100.00%
8-100-2080.00%
9-300-500-66.67%
10-700-20071.43%
Sheet942
Cell Formulas
RangeFormula
E1:E10E1=IF(OR(C1="",D1=""),"",(D1-C1)/ABS(C1))


Many Thanks.
Thats great.
 
Upvote 0

Forum statistics

Threads
1,214,650
Messages
6,120,736
Members
448,988
Latest member
BB_Unlv

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top