Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Steve Jackson
 
Posts: n/a
Default COUNTA for a cell with a formula

I have tried setting a COUNTA formula on an array. The cells in the array
all have a similar formula in each one and will contain text if a specific
condition is met in another set of cells. The problem I am getting is that
when I put in the formula =COUNTA(A1,B1,C1), I get the result of all of them
not being empty. Is this because all those cells contain formulas, even if
text is there or not. If so, is there a similar function to COUNTA that will
count cells and not take into account that a formula is already in the cell?

Any help will be appreciated.

Steve


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default COUNTA for a cell with a formula

What is it that you want to count, text or numbers?

if text but not cells with formulas that return blank ""

=SUMPRODUCT(--(ISTEXT(A1:A10)),--(LEN(A1:A10)0))

if numbers

=COUNT(A1:A10)

if both numbers and text but not blanks from formulas

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


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com



"Steve Jackson" wrote in message
o.uk...
I have tried setting a COUNTA formula on an array. The cells in the array
all have a similar formula in each one and will contain text if a specific
condition is met in another set of cells. The problem I am getting is that
when I put in the formula =COUNTA(A1,B1,C1), I get the result of all of
them not being empty. Is this because all those cells contain formulas,
even if text is there or not. If so, is there a similar function to COUNTA
that will count cells and not take into account that a formula is already
in the cell?

Any help will be appreciated.

Steve



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ashish Mathur
 
Posts: n/a
Default COUNTA for a cell with a formula

Hi,

Try counta(a1,b1,c1)-countblank(a1,b1,c1)

Regards,

Ashish Mathur

"Steve Jackson" wrote:

I have tried setting a COUNTA formula on an array. The cells in the array
all have a similar formula in each one and will contain text if a specific
condition is met in another set of cells. The problem I am getting is that
when I put in the formula =COUNTA(A1,B1,C1), I get the result of all of them
not being empty. Is this because all those cells contain formulas, even if
text is there or not. If so, is there a similar function to COUNTA that will
count cells and not take into account that a formula is already in the cell?

Any help will be appreciated.

Steve



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default COUNTA for a cell with a formula

countblank takes only a range but since A1,B1,C1 can be used as A1:C1 then
maybe

=COUNTA(A1:C1)-COUNTBLANK(A1:C1)

but that won't work if there is a truly blank cell


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com


"Ashish Mathur" wrote in message
...
Hi,

Try counta(a1,b1,c1)-countblank(a1,b1,c1)

Regards,

Ashish Mathur

"Steve Jackson" wrote:

I have tried setting a COUNTA formula on an array. The cells in the array
all have a similar formula in each one and will contain text if a
specific
condition is met in another set of cells. The problem I am getting is
that
when I put in the formula =COUNTA(A1,B1,C1), I get the result of all of
them
not being empty. Is this because all those cells contain formulas, even
if
text is there or not. If so, is there a similar function to COUNTA that
will
count cells and not take into account that a formula is already in the
cell?

Any help will be appreciated.

Steve





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Domenic
 
Posts: n/a
Default COUNTA for a cell with a formula

Try...

=COUNTIF(A1:C1,"?*")

Hope this helps!

In article ,
"Steve Jackson" wrote:

I have tried setting a COUNTA formula on an array. The cells in the array
all have a similar formula in each one and will contain text if a specific
condition is met in another set of cells. The problem I am getting is that
when I put in the formula =COUNTA(A1,B1,C1), I get the result of all of them
not being empty. Is this because all those cells contain formulas, even if
text is there or not. If so, is there a similar function to COUNTA that will
count cells and not take into account that a formula is already in the cell?

Any help will be appreciated.

Steve



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Steve Jackson
 
Posts: n/a
Default COUNTA for a cell with a formula

Thanks for all your help. The data I have is a selection of cells and not a
direct array so I had to go for:

=COUNTA(A1,E1,G1)-COUNTBLANK(A1)-COUNTBLANK(E1)-COUNTBLANK(G1)

Its not exactly pretty but it works because all cells A1,E1,G1 start off
blank (with just formulas in them) and as data is inputted in other cells,
cells A1, E1, G1 are automatically populated with specific data via their
formulas.


"Peo Sjoblom" wrote in message
...
countblank takes only a range but since A1,B1,C1 can be used as A1:C1 then
maybe

=COUNTA(A1:C1)-COUNTBLANK(A1:C1)

but that won't work if there is a truly blank cell


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com


"Ashish Mathur" wrote in message
...
Hi,

Try counta(a1,b1,c1)-countblank(a1,b1,c1)

Regards,

Ashish Mathur

"Steve Jackson" wrote:

I have tried setting a COUNTA formula on an array. The cells in the
array
all have a similar formula in each one and will contain text if a
specific
condition is met in another set of cells. The problem I am getting is
that
when I put in the formula =COUNTA(A1,B1,C1), I get the result of all of
them
not being empty. Is this because all those cells contain formulas, even
if
text is there or not. If so, is there a similar function to COUNTA that
will
count cells and not take into account that a formula is already in the
cell?

Any help will be appreciated.

Steve







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
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
Text in formula bar is not displaying in cell Mike Excel Discussion (Misc queries) 0 August 29th 05 09:47 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
looking for a formula Amanda Excel Worksheet Functions 5 January 5th 05 07:37 AM


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