Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Have the need to sort text code-values within same Excel cell

Got column with thousands of cells containg different codes, e.g., cell P357
-- {X, A, B2, T83, M19}; cell P425 -- {T83, A, X, M19, B2}, etc ... Need
a way to sort these individual cells in a similar order so I can aggregate
the number of cells containing the same set of codes/values ...

I am somehow familiar with the basic Excel functionality but above situation
is really challenging me !

Thanks in advance ..
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Have the need to sort text code-values within same Excel cell

Say each of the cells in column A contains a list of 5 codes separated by
commas.

First copy column A into columns B, C, D, and E.

Next set and AutoFilter for each column:
column A "contains" X
column B "contains" A
column C "contains" B2
column D "contains" T83
column E "contains" M19

The autofilter will display all the rows that have the same contents,
regardless of the order the codes appear.
--
Gary''s Student - gsnu200909


"A.X M.D" wrote:

Got column with thousands of cells containg different codes, e.g., cell P357
-- {X, A, B2, T83, M19}; cell P425 -- {T83, A, X, M19, B2}, etc ... Need
a way to sort these individual cells in a similar order so I can aggregate
the number of cells containing the same set of codes/values ...

I am somehow familiar with the basic Excel functionality but above situation
is really challenging me !

Thanks in advance ..

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Have the need to sort text code-values within same Excel cell

Looks long but thats' only because I have been pedantically detailed:

1) Let's place save and copy & paste all the entries to an empty worksheet
starting in A1

2) If the { are really part of the cell content -- as in {X, A, B2, T83,
M19}; : use Edit | Find & Replace to replace these by nothing. Now you
have, for example, X, A, B2, T83, M19

3) Select all of the data in column A, use Data | Text to Column with
Delimited by comma
Now you have the the data broken into separate cells
X A B2 T83 M19

4) Select all the data and use Data Sort; specify sort left to right: giving
A B2 M19 T83 X

5) In F1 enter
EITHER: =A1&", "&B1&", "&C1&", "&D1&", "&E1 or
OR: ="{"&A1&", "&B1&", "&C1&", "&D1&", "&E1&"}"
Copy down the column by double clicking F1's fill handle

6) When you are satisfied all is correct you could Copy and Paste Special
with Values specified this range over top of the data in P of original
worksheet, or into F of the current worksheet for analysis.
best wishes
--
Bernard Liengme
http://people.stfx.ca/bliengme
Microsoft Excel MVP






"A.X M.D" <A.X wrote in message
...
Got column with thousands of cells containg different codes, e.g., cell
P357
-- {X, A, B2, T83, M19}; cell P425 -- {T83, A, X, M19, B2}, etc ...
Need
a way to sort these individual cells in a similar order so I can aggregate
the number of cells containing the same set of codes/values ...

I am somehow familiar with the basic Excel functionality but above
situation
is really challenging me !

Thanks in advance ..


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
Conditional Formatting - Code to colour 3+ text values differently AK9955 Excel Discussion (Misc queries) 3 November 9th 09 06:11 PM
How to Sort by Count the Max nos of Unique text values in Pivot Ta ToExcelAtExcel Excel Discussion (Misc queries) 1 November 7th 06 08:45 AM
Formula to sort text values with spaces slim Excel Discussion (Misc queries) 4 May 19th 06 01:44 PM
Sort text Values in Numeric Order Karl Burrows Excel Discussion (Misc queries) 4 August 8th 05 07:58 AM
Zip code sort is an Excel problem even when using the special cat. camead Excel Discussion (Misc queries) 2 March 31st 05 01:15 AM


All times are GMT +1. The time now is 02:59 PM.

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"