#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
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   Report Post  
Posted to microsoft.public.excel.misc
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,104
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 418
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
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%.



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
Insert Calculated Field (wrong Qty*Price = wrong Amount) Edmund Excel Discussion (Misc queries) 8 October 4th 07 12:13 PM
Wrong amount or calculation error? Owen[_2_] Excel Discussion (Misc queries) 1 April 11th 07 06:45 PM
Formula for amount owing subtract amount paid Taperchart Excel Worksheet Functions 1 June 4th 06 05:51 PM
SUMPRODUCT is showing wrong Amount msbutton27 Excel Discussion (Misc queries) 2 January 25th 06 03:40 PM
IF function displays wrong amount JAnderson Excel Worksheet Functions 4 November 6th 04 06:41 PM


All times are GMT +1. The time now is 01:41 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"