equation help in excel

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

Guest

I need help making an equation.

I have a range of numbers, e.g. 1.009-1.059,1.060-1.020.....
I beleive I need an IF THEN equation. If a number falls in the range
between e.g. 1.009 and 1.059, I have get the value, e.g. 5, if the number
fall between 1.060 and 1.020 I get the value 6. This pattern could continue
forever.

Can anyone help?

Thanks
 
Rather than an IF THEN statement, you should use VLOOKUP. See
help for more information, and post back here if you have any
questions.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
Small typo here? Should 1.02 be 1.2?
Try this =IF(AND(A1>=1.009,A1<=1.059),5,IF(AND(A1>=1.06,A1<=1.2),6,"Error"))
best wishes
 
The number shown don't have a pattern. 1.020 is less than 1.060 so there
are no numbers between as shown

If you are increasing the value by .05 each time

=Trunc((number-1.009)/.05) + 5

might be close to what you want.
 

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


Back
Top