A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Wrong amount formula



 
 
Thread Tools Display Modes
  #1  
Old March 20th, 2009, 11:04 PM posted to microsoft.public.excel.misc
George
external usenet poster
 
Posts: 883
Default Wrong amount formula

Excel 2007
The amount to this formula should be 363.04
=(C4*2%+(C415651.89)*(C4-15651.89)*5%)
where C4 = 16651.89
I need to find 2% of C4 up to 15651.89 and anything over that (difference)
at 5%
  #2  
Old March 20th, 2009, 11:23 PM posted to microsoft.public.excel.misc
bapeltzer
external usenet poster
 
Posts: 43
Default Wrong amount formula

Your formula is picking up 2% of everthing plus another 5% of the excess;
thus the excess contributes a total of 7%. I think you want
=(C4*2%+(C415651.89)*(C4-15651.89)*3%)

"George" wrote:

Excel 2007
The amount to this formula should be 363.04
=(C4*2%+(C415651.89)*(C4-15651.89)*5%)
where C4 = 16651.89
I need to find 2% of C4 up to 15651.89 and anything over that (difference)
at 5%

  #3  
Old March 20th, 2009, 11:23 PM posted to microsoft.public.excel.misc
Niek Otten
external usenet poster
 
Posts: 2,533
Default Wrong amount formula

=2%*MIN(C4,15651.89)+5%*MAX(0,C4-15651.89)

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"George" wrote in message
...
Excel 2007
The amount to this formula should be 363.04
=(C4*2%+(C415651.89)*(C4-15651.89)*5%)
where C4 = 16651.89
I need to find 2% of C4 up to 15651.89 and anything over that (difference)
at 5%


  #4  
Old March 20th, 2009, 11:32 PM posted to microsoft.public.excel.misc
Bernard Liengme[_2_]
external usenet poster
 
Posts: 1,027
Default Wrong amount formula

You are add the 2% twice. What you need is
=C4*2%+(C415651.89)*(C4-15651.89)*3%
or
=MIN(C4,15651.89)*2%+(C415651.89)*(C4-15651.89)*5%

Odd how the same question popped up twice today
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"George" wrote in message
...
Excel 2007
The amount to this formula should be 363.04
=(C4*2%+(C415651.89)*(C4-15651.89)*5%)
where C4 = 16651.89
I need to find 2% of C4 up to 15651.89 and anything over that (difference)
at 5%



  #5  
Old March 20th, 2009, 11:33 PM posted to microsoft.public.excel.misc
[email protected]
external usenet poster
 
Posts: 379
Default Wrong amount formula

"George" wrote:
The amount to this formula should be 363.04


What value do you get instead?

=(C4*2%+(C415651.89)*(C4-15651.89)*5%)
where C4 = 16651.89


That should result in about 383.04.

I need to find 2% of C4 up to 15651.89 and
anything over that (difference) at 5%


Then you have the wrong formula. Ostensibly, you want:

=min(C4,15651.89)*2% + max(0,C4-15651.89)*5%

That does indeed result in about 363.04.

Notice that I say "about" this or that. The actual value is 363.0378. It
would behoove you to use ROUND to avoid surprises in later calculations.
Assuming that you have ROUND'd C4, the above formula should be:

=round(min(C4,15651.89)*2% + max(0,C4-15651.89)*5%, 2)

Alternatively:

=round(C4*2% + max(0,C4-15651.89)*3%, 2)

where 3% is 5% - 2%.



  #6  
Old March 21st, 2009, 12:35 PM posted to microsoft.public.excel.misc
George
external usenet poster
 
Posts: 883
Default Wrong amount formula

Thank you for your help, your formula worked perfect. Sorry about the double
posting. Can I add something???
The baseline is in B4
That formula is in a Totals column, N4
The 16651.89 is in a January column, C4
Feb. is in C5, Mar. in C6... each month the sales amount will change and i
would like to have the total column add all these up using this new formula.

" wrote:

"George" wrote:
The amount to this formula should be 363.04


What value do you get instead?

=(C4*2%+(C415651.89)*(C4-15651.89)*5%)
where C4 = 16651.89


That should result in about 383.04.

I need to find 2% of C4 up to 15651.89 and
anything over that (difference) at 5%


Then you have the wrong formula. Ostensibly, you want:

=min(C4,15651.89)*2% + max(0,C4-15651.89)*5%

That does indeed result in about 363.04.

Notice that I say "about" this or that. The actual value is 363.0378. It
would behoove you to use ROUND to avoid surprises in later calculations.
Assuming that you have ROUND'd C4, the above formula should be:

=round(min(C4,15651.89)*2% + max(0,C4-15651.89)*5%, 2)

Alternatively:

=round(C4*2% + max(0,C4-15651.89)*3%, 2)

where 3% is 5% - 2%.



  #7  
Old March 21st, 2009, 01:25 PM posted to microsoft.public.excel.misc
George
external usenet poster
 
Posts: 883
Default Wrong amount formula

One more issue with the formula is if C4 is left blank, the 2% still shows up
in the total column - this total column should also be blank

" wrote:

"George" wrote:
The amount to this formula should be 363.04


What value do you get instead?

=(C4*2%+(C415651.89)*(C4-15651.89)*5%)
where C4 = 16651.89


That should result in about 383.04.

I need to find 2% of C4 up to 15651.89 and
anything over that (difference) at 5%


Then you have the wrong formula. Ostensibly, you want:

=min(C4,15651.89)*2% + max(0,C4-15651.89)*5%

That does indeed result in about 363.04.

Notice that I say "about" this or that. The actual value is 363.0378. It
would behoove you to use ROUND to avoid surprises in later calculations.
Assuming that you have ROUND'd C4, the above formula should be:

=round(min(C4,15651.89)*2% + max(0,C4-15651.89)*5%, 2)

Alternatively:

=round(C4*2% + max(0,C4-15651.89)*3%, 2)

where 3% is 5% - 2%.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:09 AM.


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