#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default formula

I would like to * A1 by .03 up to the first $20,000 but not over. Even if the
amount is under or over $20,000 in one box and the amount that is over
$20,000 * .02 in a other box
Thanks Roy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default formula

One way:

B1: =MIN(A1,20000)*0.03
B2: =MAX(0, A1-20000)*0.02


An alternative that calculates it in one cell:

=SUMPRODUCT(--(A1{0,20000}),(A1-{0,20000}),{0.03,-0.01})

In article ,
"Roy E" <Roy wrote:

I would like to * A1 by .03 up to the first $20,000 but not over. Even if the
amount is under or over $20,000 in one box and the amount that is over
$20,000 * .02 in a other box
Thanks Roy

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default formula

Something like this:

'amount under 20.000 x 0,3
=MIN(20000;A1)*0,3

and

'amount above 20.000 x 0,2
=(MAX(20000;A1)-20000)*0,2

--
Ronald Ferdinandus
http://www.ro-pay.nl


"Roy E" wrote:

I would like to * A1 by .03 up to the first $20,000 but not over. Even if the
amount is under or over $20,000 in one box and the amount that is over
$20,000 * .02 in a other box
Thanks Roy

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default formula

Thank you JE and Ronald

"RonaldF" wrote:

Something like this:

'amount under 20.000 x 0,3
=MIN(20000;A1)*0,3

and

'amount above 20.000 x 0,2
=(MAX(20000;A1)-20000)*0,2

--
Ronald Ferdinandus
http://www.ro-pay.nl


"Roy E" wrote:

I would like to * A1 by .03 up to the first $20,000 but not over. Even if the
amount is under or over $20,000 in one box and the amount that is over
$20,000 * .02 in a other box
Thanks Roy

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
Commenting custom formula fields/formula on formula editor Muxer Excel Programming 2 July 24th 03 01:02 AM


All times are GMT +1. The time now is 02:47 AM.

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"