![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Posts: 25
|
Column A has dollar amounts from 1999.
Column B has dollar amounts from 2000. I want column C to calculate the percentage increase or decrease from column A to column B. For example: $16,325 $21,100 +23.7% $41,250 $18,145 -56.1% I need the + and - signs to be included. How do I write this formula? |
|
|
|
|
|
#2 |
|
BatCoder
Join Date: Feb 2002
Location: Turkey
Posts: 764
|
C1=> =(B1-A1)/A1
regards |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Posts: 76
|
Smozgur got it correct... But without the plus sign. Do you REALLY need the plus sign?
It can be done but you will loose the ability to treat the cell as a value. Do you still want to do it? |
|
|
|
|
|
#4 |
|
BatCoder
Join Date: Feb 2002
Location: Turkey
Posts: 764
|
Oops,
=IF((B1-A1)/A1<0,"-" & ROUND((B1-A1)/A1*100,2) & "%","-" & ROUND((B1-A1)/A1*100,2) & "%") or just first comment and format cells as custom like below: +0,00%,-0,00% |
|
|
|
|
|
#5 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
|
Quote:
Darn it. All those cosmetics keeps you editing... Aladin [ This Message was edited by: Aladin Akyurek on 2002-04-23 11:31 ] [ This Message was edited by: Aladin Akyurek on 2002-04-23 11:34 ] [ This Message was edited by: Aladin Akyurek on 2002-04-23 11:37 ] |
|
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Feb 2002
Posts: 76
|
Smozgur just posted what I was thinking of.
Keep one thing in mind though, you can no longer treat the C column as values. They are now strings. |
|
|
|
|
|
#7 |
|
BatCoder
Join Date: Feb 2002
Location: Turkey
Posts: 764
|
John, it will not loose its ability with formatting way:
Just goto format cells after applying my first formula and select Custom then use this custom format: +0,00%,-0,00% (i am not sure about (,) between formats, my version works with ( +0,00%;-0,00%) _________________ Oz ~ TheWordExpert [ This Message was edited by: smozgur on 2002-04-23 11:32 ] |
|
|
|
|
|
#8 |
|
Board Regular
Join Date: Feb 2002
Posts: 76
|
Smozgur,
Ahaha.. I learned something. Thanks. |
|
|
|
|
|
#9 |
|
BatCoder
Join Date: Feb 2002
Location: Turkey
Posts: 764
|
John,
me too |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|