Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have cells with ethnic groups that I need to consolidate into broad ethnic
categories. For example, Cambodian, Chines, Filipino, etc into Asian/Pacific Islander and White, White-Armenian, and White-European into White. This data is in one column. I think this would be a long IF function, but can't set it up. Please help! |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I would add a new worksheet (I'd name it: Ethnic Table) and add all the ethnic
groups in column A. The put their corresponding broader ethnic classes in column B. Then use this kind of formula to retrieve that group. =vlookup(a2,'ethnic table'!a:b,2,false) If you see any results of #n/a, that means that the item doesn't have a corresponding entry in column A of the "ethnic table" worksheet. Debra Dalgleish has lots of notes: http://www.contextures.com/xlFunctions02.html (for =vlookup()) and http://www.contextures.com/xlFunctions03.html (for =index(match())) and http://contextures.com/xlFunctions02.html#Trouble bseeley wrote: I have cells with ethnic groups that I need to consolidate into broad ethnic categories. For example, Cambodian, Chines, Filipino, etc into Asian/Pacific Islander and White, White-Armenian, and White-European into White. This data is in one column. I think this would be a long IF function, but can't set it up. Please help! -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Build up a 2-column table somewhere in your sheet, like this:
Cambodian Asian/Pacific Chinese Asian/Pacific Filipino Asian/Pacific You should list all your ethnic groups, together with the broader classification. Suppose this occupies Y1 to Z25. Suppose also that your ethnic data is in column E, and that your data starts on row 2. Then in a helper column (eg H2) you could put this formula: =VLOOKUP(E2,Y$1:Z$25,2,0) and copy this down as far as you need to - this will give you your broader classifications in column H. Hope this helps. Pete On Sep 5, 1:03*am, bseeley wrote: I have cells with ethnic groups that I need to consolidate into broad ethnic categories. *For example, Cambodian, Chines, Filipino, etc into Asian/Pacific Islander and White, White-Armenian, and White-European into White. *This data is in one column. *I think this would be a long IF function, but can't set it up. Please help! |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
Once you've got the larger categories you can use a pivot table to summariize the data. -- If this helps, please click the Yes button. Cheers, Shane Devenshire "bseeley" wrote: I have cells with ethnic groups that I need to consolidate into broad ethnic categories. For example, Cambodian, Chines, Filipino, etc into Asian/Pacific Islander and White, White-Armenian, and White-European into White. This data is in one column. I think this would be a long IF function, but can't set it up. Please help! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help putting cells in different categories | Excel Discussion (Misc queries) | |||
Copy Data from One Group of Cells to Another Group | Charts and Charting in Excel | |||
How to seperate a text group in once cell into many cells | Excel Discussion (Misc queries) | |||
Formatting a group of cells for text | Excel Discussion (Misc queries) | |||
counting categories of text cells | Excel Discussion (Misc queries) |