Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
DTTODGG
 
Posts: n/a
Default Count number of different entries?

Hello-

Is there a simple way to count the number of different entries in a column?

ex. I have multiple rows for the same "salesperson". I have many
salespersons. I want to know how many salespersons I have.

I guess I'm counting non-duplicate entries in a column.

Thank you,
I'm learning lots!
  #2   Report Post  
Duke Carey
 
Posts: n/a
Default Count number of different entries?

This is an array formula, so enter it with Ctrl+Shift+Enter

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

"DTTODGG" wrote:

Hello-

Is there a simple way to count the number of different entries in a column?

ex. I have multiple rows for the same "salesperson". I have many
salespersons. I want to know how many salespersons I have.

I guess I'm counting non-duplicate entries in a column.

Thank you,
I'm learning lots!

  #3   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default Count number of different entries?

On Wed, 9 Nov 2005 16:32:40 -0800, "DTTODGG"
wrote:

Hello-

Is there a simple way to count the number of different entries in a column?

ex. I have multiple rows for the same "salesperson". I have many
salespersons. I want to know how many salespersons I have.

I guess I'm counting non-duplicate entries in a column.

Thank you,
I'm learning lots!


Depends on whether or not there are blanks in the range.

If no blanks:

=SUM(1/COUNTIF(A1:A10,A1:A10))

entered as an *array* formula.

If there may be blanks, even if they are at the end of the range, then:

=SUM(IF(FREQUENCY(IF(LEN(A1:A100)0,MATCH(A1:A100, A1:A100,0),""),
IF(LEN(A1:A100)0,MATCH(A1:A100,A1:A100,0),""))0, 1))

also entered as an *array* formula.

To enter an *array* formula, after typing or pasting the formula into the
formula bar, hold down <ctrl<shift while hitting <enter. Excel will place
braces {...} around the formula.


--ron
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 the number of Cells in one ROW with conditions Amanda Excel Worksheet Functions 2 September 9th 05 04:03 PM
How to count dates within a certain range in a column with mutiple date range entries Krisjhn Excel Worksheet Functions 2 September 1st 05 01:59 PM
Count unique entries BeSmart Excel Worksheet Functions 7 August 30th 05 12:53 PM
Count Number of Characters in a cell? AHJuncti Excel Discussion (Misc queries) 2 June 16th 05 07:39 PM
Count number of days in given month? Bryan Excel Worksheet Functions 10 February 2nd 05 11:44 PM


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