Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Lulu
 
Posts: n/a
Default equation help in excel

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
  #2   Report Post  
Chip Pearson
 
Posts: n/a
Default

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

"Lulu" wrote in message
...
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



  #3   Report Post  
Bernard Liengme
 
Posts: n/a
Default

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
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email


"Lulu" wrote in message
...
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



  #4   Report Post  
Tom Ogilvy
 
Posts: n/a
Default

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.

--
Regards,
Tom Ogilvy



"Lulu" wrote in message
...
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



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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Excel Files Acting Weird Anat Excel Discussion (Misc queries) 0 March 29th 05 03:07 AM
Difference in number of Excel NewsGroups Hari Prasadh Excel Discussion (Misc queries) 1 January 25th 05 11:32 AM
Rounding in Trendline Equation Phil Hageman Charts and Charting in Excel 3 January 15th 05 01:15 AM
calculate non linear equation lines using excel Dawn Excel Discussion (Misc queries) 3 January 10th 05 01:09 PM


All times are GMT +1. The time now is 09:04 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"