On Mon, 5 Jun 2006 08:12:48 +0200, "K7" <(E-Mail Removed)> wrote:
>Hello all,
>
>I haven't been able to solve this...
>
>I have two columns in the same sheet. I would like to extract (in another
>sheet) all the unique elements of each column and count how many each data
>is repeated. Any element can appear in both column. An example would be:
>
>column 1 column 2
>
>red red
>red blue
>blue green
>yellow magenta
>
>
>the result would be
>
>red 3
>blue 2
>yellow 1
>green 1
>magenta 1
>
>
>Sorry for my english and thanks to whoever can help me with this.
>
This should work: Download and install Longre's free morefunc.xll add-in from
http://xcell05.free.fr
Then assuming your data is on Sheet1!A2:B100
On sheet2
A2: =INDEX(UNIQUEVALUES(Sheet1!$A$2:$B$100,1),ROWS($1:1))
B2: =COUNTIF(Sheet1!$A$2:$B$100,A2)
Copy/drag down as far as required to encompass all of the unique values.
--ron