if and or ifthen?

G

Guest

I have a formulat that is not working.
Basically I want a formula that will take up to $100,000 and multiply the
cost per thousand by $5.75
if the amount is over 100,000 to $1,000,000 I want it to take the first
100,000 and times it's cost per thousand by $5.75 and everything over that by
$5.00.
This is what I have came up with, but it is not working.
Then if it is $1,000,000.00 or more I would like it to say "call for quote"
any suggestions would be appreciated.
Thank you


=IF(B30<1,"0",IF(B30<=100000,SUM(B30/1000)*5.75,IF(B30>=100001,AND(B30<1000000),SUM(B30-100000)/1000*5+575)))
 
B

Bob Phillips

=MIN(100000,A1)*5.75+MAX(0,A1-100000)*5

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

Pam said:
I have a formulat that is not working.
Basically I want a formula that will take up to $100,000 and multiply the
cost per thousand by $5.75
if the amount is over 100,000 to $1,000,000 I want it to take the first
100,000 and times it's cost per thousand by $5.75 and everything over that by
$5.00.
This is what I have came up with, but it is not working.
Then if it is $1,000,000.00 or more I would like it to say "call for quote"
any suggestions would be appreciated.
Thank you
=IF(B30<1,"0",IF(B30<=100000,SUM(B30/1000)*5.75,IF(B30>=100001,AND(B30<10000
00),SUM(B30-100000)/1000*5+575)))
 
G

Guest

Try:

=IF(B30<1,0,IF(B30<=100000,(B30/1000)*5.75,IF(AND(B30>=100001,B30<1000000),(B30-100000)/1000*5+575,"Call for quote")))

HTH
 
G

Guest

..or...

=IF(B30<1,"0",IF(B30<=100000,(B30/1000)*5.75,IF(B30<1000000,(B30-100000)/1000*5+575,"Call for quote")))
 
G

Guest

Thanks, the "toppers" one works. The min/max doesn't return the correct
value, but perhaps I have to change the min/max values? I have never used
that function, but the formula looks much cleaner.
 
G

Guest

Bob didn't see the cost per thousand. Change his formula to this

=MIN(100000,A1)*0.00575+MAX(0,A1-100000)*0.005

and it doesn't include the "over 1 million" clause, but it gives the same
results for numbers below 1 million. You can include the above formula with
the following custom number format to account for the over 1 million clause.

[>=5075]"Call for quote";General
 
G

Guest

Thanks! You people are AMAZING

Sloth said:
Bob didn't see the cost per thousand. Change his formula to this

=MIN(100000,A1)*0.00575+MAX(0,A1-100000)*0.005

and it doesn't include the "over 1 million" clause, but it gives the same
results for numbers below 1 million. You can include the above formula with
the following custom number format to account for the over 1 million clause.

[>=5075]"Call for quote";General



Pam said:
Thanks, the "toppers" one works. The min/max doesn't return the correct
value, but perhaps I have to change the min/max values? I have never used
that function, but the formula looks much cleaner.
 
B

Bob Phillips

small point, I would leave the rates as given, and divide by 1000 at the
end (One less operation as well)

=(MIN(100000,A1)*5.75+MAX(0,A1-100000)*5)/1000

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

Sloth said:
Bob didn't see the cost per thousand. Change his formula to this

=MIN(100000,A1)*0.00575+MAX(0,A1-100000)*0.005

and it doesn't include the "over 1 million" clause, but it gives the same
results for numbers below 1 million. You can include the above formula with
the following custom number format to account for the over 1 million clause.

[>=5075]"Call for quote";General



Pam said:
Thanks, the "toppers" one works. The min/max doesn't return the correct
value, but perhaps I have to change the min/max values? I have never used
that function, but the formula looks much cleaner.
=IF(B30<1,"0",IF(B30<=100000,SUM(B30/1000)*5.75,IF(B30>=100001,AND(B30<10000
00),SUM(B30-100000)/1000*5+575)))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top