Hi doing my cert 2 and i am stuck on 1 formula
i need to work out the total cost of something where the first 1000 are
$0.50 and anything over 1000 is $0.40 using if function.
It all seemed so straught forward till i got to this.
Thanx in advance
T. Valko - 31 Mar 2008 05:27 GMT
Try this:
=IF(COUNT(A1),MIN(A1,1000)*0.5+MAX(A1-1000,0)*0.4,0)

Signature
Biff
Microsoft Excel MVP
> Hi doing my cert 2 and i am stuck on 1 formula
> i need to work out the total cost of something where the first 1000 are
> $0.50 and anything over 1000 is $0.40 using if function.
> It all seemed so straught forward till i got to this.
> Thanx in advance
peter - 31 Mar 2008 14:26 GMT
Thank you very much that did the trick...and thanx to everyone that
helped...a speedy response. :)
> Try this:
>
[quoted text clipped - 5 lines]
> > It all seemed so straught forward till i got to this.
> > Thanx in advance
T. Valko - 31 Mar 2008 17:51 GMT
You're welcome!

Signature
Biff
Microsoft Excel MVP
> Thank you very much that did the trick...and thanx to everyone that
> helped...a speedy response. :)
[quoted text clipped - 8 lines]
>> > It all seemed so straught forward till i got to this.
>> > Thanx in advance
Max - 31 Mar 2008 05:31 GMT
One way ..
Assuming quantities in A1 down
Place in B1:
=IF(A1="","",IF(A1<=1000,A1*0.5,(A1-1000)*0.4+500))
Copy B1 down

Signature
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
> Hi doing my cert 2 and i am stuck on 1 formula
> i need to work out the total cost of something where the first 1000 are
> $0.50 and anything over 1000 is $0.40 using if function.
> It all seemed so straight forward till i got to this.
> Thanx in advance
Roger Govier - 31 Mar 2008 11:53 GMT
Hi Peter
No need to use IF's
Try
=A1*0.5-MAX(0,A1-1000)*0.1

Signature
Regards
Roger Govier
> Hi doing my cert 2 and i am stuck on 1 formula
> i need to work out the total cost of something where the first 1000 are
> $0.50 and anything over 1000 is $0.40 using if function.
> It all seemed so straught forward till i got to this.
> Thanx in advance