Calculation of a number in a range

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to create a formula for the following:

If A1=any number from 0 to 100,000 then A1*.15
If A1=any number from 101,000 to 250,000 then A1*.12
If A1=any number from 251,000 to 500,000 then A1*.10

Any suggestions?

Thanks much!
 
=A1*CHOOSE((A1>0)+(A1>100000)+(A1>250000),0.15,0.12,0.1)

this should get you what you need.
 
=A1*LOOKUP(A1,{0,100001,250001},{0.15,0.12,1})

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)
 
Thanks much everyone!

--
Krista


Bob Phillips said:
=A1*LOOKUP(A1,{0,100001,250001},{0.15,0.12,1})

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)
 
Hmm, this is fun:)

Alright, create a little table first (dashes - signify new column)
......D - .....E - .................F
1) 0 - 100000 - ...........0.15
2) 100001 - 250000 - 0.12
3) 251000 - 500000 - 0.10

Now your formula is:

=A1*(VLOOKUP(A1,$D$1:$F$3,3))

That's it:) I know someone beat me to this, but I had this window open
for an hour:)
 

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

Back
Top