Multiple if conditions or validation

ssbhatban

Board Regular
Joined
Oct 20, 2015
Messages
81
Office Version
  1. 2010
Platform
  1. Windows
Dear friends
I am evaluating the dimensions achieved in a metal Shaft & entering it in excel sheet. Points out of 10 are to be alloted depending upon the dimension achieved
I am entering the dimension achieved in D5 & points should come in E5 depending on the dimension entered. I have three conditions. For example
If the value is between 69.95 and 70.05 then return value is 10
Value between 69.94 & 69.00 & value between 70. 06 & 70 10 return value is 9
Value between 68.99 & 68.95 & value between 70.11 & 70.15 return value is 7

Kindly help me with the syntex. Thanks in advance
 
Unless you are specifically trying to return text values, you would be best to remove the quotes from around all the numerical values to return (I've highlighted just a few)

From what I can tell, you could also use this much shorter formula with no IFs at all.

=LOOKUP(ABS(70-D5),{0,0.0501,0.101,0.1501,0.201},{10,9,7,5,2})
Thank u very much, i will remove the quotes, but I did not fully understand the second syntax as how it works. As far as my understanding, leaving out 70 u have given all the decimals on +ve side only. Mine may go - ve also. For example value can be 69.96 or 70.07
 
Upvote 0

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
u have given all the decimals on +ve side only. Mine may go - ve also.
That is covered by my use of ABS() which converts any negative difference to a positive one. If you test, you should find it works on the negative side as well. :)
 
Upvote 0

Forum statistics

Threads
1,215,335
Messages
6,124,327
Members
449,155
Latest member
ravioli44

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top