Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
I have got a 2 dim. table (8 rows by 3 columns). 24 strings (2-3 characters each) were typed into the table - however only 8 of them are unique - meaning, some of them appear more than once. I'm looking for a Worksheet Function in order to present only the unique strings in adjacent(!) cells in a vertical range in col. A If the results in the vertical range could be sorted, in ascending order, will be fine. (I know how to achieve that with 1-2 helper columns but I prefer solving it without those helpers). With your permission I uploaded a picture to in order to emphasize what I have in mind. http://img299.imageshack.us/img299/7...iquevalues.png Thanks, Mike |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Take a look at this from Chip Pearson's website...
http://www.cpearson.com/Excel/DistinctValues.aspx -- Hope this helps. If it does, please click the Yes button. Thanks in advance for your feedback. Gary Brown "מיכאל (מיקי) אבידן ®" wrote: Hi, I have got a 2 dim. table (8 rows by 3 columns). 24 strings (2-3 characters each) were typed into the table - however only 8 of them are unique - meaning, some of them appear more than once. I'm looking for a Worksheet Function in order to present only the unique strings in adjacent(!) cells in a vertical range in col. A If the results in the vertical range could be sorted, in ascending order, will be fine. (I know how to achieve that with 1-2 helper columns but I prefer solving it without those helpers). With your permission I uploaded a picture to in order to emphasize what I have in mind. http://img299.imageshack.us/img299/7...iquevalues.png Thanks, Mike |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks for your efforts.
Unfortunately, the suggested UDF does not meet my request. Mr. pearson stated very clearly that (quote): "Two-dimensional ranges are not supported". Other suggestions will be appreciated. Mike "Gary Brown" wrote: Take a look at this from Chip Pearson's website... http://www.cpearson.com/Excel/DistinctValues.aspx -- Hope this helps. If it does, please click the Yes button. Thanks in advance for your feedback. Gary Brown "מיכאל (מיקי) אבידן ®" wrote: Hi, I have got a 2 dim. table (8 rows by 3 columns). 24 strings (2-3 characters each) were typed into the table - however only 8 of them are unique - meaning, some of them appear more than once. I'm looking for a Worksheet Function in order to present only the unique strings in adjacent(!) cells in a vertical range in col. A If the results in the vertical range could be sorted, in ascending order, will be fine. (I know how to achieve that with 1-2 helper columns but I prefer solving it without those helpers). With your permission I uploaded a picture to in order to emphasize what I have in mind. http://img299.imageshack.us/img299/7...iquevalues.png Thanks, Mike |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
מיכאל (מיקי) אבידן ® <micky-a*at*tapuz.co.il wrote...
.... I'm looking for a Worksheet Function in order to present only the unique strings in adjacent(!) cells in a vertical range in col. A If the results in the vertical range could be sorted, in ascending order, will be fine. .... If the 8 by 3 table were named T and the first result were in cell E1, E1: =INDEX(T,MATCH(2,1/MMULT(-(COUNTIF(T,"<"&T)=0),{1;1;1})), MATCH(0,INDEX(COUNTIF(T,"<"&T), MATCH(2,1/MMULT(-(COUNTIF(T,"<"&T)=0),{1;1;1})),0),0)) E2: =INDEX(T,MATCH(2,1/MMULT(-(COUNTIF(T,"<"&T)=COUNTIF(T,"<="&E1)), {1;1;1})), MATCH(COUNTIF(T,"<="&E1),INDEX(COUNTIF(T,"<"&T), MATCH(2,1/MMULT(-(COUNTIF(T,"<"&T)=COUNTIF(T,"<="&E1)),{1;1;1})),0) , 0)) Fill E2 down as far as needed. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Excel 2007
Converts any size table. Uses no formulas. Dynamic. Can be turned into a Macro or UDF. http://www.mediafire.com/file/gz53tygeznz/04_30_09.xlsx |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks, Herbert,
Can this be achieved, that way, in Excel versions prior "2007" !? Mike "Herbert Seidenberg" wrote: Excel 2007 Converts any size table. Uses no formulas. Dynamic. Can be turned into a Macro or UDF. http://www.mediafire.com/file/gz53tygeznz/04_30_09.xlsx |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks, Harlan,
Great solution. Mike "Harlan Grove" wrote: מיכאל (מיקי) אבידן ® <micky-a*at*tapuz.co.il wrote... .... I'm looking for a Worksheet Function in order to present only the unique strings in adjacent(!) cells in a vertical range in col. A If the results in the vertical range could be sorted, in ascending order, will be fine. .... If the 8 by 3 table were named T and the first result were in cell E1, E1: =INDEX(T,MATCH(2,1/MMULT(-(COUNTIF(T,"<"&T)=0),{1;1;1})), MATCH(0,INDEX(COUNTIF(T,"<"&T), MATCH(2,1/MMULT(-(COUNTIF(T,"<"&T)=0),{1;1;1})),0),0)) E2: =INDEX(T,MATCH(2,1/MMULT(-(COUNTIF(T,"<"&T)=COUNTIF(T,"<="&E1)), {1;1;1})), MATCH(COUNTIF(T,"<="&E1),INDEX(COUNTIF(T,"<"&T), MATCH(2,1/MMULT(-(COUNTIF(T,"<"&T)=COUNTIF(T,"<="&E1)),{1;1;1})),0) , 0)) Fill E2 down as far as needed. |
#8
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Excel 2003
Since "Remove Duplicates" is not featured in 2003, this macro implementation is clunky: http://www.mediafire.com/file/yzmlmlnlmjk/04_30_09.xls |
#9
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks, Herbert.
"Herbert Seidenberg" wrote: Excel 2003 Since "Remove Duplicates" is not featured in 2003, this macro implementation is clunky: http://www.mediafire.com/file/yzmlmlnlmjk/04_30_09.xls |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I count unique strings of data in a field? | Excel Discussion (Misc queries) | |||
How do I link data from a horizontal range to a vertical range? | Excel Worksheet Functions | |||
strings in a range | Excel Worksheet Functions | |||
Convert text strings to a code or number | Excel Worksheet Functions | |||
counting unique strings | Excel Discussion (Misc queries) |