Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
SouthCarolina
 
Posts: n/a
Default Counting Unique Entries

I am trying to count unique entries across a set of colums. For example,

3 4
2 4
4 7
2 1
1 0

I want the result to be 5 as the number of unique entries. Can this be done?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
Domenic
 
Posts: n/a
Default Counting Unique Entries

Assuming that A2:B6 contains the data, try...

=SUM(IF(A2:B60,1/COUNTIF(A2:B6,A2:B6)))

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!

In article ,
SouthCarolina wrote:

I am trying to count unique entries across a set of colums. For example,

3 4
2 4
4 7
2 1
1 0

I want the result to be 5 as the number of unique entries. Can this be done?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
SouthCarolina
 
Posts: n/a
Default Counting Unique Entries

Sorry I was not clearer before, but the data is not next to each other. For
example, the first set is in column A and the next set is in column E. Do
you have any suggestions for this? Sorry for the confusion.

"Domenic" wrote:

Assuming that A2:B6 contains the data, try...

=SUM(IF(A2:B60,1/COUNTIF(A2:B6,A2:B6)))

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!

In article ,
SouthCarolina wrote:

I am trying to count unique entries across a set of colums. For example,

3 4
2 4
4 7
2 1
1 0

I want the result to be 5 as the number of unique entries. Can this be done?

Thanks


  #4   Report Post  
Posted to microsoft.public.excel.misc
Domenic
 
Posts: n/a
Default Counting Unique Entries

There may be a better way, but try the following...

=COUNT(1/FREQUENCY((A2:A6,E2:E6),(A2:A6,E2:E6)))-(COUNTIF(A2:A6,0)+COUNTI
F(E2:E6,0)0)

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!

In article ,
SouthCarolina wrote:

Sorry I was not clearer before, but the data is not next to each other. For
example, the first set is in column A and the next set is in column E. Do
you have any suggestions for this? Sorry for the confusion.

"Domenic" wrote:

Assuming that A2:B6 contains the data, try...

=SUM(IF(A2:B60,1/COUNTIF(A2:B6,A2:B6)))

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!

In article ,
SouthCarolina wrote:

I am trying to count unique entries across a set of colums. For example,

3 4
2 4
4 7
2 1
1 0

I want the result to be 5 as the number of unique entries. Can this be
done?

Thanks


  #5   Report Post  
Posted to microsoft.public.excel.misc
SouthCarolina
 
Posts: n/a
Default Counting Unique Entries

I've tried this equation
{=COUNT(1/FREQUENCY((A2:A6,E2:E6),(A2:A6,E2:E6)))-(COUNTIF(A2:A6,0)+COUNTIF(E2:E6,0)0)} using the CTRL+SHIFT+ENTER, but the results came out to be zero.

Is there another way?

"SouthCarolina" wrote:

I am trying to count unique entries across a set of colums. For example,

3 4
2 4
4 7
2 1
1 0

I want the result to be 5 as the number of unique entries. Can this be done?

Thanks



  #6   Report Post  
Posted to microsoft.public.excel.misc
Domenic
 
Posts: n/a
Default Counting Unique Entries

Maybe your numbers are being recognized as text. Try...

=ISNUMBER(A2)

If it returns FALSE, try the following...

1) Select an empty cell

2) Edit Copy

3) Select the range of cells containing your numbers

4) Edit Paste Special Add Ok

Does this help?

In article ,
SouthCarolina wrote:

I've tried this equation
{=COUNT(1/FREQUENCY((A2:A6,E2:E6),(A2:A6,E2:E6)))-(COUNTIF(A2:A6,0)+COUNTIF(E2
:E6,0)0)} using the CTRL+SHIFT+ENTER, but the results came out to be zero.

Is there another way?

"SouthCarolina" wrote:

I am trying to count unique entries across a set of colums. For example,

3 4
2 4
4 7
2 1
1 0

I want the result to be 5 as the number of unique entries. Can this be
done?

Thanks

  #7   Report Post  
Posted to microsoft.public.excel.misc
JMB
 
Posts: n/a
Default Counting Unique Entries

Very nice!

Are you excluding 0 as a unique entry? If one wanted to count 0 as a unique
entry, I assume you would remove this part at the end?
-(COUNTIF(A2:A6,0)+COUNTIF(E2:E6,0)0)


"Domenic" wrote:

There may be a better way, but try the following...

=COUNT(1/FREQUENCY((A2:A6,E2:E6),(A2:A6,E2:E6)))-(COUNTIF(A2:A6,0)+COUNTI
F(E2:E6,0)0)

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!

In article ,
SouthCarolina wrote:

Sorry I was not clearer before, but the data is not next to each other. For
example, the first set is in column A and the next set is in column E. Do
you have any suggestions for this? Sorry for the confusion.

"Domenic" wrote:

Assuming that A2:B6 contains the data, try...

=SUM(IF(A2:B60,1/COUNTIF(A2:B6,A2:B6)))

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!

In article ,
SouthCarolina wrote:

I am trying to count unique entries across a set of colums. For example,

3 4
2 4
4 7
2 1
1 0

I want the result to be 5 as the number of unique entries. Can this be
done?

Thanks


  #8   Report Post  
Posted to microsoft.public.excel.misc
Domenic
 
Posts: n/a
Default Counting Unique Entries

In article ,
JMB wrote:

Are you excluding 0 as a unique entry?


Yes, as per the example provided by the original post.

If one wanted to count 0 as a unique
entry, I assume you would remove this part at the end?
-(COUNTIF(A2:A6,0)+COUNTIF(E2:E6,0)0)


Yes, that's right... :)

Cheers!
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
Counting unique text entries in a filtered list... SOS Excel Worksheet Functions 4 April 5th 06 05:31 PM
counting unique entries in a list Michael Excel Discussion (Misc queries) 1 November 10th 05 03:00 PM
Counting Unique text entries in a sheet with a condition Mike Excel Worksheet Functions 5 October 4th 05 11:56 AM
count duplicate (or, inversely, unique) entries, but based on a condition markx Excel Worksheet Functions 3 March 8th 05 06:57 PM
Counting unique entries in column A but only if specific values appear in columns B and C markx Excel Worksheet Functions 1 February 10th 05 11:52 AM


All times are GMT +1. The time now is 08:16 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"