IF and AND formulas for multiple criteria

juca73

New Member
Joined
Dec 30, 2017
Messages
40
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Hi All

Is it possible to create a formula using the IF and AND formulas ( or something else ) to return a value from a cell that can fall between one of 10 differing ranges, as a combined formula instead of a differing one for each line

for eg

Cell A2 = 92.35%
Cell A3 = 35.69%
Cell A4 = 12.54%

In the adjacent B column and cells 2,3 and 4 i want to return the range that percentage figure falls into which are

0-10
11-20
21-30
31-40
41-50
51-60
61-70
71-80
81-90
91-100

THerefore
Cell A2 = 92.35% Cell B2 = 91-100
Cell A3 = 35.69% Cell B3 = 31-40
Cell A4 = 12.54% Cell B4 =11-20

Thanks in advance
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
If cell A2 was 90.35% instead of 92.35% then it would not fit into 91-100 or 81-90 :confused:
Perhaps you need a more precise rule?
 
Upvote 0
you can use a lookup table
=INDEX($G$2:$G$11,MATCH(A2*100,$F$2:$F$11,1))

Book1
ABCDEFG
1
20.923591-10000-10
30.356931-401111-20
40.125411-202121-30
53131-40
64141-50
75151-60
86161-70
97171-80
108181-90
119191-100
12
13
14Cell A2 = 92.35%
15Cell A3 = 35.69%
16Cell A4 = 12.54%
Sheet1
Cell Formulas
RangeFormula
B2:B4B2=INDEX($G$2:$G$11,MATCH(A2*100,$F$2:$F$11,1))
 
Upvote 1
Solution
I think lookup function can serve the purpose, if you can make a range to lookup and return value. Remember 95% Excel recognizes as 0.95 to explain.
 
Upvote 0
works perfectly
:unsure: So then you are happy with the result of 81-90 in row 5 here even though 90.99 is not in the range 81-90?

24 03 21.xlsm
ABEFG
1
292.35%91-10000-10
335.69%31-401111-20
412.54%11-202121-30
590.99%81-903131-40
64141-50
75151-60
86161-70
97171-80
108181-90
119191-100
Range
Cell Formulas
RangeFormula
B2:B5B2=INDEX($G$2:$G$11,MATCH(A2*100,$F$2:$F$11,1))
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,958
Members
449,096
Latest member
Anshu121

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