LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 829
Default % of difference between two numbers

wrote:
I am looking to show the difference (as a percentage)between
two other numbers that is accurate in increases as well as
decreases. Actually its specifically the percentage CHANGE
between two other numeric values. Perfect example: SALES TAX
if you have 5% sales tax, to spend exactly $100 you have to
buy something for $95 (ie. 1.00 - 5% = .95) simple right?
but if you take $95 and ADD 5% you only get $99.75
so that is what I need, something that works in either case.


As I wrote to "sathish...", if you have a new question, start a new thread.
In fact, your question is unrelated to "% of difference" as it is meant by
the "exeldumb" [sic], the OP.

But in the interest of time, I'll answer your question.

Your algebra is incorrect. If the total must not exceed $100 and 5% is
added to the sales price, the most that you can purchase is 100 = x*(1+5%).
So x = 100/(1+5%) = 95.24.

In Excel: =ROUND(A1/(1+A2),2)

where A1 is the total, and A2 is the percentage added (sales tax) in the
form 5% or 0.05.

Double-check: 95.24 + 95.24*5% = 95.24 + 4.76 = 100.00.

Note: With these numbers, ROUND does work. I would choose ROUNDDOWN to
avoid going over 100 by 1 cent due to rounding. However, I cannot think of
an example quickly that demonstrates the problem. Caveat lector!

 
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
how do i calculate the difference between two numbers? dig Excel Discussion (Misc queries) 7 November 12th 07 02:42 PM
Formula for difference between numbers without + or- ParvenuJohn New Users to Excel 4 October 23rd 07 10:13 PM
difference between 2 numbers Annie Excel Discussion (Misc queries) 3 October 3rd 07 04:42 PM
Finding the difference between two numbers Christian J. Sweatt Excel Worksheet Functions 3 September 15th 07 04:10 AM
Show % Difference between two numbers Jana Excel Discussion (Misc queries) 9 April 29th 07 07:00 PM


All times are GMT +1. The time now is 12:01 AM.

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

About Us

"It's about Microsoft Excel"