A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Not Counting cells that have a formula with ""



 
 
Thread Tools Display Modes
  #1  
Old April 22nd, 2009, 09:50 PM posted to microsoft.public.excel.worksheet.functions
Steve
external usenet poster
 
Posts: 2,662
Default Not Counting cells that have a formula with ""

I have a column of cells with a formulas that have
=If(c4 0, "test", ""). This is the simple form, as there is a few if and
countifs that can produce differnt results, like test, testing, testicle.
How can I count only the cells that have someting in them, basically the
blank cells.

Thanks,

Steve
  #2  
Old April 22nd, 2009, 09:58 PM posted to microsoft.public.excel.worksheet.functions
Steve
external usenet poster
 
Posts: 2,662
Default Not Counting cells that have a formula with ""

That should be "... basically NOT the blank cells."

"Steve" wrote:

I have a column of cells with a formulas that have
=If(c4 0, "test", ""). This is the simple form, as there is a few if and
countifs that can produce differnt results, like test, testing, testicle.
How can I count only the cells that have someting in them, basically NOT the
blank cells.

Thanks,

Steve

  #3  
Old April 22nd, 2009, 10:01 PM posted to microsoft.public.excel.worksheet.functions
Bob Umlas[_3_]
external usenet poster
 
Posts: 197
Default Not Counting cells that have a formula with ""

=SUMPRODUCT(N(LEN(A1:A100)0))

Bob Umlas
Excel MVP
("Steve" wrote in message
...
I have a column of cells with a formulas that have
=If(c4 0, "test", ""). This is the simple form, as there is a few if and
countifs that can produce differnt results, like test, testing, testicle.
How can I count only the cells that have someting in them, basically the
blank cells.

Thanks,

Steve



  #4  
Old April 22nd, 2009, 10:07 PM posted to microsoft.public.excel.worksheet.functions
Harlan Grove[_2_]
external usenet poster
 
Posts: 1,439
Default Not Counting cells that have a formula with ""

Steve wrote...
I have a column of cells with a formulas that have
=If(c4 0, "test", ""). This is the simple form, as there is a few if and
countifs that can produce differnt results, like test, testing, testicle.
How can I count only the cells that have someting in them, basically the
blank cells.


The 'blank' cells? Do you mean the NONblank cells?

=COUNTIF(range,"?*")

to count only text strings, or

=COUNTIF(range,"?*")+COUNT(range)

to count nonblank text strings and numbers, or

=ROWS(range)*COLUMNS(range)-COUNTBLANK(range)

to count nonblank cells evaluating to anything other than "".
  #5  
Old April 22nd, 2009, 10:08 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Not Counting cells that have a formula with ""

This will count all *TEXT* entries in the range and will *exclude* cells
that contain formula blanks:

=COUNTIF(B:B,"?*")

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
I have a column of cells with a formulas that have
=If(c4 0, "test", ""). This is the simple form, as there is a few if and
countifs that can produce differnt results, like test, testing, testicle.
How can I count only the cells that have someting in them, basically the
blank cells.

Thanks,

Steve



  #6  
Old April 22nd, 2009, 10:15 PM posted to microsoft.public.excel.worksheet.functions
Steve
external usenet poster
 
Posts: 2,662
Default Not Counting cells that have a formula with ""

Wow ! That was fast, and it worked great.
One mo same situation in a differnt range, with formulas in the cells,
producing either test, or various other text. How do I count the # of cells
that do not have test in them ?

Thanks agai,

Steve

"Bob Umlas" wrote:

=SUMPRODUCT(N(LEN(A1:A100)0))

Bob Umlas
Excel MVP
("Steve" wrote in message
...
I have a column of cells with a formulas that have
=If(c4 0, "test", ""). This is the simple form, as there is a few if and
countifs that can produce differnt results, like test, testing, testicle.
How can I count only the cells that have someting in them, basically the
blank cells.

Thanks,

Steve




  #7  
Old April 22nd, 2009, 10:26 PM posted to microsoft.public.excel.worksheet.functions
Steve
external usenet poster
 
Posts: 2,662
Default Not Counting cells that have a formula with ""

Yes, I did mean non-blank. And each of your solutions work great.

Much thanks,

Steve

"Harlan Grove" wrote:

Steve wrote...
I have a column of cells with a formulas that have
=If(c4 0, "test", ""). This is the simple form, as there is a few if and
countifs that can produce differnt results, like test, testing, testicle.
How can I count only the cells that have someting in them, basically the
blank cells.


The 'blank' cells? Do you mean the NONblank cells?

=COUNTIF(range,"?*")

to count only text strings, or

=COUNTIF(range,"?*")+COUNT(range)

to count nonblank text strings and numbers, or

=ROWS(range)*COLUMNS(range)-COUNTBLANK(range)

to count nonblank cells evaluating to anything other than "".

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.