Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 138
Default Counting Names in a Column, Ignoring Duplicates

Is there a way to count names in a column but have the formula ignore
duplicates?

example:

Column A
John Smith
John Smith
Jane Doe
Joe Smith

the formula would give me a total of - 3

I appreciate any and all help. Thank you in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Counting Names in a Column, Ignoring Duplicates

=SUM(1/COUNTIF(A1:A10,A1:A10))
and confirm as an array formula (use CNTRL-SHFT-ENTER rather than just ENTER)

will display 3 for your example.


--
Gary''s Student
gsnu200710


"Bruce" wrote:

Is there a way to count names in a column but have the formula ignore
duplicates?

example:

Column A
John Smith
John Smith
Jane Doe
Joe Smith

the formula would give me a total of - 3

I appreciate any and all help. Thank you in advance.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 138
Default Counting Names in a Column, Ignoring Duplicates

This isn't working. When I enter the formula I get a "DIV/0" error.


"Gary''s Student" wrote:

=SUM(1/COUNTIF(A1:A10,A1:A10))
and confirm as an array formula (use CNTRL-SHFT-ENTER rather than just ENTER)

will display 3 for your example.


--
Gary''s Student
gsnu200710


"Bruce" wrote:

Is there a way to count names in a column but have the formula ignore
duplicates?

example:

Column A
John Smith
John Smith
Jane Doe
Joe Smith

the formula would give me a total of - 3

I appreciate any and all help. Thank you in advance.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Counting Names in a Column, Ignoring Duplicates

That probably means there are empty cells within the range.

Try this (normally entered, not an array):

=SUMPRODUCT((A1:A10<"")/COUNTIF(A1:A10,A1:A10&""))

Biff

"Bruce" wrote in message
...
This isn't working. When I enter the formula I get a "DIV/0" error.


"Gary''s Student" wrote:

=SUM(1/COUNTIF(A1:A10,A1:A10))
and confirm as an array formula (use CNTRL-SHFT-ENTER rather than just
ENTER)

will display 3 for your example.


--
Gary''s Student
gsnu200710


"Bruce" wrote:

Is there a way to count names in a column but have the formula ignore
duplicates?

example:

Column A
John Smith
John Smith
Jane Doe
Joe Smith

the formula would give me a total of - 3

I appreciate any and all help. Thank you in advance.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 138
Default Counting Names in a Column, Ignoring Duplicates

Thank you for your reply. Your formula is counting the names but it's not
ignoring duplicate names. Any other suggestions?

"T. Valko" wrote:

That probably means there are empty cells within the range.

Try this (normally entered, not an array):

=SUMPRODUCT((A1:A10<"")/COUNTIF(A1:A10,A1:A10&""))

Biff

"Bruce" wrote in message
...
This isn't working. When I enter the formula I get a "DIV/0" error.


"Gary''s Student" wrote:

=SUM(1/COUNTIF(A1:A10,A1:A10))
and confirm as an array formula (use CNTRL-SHFT-ENTER rather than just
ENTER)

will display 3 for your example.


--
Gary''s Student
gsnu200710


"Bruce" wrote:

Is there a way to count names in a column but have the formula ignore
duplicates?

example:

Column A
John Smith
John Smith
Jane Doe
Joe Smith

the formula would give me a total of - 3

I appreciate any and all help. Thank you in advance.






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 422
Default Counting Names in a Column, Ignoring Duplicates

Biff:

Why is the &"" used (at the end) below?

It still works without it (just experimenting here)..

TIA,

Jim May


"T. Valko" wrote in message
:

That probably means there are empty cells within the range.

Try this (normally entered, not an array):

=SUMPRODUCT((A1:A10<"")/COUNTIF(A1:A10,A1:A10&""))

Biff

"Bruce" wrote in message
...
This isn't working. When I enter the formula I get a "DIV/0" error.


"Gary''s Student" wrote:

=SUM(1/COUNTIF(A1:A10,A1:A10))
and confirm as an array formula (use CNTRL-SHFT-ENTER rather than just
ENTER)

will display 3 for your example.


--
Gary''s Student
gsnu200710


"Bruce" wrote:

Is there a way to count names in a column but have the formula ignore
duplicates?

example:

Column A
John Smith
John Smith
Jane Doe
Joe Smith

the formula would give me a total of - 3

I appreciate any and all help. Thank you in advance.


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Counting Names in a Column, Ignoring Duplicates

Try leaving some empty cells in A1:A10.

JMay wrote:

Biff:

Why is the &"" used (at the end) below?

It still works without it (just experimenting here)..

TIA,

Jim May

"T. Valko" wrote in message
:

That probably means there are empty cells within the range.

Try this (normally entered, not an array):

=SUMPRODUCT((A1:A10<"")/COUNTIF(A1:A10,A1:A10&""))

Biff

"Bruce" wrote in message
...
This isn't working. When I enter the formula I get a "DIV/0" error.


"Gary''s Student" wrote:

=SUM(1/COUNTIF(A1:A10,A1:A10))
and confirm as an array formula (use CNTRL-SHFT-ENTER rather than just
ENTER)

will display 3 for your example.


--
Gary''s Student
gsnu200710


"Bruce" wrote:

Is there a way to count names in a column but have the formula ignore
duplicates?

example:

Column A
John Smith
John Smith
Jane Doe
Joe Smith

the formula would give me a total of - 3

I appreciate any and all help. Thank you in advance.


--

Dave Peterson
  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 422
Default Counting Names in a Column, Ignoring Duplicates

Dave,
Your right - causing a cell to go blank does result in #DIV/0!
But I don't get how th &"" addition prevents it!!
Jim


" wrote in message
:

Try leaving some empty cells in A1:A10.

JMay wrote:

Biff:

Why is the &"" used (at the end) below?

It still works without it (just experimenting here)..

TIA,

Jim May

"T. Valko" wrote in message
:

That probably means there are empty cells within the range.

Try this (normally entered, not an array):

=SUMPRODUCT((A1:A10<"")/COUNTIF(A1:A10,A1:A10&""))

Biff

"Bruce" wrote in message
...
This isn't working. When I enter the formula I get a "DIV/0" error.


"Gary''s Student" wrote:

=SUM(1/COUNTIF(A1:A10,A1:A10))
and confirm as an array formula (use CNTRL-SHFT-ENTER rather than just
ENTER)

will display 3 for your example.


--
Gary''s Student
gsnu200710


"Bruce" wrote:

Is there a way to count names in a column but have the formula ignore
duplicates?

example:

Column A
John Smith
John Smith
Jane Doe
Joe Smith

the formula would give me a total of - 3

I appreciate any and all help. Thank you in advance.


--

Dave Peterson


  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Counting Names in a Column, Ignoring Duplicates

The &"" will make the empty cell look like a cell that had ="" in it--it won't
be empty--just a 0 length string.

JMay wrote:

Dave,
Your right - causing a cell to go blank does result in #DIV/0!
But I don't get how th &"" addition prevents it!!
Jim

" wrote in message
:

Try leaving some empty cells in A1:A10.

JMay wrote:

Biff:

Why is the &"" used (at the end) below?

It still works without it (just experimenting here)..

TIA,

Jim May

"T. Valko" wrote in message
:

That probably means there are empty cells within the range.

Try this (normally entered, not an array):

=SUMPRODUCT((A1:A10<"")/COUNTIF(A1:A10,A1:A10&""))

Biff

"Bruce" wrote in message
...
This isn't working. When I enter the formula I get a "DIV/0" error.


"Gary''s Student" wrote:

=SUM(1/COUNTIF(A1:A10,A1:A10))
and confirm as an array formula (use CNTRL-SHFT-ENTER rather than just
ENTER)

will display 3 for your example.


--
Gary''s Student
gsnu200710


"Bruce" wrote:

Is there a way to count names in a column but have the formula ignore
duplicates?

example:

Column A
John Smith
John Smith
Jane Doe
Joe Smith

the formula would give me a total of - 3

I appreciate any and all help. Thank you in advance.


--

Dave Peterson


--

Dave Peterson
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 duplicates Neil Excel Discussion (Misc queries) 11 November 15th 06 12:35 AM
Counting and duplicates Jeff Excel Discussion (Misc queries) 1 October 23rd 06 04:18 PM
Counting Different Names in A Column... Formula? Mhz New Users to Excel 2 August 13th 06 03:04 AM
counting duplicates Among Many Sheets, Possible?? Mhz New Users to Excel 5 July 5th 06 03:23 AM
Counting names in a column but counting duplicate names once TBoe Excel Discussion (Misc queries) 9 May 12th 05 12:24 AM


All times are GMT +1. The time now is 07:39 AM.

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"