Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default How do I group text from cells into categories

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default How do I group text from cells into categories

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default How do I group text from cells into categories

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default How do I group text from cells into categories

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help putting cells in different categories phd4212 Excel Discussion (Misc queries) 1 February 25th 09 03:37 PM
Copy Data from One Group of Cells to Another Group Alan Auerbach Charts and Charting in Excel 2 May 27th 07 04:12 PM
How to seperate a text group in once cell into many cells Nurenka Excel Discussion (Misc queries) 2 November 4th 06 11:37 AM
Formatting a group of cells for text Lee Excel Discussion (Misc queries) 4 February 25th 06 06:37 PM
counting categories of text cells Brownjc96 Excel Discussion (Misc queries) 3 May 30th 05 01:37 PM


All times are GMT +1. The time now is 05:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"