ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Counting Unique Entries Wit a Twist (https://www.excelbanter.com/excel-programming/316389-counting-unique-entries-wit-twist.html)

Minitman[_4_]

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

JulieD

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




JulieD

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






Minitman[_4_]

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




Minitman[_4_]

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




Aladin Akyurek[_6_]

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


Minitman[_4_]

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?

[...]




All times are GMT +1. The time now is 12:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com