If Statment VERY Simple

HotNumbers2001

Board Regular
Joined
Apr 21, 2002
Messages
139
Need the following... Comun A has the following numbers 1 through 100. Need to have column be return the following numbers.
IF colum A the number is between 0 through 10 then return 1, if the number is between 11 - 25, then return 2, etc.....

avo
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Try:

=IF(A1<11,1,IF(A1<26,2,"etc…"))

Incidentally, how does this sequence make sense?

_________________
Cheers,<font size=+2><font color="red"> Nate<font color="blue">O</font></font></font>
wave.gif

This message was edited by NateO on 2002-05-03 14:53
 
Upvote 0
Ricky, that doesn't work for case 2, but conceptually sound. I'm guessing your sequence grows by 5 every increment 10, 15, 20, 25 (I feel like I'm taking the SAT here). Try this:

=IF(A1<11,1,IF(A1<26,2,IF(A1<56,3,IF(A1<76,4,5))))

_________________
Cheers,<font size=+2><font color="red"> Nate<font color="blue">O</font></font></font>
wave.gif

This message was edited by NateO on 2002-05-03 15:04
 
Upvote 0
=VLOOKUP(A1,{0,1;11,2;26,3;...},2)
This message was edited by Mark W. on 2002-05-03 14:59
 
Upvote 0

Forum statistics

Threads
1,214,620
Messages
6,120,554
Members
448,970
Latest member
kennimack

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