conditional to change number to a range

vvkelley

New Member
Joined
Mar 27, 2011
Messages
7
Hi Folks,
I have a column of numbers and want to use a conditional to change it into three ranges: <10, 10-20, and >20. I've searched a bit and have an idea of how to do this but am making a mistake somewhere. I can do =if(a1<10,"<10", if (a1>10 but I can't figure out how to specificy >10 and <20 and have a value returned. I'm making a mistake somewhere in the formatting. Any help is appreciated.

Thanks!
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hi Folks,
I have a column of numbers and want to use a conditional to change it into three ranges: <10, 10-20, and >20. I've searched a bit and have an idea of how to do this but am making a mistake somewhere. I can do =if(a1<10,"<10", if (a1>10 but I can't figure out how to specificy >10 and <20 and have a value returned. I'm making a mistake somewhere in the formatting. Any help is appreciated.

Thanks!

B2:

=IF(N(A2)>0,LOOKUP(A2,{0,10,20},{"<10",">=10 & < 20",">=20"}),"")

Does this suffice?
 
Upvote 0

Forum statistics

Threads
1,224,506
Messages
6,179,158
Members
452,892
Latest member
yadavagiri

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