Return specific number if Cell between 2 numbers

eechristaylor

New Member
Joined
Oct 22, 2013
Messages
44
Office Version
  1. 365
Platform
  1. Windows
I have a cell figuring a percentage of a cost, i.e. 28%. I need to write a formula for the following conditions:

If the cell C25 is between 26-35% return 11, 36-45% return 12, 46-55% return 13.

I have if statements for less than 25% and I tried to us IF(AND(C25<35%,C25>26%,"11") but that does not work.

Any help will be appreciated.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Make a table like I did in H1:I5 and use VLOOKUP

Book1
CDEFGHI
10
20.2611
30.3612
40.4613
50.56
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
220.3511
230.570
240.2611
25
Sheet1
Cell Formulas
RangeFormula
D22:D24D22=VLOOKUP(C22,$H$1:$I$5,2)
 
Upvote 0
If the cell C25 is between 26-35% return 11, 36-45% return 12, 46-55% return 13.
Assuming those are the only possible percentage ranges and results, another possibility might be ..

24 12 07.xlsm
CD
2537.0%12
2653.2%13
2726.0%11
Percentage Ranges
Cell Formulas
RangeFormula
D25:D27D25=10+MATCH(C25,{0.26,0.36,0.46})
 
Upvote 0
Try.
Assumed for <26% as 10 and for >=56% as 14. Change it as required.
Excel Formula:
=IF(C25<26%,10,IF(C25<36%,11,IF(C25<46%,12,IF(C25<56%,13,14))))
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,154
Members
453,021
Latest member
Justyna P

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