Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default counting non-blanks

On the topic of counting non-blanks in a column, while NOT counting cells that look blank but actually have a formula in them:

Thought I'd provide more breadcrumbs for future solvers of this problem:

COUNTIF(Range, "?")

worked great for me. Brilliant idea. I had tried 0 to no avail, so it never occurred to me to try something else.

I was even able to use the entire column reference as a range (E:E), except then it counted the column heading as well (obviously not blank), so my working formula became

COUNTIF(Range, "?")-1




EggHeadCafe - .NET Developer Portal of Choice
http://www.eggheadcafe.com/default.aspx?ref=ng
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,346
Default counting non-blanks

Hi

That did not work for me, it just returned 0 when the column contained 6
numbers and one formula which returned "". This was true in 2003 and 2007.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"DJK Moore" wrote:

On the topic of counting non-blanks in a column, while NOT counting cells that look blank but actually have a formula in them:

Thought I'd provide more breadcrumbs for future solvers of this problem:

COUNTIF(Range, "?")

worked great for me. Brilliant idea. I had tried 0 to no avail, so it never occurred to me to try something else.

I was even able to use the entire column reference as a range (E:E), except then it counted the column heading as well (obviously not blank), so my working formula became

COUNTIF(Range, "?")-1




EggHeadCafe - .NET Developer Portal of Choice
http://www.eggheadcafe.com/default.aspx?ref=ng

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,346
Default counting non-blanks

Hi,

The following formula works for me

=SUMPRODUCT(--(LEN(A1:A9)0))

However, you need to consider: if the cell that looks blank contains a
spacebar or is a formula that evalutes to a space it is counted eventhough it
is not visable.
=IF(A1=3," ",25)

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"DJK Moore" wrote:

On the topic of counting non-blanks in a column, while NOT counting cells that look blank but actually have a formula in them:

Thought I'd provide more breadcrumbs for future solvers of this problem:

COUNTIF(Range, "?")

worked great for me. Brilliant idea. I had tried 0 to no avail, so it never occurred to me to try something else.

I was even able to use the entire column reference as a range (E:E), except then it counted the column heading as well (obviously not blank), so my working formula became

COUNTIF(Range, "?")-1




EggHeadCafe - .NET Developer Portal of Choice
http://www.eggheadcafe.com/default.aspx?ref=ng

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 Blanks with Conditions Ken Excel Discussion (Misc queries) 4 April 30th 08 02:25 AM
Counting non blanks with SUMPRODUCT? Mifty Excel Discussion (Misc queries) 4 February 7th 08 01:00 PM
counting blanks Paul Excel Worksheet Functions 1 December 10th 06 02:14 AM
Counting blanks, either 1, 2 or 3 Steve Excel Worksheet Functions 5 January 14th 06 02:18 AM
Counting Blanks T De Villiers Excel Worksheet Functions 2 August 23rd 05 02:34 PM


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