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 count if unique entries

I need to count the number of unique entries (names) in a column of data, one
count for each different name. List changes throghout the day and so I
can't keep putting names in a long 'countif' formula.

Am looking for something that will identify a unique entry and count it.

This type of list:

Doctor
Mahoubi, Ray
Corcoran, David
Aguilera, Ruben
Green, Kerry S.
Aguilera, Ruben

Sarraf, Payam
Murad, Craig A.
Murad, Craig A.
Murad, Craig A.
Murad, Craig A.
Murad, Craig A.
Murad, Craig A.
Thull, David A.
Murad, Craig A.
Murad, Craig A.
Crezee, Kelvin S.
Gorman, Ike B.
Gorman, Ike B.
Gorman, Ike B.
Sarraf, Payam
Turner, Merle C.
Turner, Merle C.
Turner, Merle C.
Jensen, Scott M.
Turner, Merle C.
Turner, Merle C.
Jensen, Scott M.
Discont, Alan J.
Discont, Alan J.
Discont, Alan J.
Discont, Alan J.

Pawlowski, Jeff V.
Pawlowski, Jeff V.
Pawlowski, Jeff V.
Jacoby, Richard
Jacoby, Richard
Jacoby, Richard
Jacoby, Richard
Jacoby, Richard

Beecroft, C. Jon
Beecroft, C. Jon
Sapin, Neil J.
Aguilera, Ruben
Mehta, Kishor D.
Aguilera, Ruben

Green, Kerry S.
Green, Kerry S.
Green, Kerry S.
Hoang, Phat D.
Hoang, Phat D.

Freed, Lewis H.
Freed, Lewis H.
Mehta, Kishor D.
Mehta, Kishor D.

Jacoby, Richard
Thull, David A.
Thull, David A.
Thull, David A.
Jensen, Scott M.
Turner, Merle C.
Turner, Merle C.
Turner, Merle C.
Discont, Alan J.
Krand, Greg

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default count if unique entries

Use a Pivot Table. See:

http://contextures.com/xlPivot07.html#Unique


--
Gary''s Student - gsnu200794


"Tonybagodonuts" wrote:

I need to count the number of unique entries (names) in a column of data, one
count for each different name. List changes throghout the day and so I
can't keep putting names in a long 'countif' formula.

Am looking for something that will identify a unique entry and count it.

This type of list:

Doctor
Mahoubi, Ray
Corcoran, David
Aguilera, Ruben
Green, Kerry S.
Aguilera, Ruben

Sarraf, Payam
Murad, Craig A.
Murad, Craig A.
Murad, Craig A.
Murad, Craig A.
Murad, Craig A.
Murad, Craig A.
Thull, David A.
Murad, Craig A.
Murad, Craig A.
Crezee, Kelvin S.
Gorman, Ike B.
Gorman, Ike B.
Gorman, Ike B.
Sarraf, Payam
Turner, Merle C.
Turner, Merle C.
Turner, Merle C.
Jensen, Scott M.
Turner, Merle C.
Turner, Merle C.
Jensen, Scott M.
Discont, Alan J.
Discont, Alan J.
Discont, Alan J.
Discont, Alan J.

Pawlowski, Jeff V.
Pawlowski, Jeff V.
Pawlowski, Jeff V.
Jacoby, Richard
Jacoby, Richard
Jacoby, Richard
Jacoby, Richard
Jacoby, Richard

Beecroft, C. Jon
Beecroft, C. Jon
Sapin, Neil J.
Aguilera, Ruben
Mehta, Kishor D.
Aguilera, Ruben

Green, Kerry S.
Green, Kerry S.
Green, Kerry S.
Hoang, Phat D.
Hoang, Phat D.

Freed, Lewis H.
Freed, Lewis H.
Mehta, Kishor D.
Mehta, Kishor D.

Jacoby, Richard
Thull, David A.
Thull, David A.
Thull, David A.
Jensen, Scott M.
Turner, Merle C.
Turner, Merle C.
Turner, Merle C.
Discont, Alan J.
Krand, Greg

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default count if unique entries

Try this:

=SUMPRODUCT((A2:A100<"")/COUNTIF(A2:A100,A2:A100&""))

Note that this will be "slow" on large amounts of data. You could notice the
"slowness" at around ~2000 cells or greater.

--
Biff
Microsoft Excel MVP


"Tonybagodonuts" wrote in message
...
I need to count the number of unique entries (names) in a column of data,
one
count for each different name. List changes throghout the day and so I
can't keep putting names in a long 'countif' formula.

Am looking for something that will identify a unique entry and count it.

This type of list:

Doctor
Mahoubi, Ray
Corcoran, David
Aguilera, Ruben
Green, Kerry S.
Aguilera, Ruben

Sarraf, Payam
Murad, Craig A.
Murad, Craig A.
Murad, Craig A.
Murad, Craig A.
Murad, Craig A.
Murad, Craig A.
Thull, David A.
Murad, Craig A.
Murad, Craig A.
Crezee, Kelvin S.
Gorman, Ike B.
Gorman, Ike B.
Gorman, Ike B.
Sarraf, Payam
Turner, Merle C.
Turner, Merle C.
Turner, Merle C.
Jensen, Scott M.
Turner, Merle C.
Turner, Merle C.
Jensen, Scott M.
Discont, Alan J.
Discont, Alan J.
Discont, Alan J.
Discont, Alan J.

Pawlowski, Jeff V.
Pawlowski, Jeff V.
Pawlowski, Jeff V.
Jacoby, Richard
Jacoby, Richard
Jacoby, Richard
Jacoby, Richard
Jacoby, Richard

Beecroft, C. Jon
Beecroft, C. Jon
Sapin, Neil J.
Aguilera, Ruben
Mehta, Kishor D.
Aguilera, Ruben

Green, Kerry S.
Green, Kerry S.
Green, Kerry S.
Hoang, Phat D.
Hoang, Phat D.

Freed, Lewis H.
Freed, Lewis H.
Mehta, Kishor D.
Mehta, Kishor D.

Jacoby, Richard
Thull, David A.
Thull, David A.
Thull, David A.
Jensen, Scott M.
Turner, Merle C.
Turner, Merle C.
Turner, Merle C.
Discont, Alan J.
Krand, Greg



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default count if unique entries

I can come up with at least 9 ways to do this; any more is moot:
=SUMPRODUCT((A1:A78<"")/(COUNTIF(A1:A78,A1:A78)+(A1:A78="")))
=SUM(IF(FREQUENCY(IF(LEN(A1:A971)0,MATCH(A1:A971, A1:A971,0),""),IF(LEN(A1:A971)0,MATCH(A1:A971,A1: A971,0),""))0,1))
(this is a CSE function; you must hit Ctrl + Shift + Enter at the same time)
=SUM(IF(A1:A400<"",1/COUNTIF(A1:A400,A1:A400)))
(this is a CSE function; you must hit Ctrl + Shift + Enter at the same time)
=SUMPRODUCT((A1:A78<"")/(COUNTIF(A1:A78,A1:A78&"")))
(this is a CSE function; you must hit Ctrl + Shift + Enter at the same time)
=SUM(--(FREQUENCY(IF(A1:A2676<"",MATCH(A1:A2676,A1:A2676 ,0)),ROW(INDIRECT("1:"&ROWS(A1:A2676))))0))
(this is a CSE function; you must hit Ctrl + Shift + Enter at the same time)

Regards,
Ryan---
--
RyGuy


"T. Valko" wrote:

Try this:

=SUMPRODUCT((A2:A100<"")/COUNTIF(A2:A100,A2:A100&""))

Note that this will be "slow" on large amounts of data. You could notice the
"slowness" at around ~2000 cells or greater.

--
Biff
Microsoft Excel MVP


"Tonybagodonuts" wrote in message
...
I need to count the number of unique entries (names) in a column of data,
one
count for each different name. List changes throghout the day and so I
can't keep putting names in a long 'countif' formula.

Am looking for something that will identify a unique entry and count it.

This type of list:

Doctor
Mahoubi, Ray
Corcoran, David
Aguilera, Ruben
Green, Kerry S.
Aguilera, Ruben

Sarraf, Payam
Murad, Craig A.
Murad, Craig A.
Murad, Craig A.
Murad, Craig A.
Murad, Craig A.
Murad, Craig A.
Thull, David A.
Murad, Craig A.
Murad, Craig A.
Crezee, Kelvin S.
Gorman, Ike B.
Gorman, Ike B.
Gorman, Ike B.
Sarraf, Payam
Turner, Merle C.
Turner, Merle C.
Turner, Merle C.
Jensen, Scott M.
Turner, Merle C.
Turner, Merle C.
Jensen, Scott M.
Discont, Alan J.
Discont, Alan J.
Discont, Alan J.
Discont, Alan J.

Pawlowski, Jeff V.
Pawlowski, Jeff V.
Pawlowski, Jeff V.
Jacoby, Richard
Jacoby, Richard
Jacoby, Richard
Jacoby, Richard
Jacoby, Richard

Beecroft, C. Jon
Beecroft, C. Jon
Sapin, Neil J.
Aguilera, Ruben
Mehta, Kishor D.
Aguilera, Ruben

Green, Kerry S.
Green, Kerry S.
Green, Kerry S.
Hoang, Phat D.
Hoang, Phat D.

Freed, Lewis H.
Freed, Lewis H.
Mehta, Kishor D.
Mehta, Kishor D.

Jacoby, Richard
Thull, David A.
Thull, David A.
Thull, David A.
Jensen, Scott M.
Turner, Merle C.
Turner, Merle C.
Turner, Merle C.
Discont, Alan J.
Krand, Greg




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
Count unique entries... ChuckF Excel Worksheet Functions 5 October 12th 06 05:48 AM
Count Unique Entries SouthCarolina Excel Worksheet Functions 4 April 14th 06 11:44 PM
Count unique entries Cash Excel Discussion (Misc queries) 4 April 4th 06 09:44 PM
Count unique entries BeSmart Excel Worksheet Functions 7 August 30th 05 12:53 PM
Count of unique entries slang Excel Discussion (Misc queries) 4 July 3rd 05 06:45 AM


All times are GMT +1. The time now is 10:46 AM.

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

About Us

"It's about Microsoft Excel"