Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 273
Default Counting Unique Entries Wit a Twist

Greetings,

I have a list of about 2 k entries that I need to get a count of
unique numbers in column D. The twist, there are a few entries that
are blank. I need to count each blank entry as a unique entry and add
that number to the rest of the unique entries for column D.

I read the article at http://www.cpearson.com/excel/duplicat.htm, but
it did not address counting each blank as a unique entry only NOT
counting the blanks or counting all of the blanks as duplicates of
themselves.

Is there anyway to count each blank as a separate entry along with all
of the other non duplicating entries?

Any help would be most appreciated.

CIA

-Minitman
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default Counting Unique Entries Wit a Twist

Hi

you can use the countblank function
=COUNTBLANK(A1:A10)
to count the number of blanks and then add that result to the count of
unique entries

Cheers
JulieD


"Minitman" wrote in message
...
Greetings,

I have a list of about 2 k entries that I need to get a count of
unique numbers in column D. The twist, there are a few entries that
are blank. I need to count each blank entry as a unique entry and add
that number to the rest of the unique entries for column D.

I read the article at http://www.cpearson.com/excel/duplicat.htm, but
it did not address counting each blank as a unique entry only NOT
counting the blanks or counting all of the blanks as duplicates of
themselves.

Is there anyway to count each blank as a separate entry along with all
of the other non duplicating entries?

Any help would be most appreciated.

CIA

-Minitman



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 273
Default Counting Unique Entries Wit a Twist

Thanks Julie, that is what I was looking for.

-Minitman

On Thu, 11 Nov 2004 10:45:35 +0800, "JulieD"
wrote:

Hi

you can use the countblank function
=COUNTBLANK(A1:A10)
to count the number of blanks and then add that result to the count of
unique entries

Cheers
JulieD


"Minitman" wrote in message
.. .
Greetings,

I have a list of about 2 k entries that I need to get a count of
unique numbers in column D. The twist, there are a few entries that
are blank. I need to count each blank entry as a unique entry and add
that number to the rest of the unique entries for column D.

I read the article at http://www.cpearson.com/excel/duplicat.htm, but
it did not address counting each blank as a unique entry only NOT
counting the blanks or counting all of the blanks as duplicates of
themselves.

Is there anyway to count each blank as a separate entry along with all
of the other non duplicating entries?

Any help would be most appreciated.

CIA

-Minitman



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default Counting Unique Entries Wit a Twist

you're welcome and thanks for the feedback.


"Minitman" wrote in message
...
Thanks Julie, that is what I was looking for.

-Minitman

On Thu, 11 Nov 2004 10:45:35 +0800, "JulieD"
wrote:

Hi

you can use the countblank function
=COUNTBLANK(A1:A10)
to count the number of blanks and then add that result to the count of
unique entries

Cheers
JulieD


"Minitman" wrote in message
. ..
Greetings,

I have a list of about 2 k entries that I need to get a count of
unique numbers in column D. The twist, there are a few entries that
are blank. I need to count each blank entry as a unique entry and add
that number to the rest of the unique entries for column D.

I read the article at http://www.cpearson.com/excel/duplicat.htm, but
it did not address counting each blank as a unique entry only NOT
counting the blanks or counting all of the blanks as duplicates of
themselves.

Is there anyway to count each blank as a separate entry along with all
of the other non duplicating entries?

Any help would be most appreciated.

CIA

-Minitman





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 273
Default Counting Unique Entries Wit a Twist

Hey Julie,

I just realized, since I do not know where the last row is going to be
(it keeps changing), this solution will give me a count of all of the
rows that are below the last row (A:A) as well as the legitimate blank
rows.

How do I get the last row if there are blank rows also among the data
rows?

Any help is most appreciated.

-Minitman
On Thu, 11 Nov 2004 10:45:35 +0800, "JulieD"
wrote:

Hi

you can use the countblank function
=COUNTBLANK(A1:A10)
to count the number of blanks and then add that result to the count of
unique entries

Cheers
JulieD


"Minitman" wrote in message
.. .
Greetings,

I have a list of about 2 k entries that I need to get a count of
unique numbers in column D. The twist, there are a few entries that
are blank. I need to count each blank entry as a unique entry and add
that number to the rest of the unique entries for column D.

I read the article at http://www.cpearson.com/excel/duplicat.htm, but
it did not address counting each blank as a unique entry only NOT
counting the blanks or counting all of the blanks as duplicates of
themselves.

Is there anyway to count each blank as a separate entry along with all
of the other non duplicating entries?

Any help would be most appreciated.

CIA

-Minitman





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Counting Unique Entries Wit a Twist


Let A2 be the start of data.

B2:

=MAX(CELL("Row",A2),MATCH(9.99999999999999E+307,A: A))

B3:

=SUM(IF(A2:INDEX(A:A,B2)<"",1/COUNTIF(A2:INDEX(A:A,B2),A2:INDEX(A:A,B2))))+COUNT BLANK(A2:INDEX(A:A,B2))

which you need to confirm with control+shift+enter instead of just wit
enter.

Minitman Wrote:
Hey Julie,

I just realized, since I do not know where the last row is going to be
(it keeps changing), this solution will give me a count of all of the
rows that are below the last row (A:A) as well as the legitimate blank
rows.

How do I get the last row if there are blank rows also among the data
rows?

[...


--
Aladin Akyure
-----------------------------------------------------------------------
Aladin Akyurek's Profile: http://www.excelforum.com/member.php...nfo&userid=416
View this thread: http://www.excelforum.com/showthread.php?threadid=27721

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 273
Default Counting Unique Entries Wit a Twist

Thanks Aladin,

That is just what I was looking for.

-Minitman


On Wed, 10 Nov 2004 23:33:01 -0600, Aladin Akyurek
wrote:


Let A2 be the start of data.

B2:

=MAX(CELL("Row",A2),MATCH(9.99999999999999E+307,A :A))

B3:

=SUM(IF(A2:INDEX(A:A,B2)<"",1/COUNTIF(A2:INDEX(A:A,B2),A2:INDEX(A:A,B2))))+COUNT BLANK(A2:INDEX(A:A,B2))

which you need to confirm with control+shift+enter instead of just with
enter.

Minitman Wrote:
Hey Julie,

I just realized, since I do not know where the last row is going to be
(it keeps changing), this solution will give me a count of all of the
rows that are below the last row (A:A) as well as the legitimate blank
rows.

How do I get the last row if there are blank rows also among the data
rows?

[...]


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 entries in a field Jeff Whitesel Excel Worksheet Functions 5 October 23rd 08 04:06 AM
COUNTING UNIQUE ENTRIES IN FILTERATION FARAZ QURESHI Excel Discussion (Misc queries) 3 February 13th 08 06:03 PM
Counting Unique Entries Tendresse Excel Discussion (Misc queries) 3 June 4th 07 08:19 AM
Counting unique entries DianeandChipps Excel Discussion (Misc queries) 1 October 14th 06 07:35 PM
Counting Unique Entries SouthCarolina Excel Discussion (Misc queries) 7 April 14th 06 01:18 PM


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