Putting Numbers into Ranges

mhendo1

New Member
Joined
Feb 15, 2016
Messages
1
I am looking for help

I have a around 50 different percentages which all vary from 15% - 100%

I am looking for a way to put these into ranges of 0-25%, 25-50%, 50-75%,75-100%

and then reflect this onto a chart.

Can someone help out?

regards,
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

MandeepBaluja

Board Regular
Joined
Jan 28, 2014
Messages
120
Put this formula

Code:
=IF(AND(A2>=0%,A2<=25%),"0-25%",IF(AND(A2>25%,A2<=50%),"25-50%",IF(AND(A2>50%,A2<75%),"50-75%",IF(AND(A2>=75%,A2<=100%),"75-100%"))))
adjacent to your data draw a pivot and make a chart, you can also use pivot table grouping to group percentage in certain intervals.:LOL:
 

MandeepBaluja

Board Regular
Joined
Jan 28, 2014
Messages
120
Small change
Code:
[TABLE="width: 111"]
<tbody>[TR]
  [TD="class: xl63, width: 111"]IF(AND(A2>=0%,A2<=25%),"0-25%",IF(AND(A2>25%,A2<=50%),"25-50%",IF(AND(A2>50%,A2<=75%),"50-75%",IF(AND(A2>75%,A2<=100%),"75-100%"))))[/TD]
[/TR]
</tbody>[/TABLE]
 

FormR

MrExcel MVP
Joined
Aug 18, 2011
Messages
6,502
Office Version
  1. 365
Platform
  1. Windows
I am looking for a way to put these into ranges of 0-25%, 25-50%, 50-75%,75-100%

Couple of other options depending on where you want to place the percentages that are exactly 25%, 50% or 75%

<b>Excel 2013</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #BBB"><colgroup><col width="25px" style="background-color: #DAE7F5" /><col /><col /><col /></colgroup><thead><tr style=" background-color: #DAE7F5;text-align: center;color: #161120"><th></th><th>A</th><th>B</th><th>C</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">2</td><td style="text-align: right;;">15%</td><td style=";">0-25%</td><td style=";">0-25%</td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style="text-align: right;;">25%</td><td style="background-color: #FFFF00;;">0-25%</td><td style="background-color: #FFFF00;;">25-50%</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style="text-align: right;;">27%</td><td style=";">25-50%</td><td style=";">25-50%</td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style="text-align: right;;">50%</td><td style="background-color: #FFFF00;;">25-50%</td><td style="background-color: #FFFF00;;">50-75%</td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style="text-align: right;;">51%</td><td style=";">50-75%</td><td style=";">50-75%</td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style="text-align: right;;">75%</td><td style="background-color: #FFFF00;;">50-75%</td><td style="background-color: #FFFF00;;">75-100%</td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style="text-align: right;;">85%</td><td style=";">75-100%</td><td style=";">75-100%</td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #BBB;border-top:none;text-align: center;background-color: #DAE7F5;color: #161120">Sheet2</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #BBB"><thead><tr style=" background-color: #DAE7F5;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">B2</th><td style="text-align:left">=CHOOSE(<font color="Blue">ROUNDUP(<font color="Red">A2/0.25,0</font>),"0-25%","25-50%","50-75%","75-100%"</font>)</td></tr><tr><th width="10px" style=" background-color: #DAE7F5;color: #161120">C2</th><td style="text-align:left">=LOOKUP(<font color="Blue">A2,{0,0.25,0.5,0.75},{"0-25%","25-50%","50-75%","75-100%"}</font>)</td></tr></tbody></table></td></tr></table><br />
 

Watch MrExcel Video

Forum statistics

Threads
1,130,108
Messages
5,640,139
Members
417,127
Latest member
shakilk

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
Top