Question
 | |  | | | 
Jun 23, 2006, 01:49 AM
| | New Member | | Join Date: Jun 2006
Posts: 14
| | | Several Criteria Classification on Excel Quick question...
I'd like to do the following:
If the value in Column A is between 1-50 or 200-250 or 400-450, or 600-650 etc etc I want it to be classified as "people" in Column B. If it does not fall in those number ranges, I want it to be classified as "monkey" in Column B.
This seems straight forward enough to me, but I can't figure out how to use the IF function (or anything else...) to get it to work.
Any help would be greatly appreciated.
Emily | | | | | | |
Answers
 | |  | | |
Jun 23, 2006, 04:59 AM
|
#2
| | | Computer Expert
Join Date: Jan 2003 Location: LI, NY - USA
Posts: 22,927
Pay to call ScottGem for advice ($.75/min) | Probably best to use a VLookup. Create a table like:
1......People
51.....Monkey
200...People
251...Monkey
etc.
Then use a VLookup in Column B |
| | | | | | |  | |  | | |
Jun 23, 2006, 07:24 AM
|
#3
| | Senior Member
Join Date: Aug 2005 Location: Guernsey
Posts: 608
| A1 = value, doesn't matter how many digits
B1 = convert this value to text, right most 2 digits
C1 = convert B1 back to a number
D1 = Your answer
A1 = 1021
B1 = 21 =Right(A1,2)
C1 = 21 =Value(B1)
D1 = People =If(C1>50.01,"Monkey","People")
Hope this helps
Colin |
| | | | | | |  | |  | | |
Jun 23, 2006, 07:48 AM
|
#4
| | | Computer Expert
Join Date: Jan 2003 Location: LI, NY - USA
Posts: 22,927
Pay to call ScottGem for advice ($.75/min) | I see what Colin is doing, but he's making an assumption that may not be valid. For example is the value is 160, his solution will still return Monkey. using a lookup table allows you to fine tune the ranges. |
| | | | | | |  | |  | | |
Jun 25, 2006, 11:36 PM
|
#5
| | Senior Member
Join Date: Aug 2005 Location: Guernsey
Posts: 608
| Hi Scott,
Is that not what is required?
Col |
| | | | | | |  | |  | | |
Jun 26, 2006, 05:09 AM
|
#6
| | | Computer Expert
Join Date: Jan 2003 Location: LI, NY - USA
Posts: 22,927
Pay to call ScottGem for advice ($.75/min) | Quote: | Originally Posted by colbtech Hi Scott,
Is that not what is required?
Col |
Not from my read. Look at the ranges. Its not consistently distributed. |
| | | | | | |  | |  | | |
Jun 26, 2006, 06:26 AM
|
#7
| | Senior Member
Join Date: Aug 2005 Location: Guernsey
Posts: 608
| Got it now. That will teach me to read the question a little closer! |
| | | | | | |  | |  | | |
Jun 26, 2006, 06:56 AM
|
#8
| | Computer Expert
Join Date: Jan 2003 Location: LI, NY - USA
Posts: 22,927
Pay to call ScottGem for advice ($.75/min) | Quote: | Originally Posted by colbtech Got it now. That will teach me to read the question a little closer! |
Your solution was a neat idea, if the pattern was more consistent. |
| | | | | | | | Question Tools | Search this Question | | | | | Display Modes | Linear Mode | |