#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Percentages

Hello,

I have a question about percentage calculations.
I have data in a1, a2, a3..... And I want find the percentage difference
from A2 and A1. Or, the most current entry with the previous entry.
I am using, "=IF(A1=0,"",(a2/a1)*0.1) and that will get me the difference
in a percentage value but it will not give me the negative percentage value.
All values come up as a positive number.
The cells are formated for "percentage"

Example
A1 23.00
A2 24.00
A3 18.00

When I compare A2 to A1 I will get 10.43%
When I compare A3 to A2 I will get 7.50%. This number should come up as
-7.50%
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,059
Default Percentages

On Jun 8, 7:08*pm, Kindlysinful
wrote:
I want find the percentage difference from A2 and A1.
Or, the most current entry with the previous entry.
*I am using, "=IF(A1=0,"",(a2/a1)*0.1) and that will get
me the difference in a percentage value but it will not
give me the negative percentage value.


I don't know why you think that gives percentage difference. The
correct formula is:

=if(A1=0, "", A2/A1 - 1)

"Minus 1", not "times 1". That will give you negative difference as
well. Be sure to set the cell format to Percentage with some of
decimal places, if you like.

Caveat: That works fine if A1 and A2 are both positive or both
negative, and if A1 is zero because of your conditional test.

Example
A1 23.00
A2 24.00
A3 18.00

When I compare A2 to A1 I will get 10.43%


But the correct answer is 4.35%.

When I compare A3 to A2 I will get 7.50%.
This number should come up as -7.50%


The correct answer is -25%.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Percentages

DOH!
I must have been totally asleep when I was looking at this. I never even
noticed the *.

Thanks

Scott

"joeu2004" wrote:

On Jun 8, 7:08 pm, Kindlysinful
wrote:
I want find the percentage difference from A2 and A1.
Or, the most current entry with the previous entry.
I am using, "=IF(A1=0,"",(a2/a1)*0.1) and that will get
me the difference in a percentage value but it will not
give me the negative percentage value.


I don't know why you think that gives percentage difference. The
correct formula is:

=if(A1=0, "", A2/A1 - 1)

"Minus 1", not "times 1". That will give you negative difference as
well. Be sure to set the cell format to Percentage with some of
decimal places, if you like.

Caveat: That works fine if A1 and A2 are both positive or both
negative, and if A1 is zero because of your conditional test.

Example
A1 23.00
A2 24.00
A3 18.00

When I compare A2 to A1 I will get 10.43%


But the correct answer is 4.35%.

When I compare A3 to A2 I will get 7.50%.
This number should come up as -7.50%


The correct answer is -25%.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
percentages adstarc New Users to Excel 8 October 15th 07 03:07 PM
Percentages David Excel Discussion (Misc queries) 6 March 15th 07 03:16 PM
Percentages Hotpants0063 Excel Worksheet Functions 4 April 10th 06 10:30 PM
Percentages foolsgold1970 Excel Discussion (Misc queries) 3 November 4th 05 04:15 PM
Percentages Darryl Charts and Charting in Excel 2 May 21st 05 04:31 PM


All times are GMT +1. The time now is 04:14 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"