Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
UT
 
Posts: n/a
Default count non blank cells with criteria

I need to count non blank cells that match a condition.

For example i want to count number of entries in Column "B" for "ANTH 328"
course.

A B
ANTH 328 PC
ANTH 328
ANTH 328 PC

I have tried DCOUNTA and combination of functions. Nothing is working. Help
will be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default count non blank cells with criteria

Hi!

Try this:

=SUMPRODUCT(--(A1:A20="ANTH 328"),--(B1:B20<""))

Biff

"UT" wrote in message
...
I need to count non blank cells that match a condition.

For example i want to count number of entries in Column "B" for "ANTH
328"
course.

A B
ANTH 328 PC
ANTH 328
ANTH 328 PC

I have tried DCOUNTA and combination of functions. Nothing is working.
Help
will be greatly appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.misc
UT
 
Posts: n/a
Default count non blank cells with criteria

Hi Biff,

The function dosent work. It counts the number of entries in Column A . So
it gives me count of 3 in the example below. But it should actually show the
count of 2 since there are only two entries that match "ANTH 328". Any other
guesses?

"Biff" wrote:

Hi!

Try this:

=SUMPRODUCT(--(A1:A20="ANTH 328"),--(B1:B20<""))

Biff

"UT" wrote in message
...
I need to count non blank cells that match a condition.

For example i want to count number of entries in Column "B" for "ANTH
328"
course.

A B
ANTH 328 PC
ANTH 328
ANTH 328 PC

I have tried DCOUNTA and combination of functions. Nothing is working.
Help
will be greatly appreciated.




  #4   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default count non blank cells with criteria

Hi!

Take a look at this screencap:

http://img526.imageshack.us/img526/1241/sump0mi.jpg

If you're getting a result of 3 based on your example then the "blank" cell
is not blank. Is there a formula in the second column? There may be unseen
characters like spaces.

As you can see in the screencap the formula does return the correct result.

Biff

"UT" wrote in message
...
Hi Biff,

The function dosent work. It counts the number of entries in Column A . So
it gives me count of 3 in the example below. But it should actually show
the
count of 2 since there are only two entries that match "ANTH 328". Any
other
guesses?

"Biff" wrote:

Hi!

Try this:

=SUMPRODUCT(--(A1:A20="ANTH 328"),--(B1:B20<""))

Biff

"UT" wrote in message
...
I need to count non blank cells that match a condition.

For example i want to count number of entries in Column "B" for "ANTH
328"
course.

A B
ANTH 328 PC
ANTH 328
ANTH 328 PC

I have tried DCOUNTA and combination of functions. Nothing is working.
Help
will be greatly appreciated.






  #5   Report Post  
Posted to microsoft.public.excel.misc
UT
 
Posts: n/a
Default count non blank cells with criteria

Hi Biff,

The formula worked. Thanks a lot.

"Biff" wrote:

Hi!

Take a look at this screencap:

http://img526.imageshack.us/img526/1241/sump0mi.jpg

If you're getting a result of 3 based on your example then the "blank" cell
is not blank. Is there a formula in the second column? There may be unseen
characters like spaces.

As you can see in the screencap the formula does return the correct result.

Biff

"UT" wrote in message
...
Hi Biff,

The function dosent work. It counts the number of entries in Column A . So
it gives me count of 3 in the example below. But it should actually show
the
count of 2 since there are only two entries that match "ANTH 328". Any
other
guesses?

"Biff" wrote:

Hi!

Try this:

=SUMPRODUCT(--(A1:A20="ANTH 328"),--(B1:B20<""))

Biff

"UT" wrote in message
...
I need to count non blank cells that match a condition.

For example i want to count number of entries in Column "B" for "ANTH
328"
course.

A B
ANTH 328 PC
ANTH 328
ANTH 328 PC

I have tried DCOUNTA and combination of functions. Nothing is working.
Help
will be greatly appreciated.








  #6   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default count non blank cells with criteria

You're welcome. Thanks for the feedback!

Biff

"UT" wrote in message
...
Hi Biff,

The formula worked. Thanks a lot.

"Biff" wrote:

Hi!

Take a look at this screencap:

http://img526.imageshack.us/img526/1241/sump0mi.jpg

If you're getting a result of 3 based on your example then the "blank"
cell
is not blank. Is there a formula in the second column? There may be
unseen
characters like spaces.

As you can see in the screencap the formula does return the correct
result.

Biff

"UT" wrote in message
...
Hi Biff,

The function dosent work. It counts the number of entries in Column A .
So
it gives me count of 3 in the example below. But it should actually
show
the
count of 2 since there are only two entries that match "ANTH 328". Any
other
guesses?

"Biff" wrote:

Hi!

Try this:

=SUMPRODUCT(--(A1:A20="ANTH 328"),--(B1:B20<""))

Biff

"UT" wrote in message
...
I need to count non blank cells that match a condition.

For example i want to count number of entries in Column "B" for
"ANTH
328"
course.

A B
ANTH 328 PC
ANTH 328
ANTH 328 PC

I have tried DCOUNTA and combination of functions. Nothing is
working.
Help
will be greatly appreciated.








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
Generating truly blank cells Nat Excel Worksheet Functions 4 September 30th 05 11:39 PM
enter numbers in blank cells bill gras Excel Worksheet Functions 2 September 21st 05 01:17 PM
formula to count cells not blanK pmarques Excel Worksheet Functions 4 August 3rd 05 01:44 PM
Blank Cells in Pivot Tables Greg Excel Discussion (Misc queries) 1 March 16th 05 09:23 PM
SUMPRODUCT Formula to Count Row of data Below Matched Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 February 3rd 05 01:37 AM


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