#1   Report Post  
Brian
 
Posts: n/a
Default count function

in cell a20 i want to count the range a1:a19 when there is data in the cell.
I am using the =count(a1:19) and it returns 19 everytime regardless if the
cell has data in or not. Cells a1:a19 do have a formula that indicates to
return the contents of another cell. Realizing this I tried to do a len
formula and I wrote it like this:
=count(len1,a1:a19). I then tried a whole host of other combinations of
different formulas but of course none of them worked simply because I do not
really know how to put a formula together. Can someone help me with this
formula?
Thank You
Brian
PS, barring computer courses in excel, where can I get comprehensive
information on how to create and put formulas together. I want to know what
things like the * does or why placement of Parenthesis are important, what is
the -- that I see alot. Excel does describe each formula but nowhere does it
explain the little details I mentioned above?

  #2   Report Post  
Ev
 
Posts: n/a
Default

Try COUNTA()

"Brian" wrote in message
...
in cell a20 i want to count the range a1:a19 when there is data in the
cell.
I am using the =count(a1:19) and it returns 19 everytime regardless if the
cell has data in or not. Cells a1:a19 do have a formula that indicates to
return the contents of another cell. Realizing this I tried to do a len
formula and I wrote it like this:
=count(len1,a1:a19). I then tried a whole host of other combinations of
different formulas but of course none of them worked simply because I do
not
really know how to put a formula together. Can someone help me with this
formula?
Thank You
Brian
PS, barring computer courses in excel, where can I get comprehensive
information on how to create and put formulas together. I want to know
what
things like the * does or why placement of Parenthesis are important, what
is
the -- that I see alot. Excel does describe each formula but nowhere does
it
explain the little details I mentioned above?



  #3   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
try
=SUMPRODUCT(--(A1:A19<""))

--
Regards
Frank Kabel
Frankfurt, Germany
"Brian" schrieb im Newsbeitrag
...
in cell a20 i want to count the range a1:a19 when there is data in the
cell.
I am using the =count(a1:19) and it returns 19 everytime regardless if the
cell has data in or not. Cells a1:a19 do have a formula that indicates to
return the contents of another cell. Realizing this I tried to do a len
formula and I wrote it like this:
=count(len1,a1:a19). I then tried a whole host of other combinations of
different formulas but of course none of them worked simply because I do
not
really know how to put a formula together. Can someone help me with this
formula?
Thank You
Brian
PS, barring computer courses in excel, where can I get comprehensive
information on how to create and put formulas together. I want to know
what
things like the * does or why placement of Parenthesis are important, what
is
the -- that I see alot. Excel does describe each formula but nowhere does
it
explain the little details I mentioned above?



  #4   Report Post  
Skip Bisconer
 
Posts: n/a
Default

Use the Counta function

I found this by typing count in the help search bar.

Try these sites
http://www.cpearson.com/excel/topic.htm
http://www.mrexcel.com/board2/
http://office.microsoft.com/en-us/as...e/default.aspx

Good hunting

SKip Bisconer

"Brian" wrote:

in cell a20 i want to count the range a1:a19 when there is data in the cell.
I am using the =count(a1:19) and it returns 19 everytime regardless if the
cell has data in or not. Cells a1:a19 do have a formula that indicates to
return the contents of another cell. Realizing this I tried to do a len
formula and I wrote it like this:
=count(len1,a1:a19). I then tried a whole host of other combinations of
different formulas but of course none of them worked simply because I do not
really know how to put a formula together. Can someone help me with this
formula?
Thank You
Brian
PS, barring computer courses in excel, where can I get comprehensive
information on how to create and put formulas together. I want to know what
things like the * does or why placement of Parenthesis are important, what is
the -- that I see alot. Excel does describe each formula but nowhere does it
explain the little details I mentioned above?

  #5   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

One way

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

assuming that your blank result of the formula is "" and not " "

Regards

Peo Sjoblom

"Brian" wrote:

in cell a20 i want to count the range a1:a19 when there is data in the cell.
I am using the =count(a1:19) and it returns 19 everytime regardless if the
cell has data in or not. Cells a1:a19 do have a formula that indicates to
return the contents of another cell. Realizing this I tried to do a len
formula and I wrote it like this:
=count(len1,a1:a19). I then tried a whole host of other combinations of
different formulas but of course none of them worked simply because I do not
really know how to put a formula together. Can someone help me with this
formula?
Thank You
Brian
PS, barring computer courses in excel, where can I get comprehensive
information on how to create and put formulas together. I want to know what
things like the * does or why placement of Parenthesis are important, what is
the -- that I see alot. Excel does describe each formula but nowhere does it
explain the little details I mentioned above?



  #6   Report Post  
Brian
 
Posts: n/a
Default

Hi
Thank You.
Could you translate this formula in regular talk so that I can understand
how it works?
What is this syntax saying if it can be said in words? What is the -- and <
"" saying and what is the improtance of the placement of the ()?
Thanks.

=SUMPRODUCT(--(A1:A19<""))

"Frank Kabel" wrote:

Hi
try


--
Regards
Frank Kabel
Frankfurt, Germany
"Brian" schrieb im Newsbeitrag
...
in cell a20 i want to count the range a1:a19 when there is data in the
cell.
I am using the =count(a1:19) and it returns 19 everytime regardless if the
cell has data in or not. Cells a1:a19 do have a formula that indicates to
return the contents of another cell. Realizing this I tried to do a len
formula and I wrote it like this:
=count(len1,a1:a19). I then tried a whole host of other combinations of
different formulas but of course none of them worked simply because I do
not
really know how to put a formula together. Can someone help me with this
formula?
Thank You
Brian
PS, barring computer courses in excel, where can I get comprehensive
information on how to create and put formulas together. I want to know
what
things like the * does or why placement of Parenthesis are important, what
is
the -- that I see alot. Excel does describe each formula but nowhere does
it
explain the little details I mentioned above?




  #7   Report Post  
Chip Pearson
 
Posts: n/a
Default

The formula tests each cell in A1:A19 to not equal (<) to an
empty string (""). This results in an array of values, each
either TRUE or FALSE, each element the result of the respective
comparison operation. For example, the array might be {TRUE,
FALSE, ..., TRUE}. The double negative (--) forces the TRUE
values to a numeric value of 1 and the FALSE values to a numeric
value of 0. Finally, SUMPRODUCT adds up the 1s and 0s.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Brian" wrote in message
...
Hi
Thank You.
Could you translate this formula in regular talk so that I can
understand
how it works?
What is this syntax saying if it can be said in words? What is
the -- and <
"" saying and what is the improtance of the placement of the
()?
Thanks.

=SUMPRODUCT(--(A1:A19<""))

"Frank Kabel" wrote:

Hi
try


--
Regards
Frank Kabel
Frankfurt, Germany
"Brian" schrieb im
Newsbeitrag
...
in cell a20 i want to count the range a1:a19 when there is
data in the
cell.
I am using the =count(a1:19) and it returns 19 everytime
regardless if the
cell has data in or not. Cells a1:a19 do have a formula
that indicates to
return the contents of another cell. Realizing this I tried
to do a len
formula and I wrote it like this:
=count(len1,a1:a19). I then tried a whole host of other
combinations of
different formulas but of course none of them worked simply
because I do
not
really know how to put a formula together. Can someone help
me with this
formula?
Thank You
Brian
PS, barring computer courses in excel, where can I get
comprehensive
information on how to create and put formulas together. I
want to know
what
things like the * does or why placement of Parenthesis are
important, what
is
the -- that I see alot. Excel does describe each formula but
nowhere does
it
explain the little details I mentioned above?






  #8   Report Post  
Brian
 
Posts: n/a
Default

Thank You,
=SUMPRODUCT(--(A1:A19<""))

I tired this formula but it still counts the blank cells for a total of 19,
I am looking to only count the cells that returned data. A1:A19 has the
relative formula =b1. so if nothing is returned in one of the A cells, that
cell should not be counted

Can you help me?
Thank you,
Brian

"Chip Pearson" wrote:

The formula tests each cell in A1:A19 to not equal (<) to an
empty string (""). This results in an array of values, each
either TRUE or FALSE, each element the result of the respective
comparison operation. For example, the array might be {TRUE,
FALSE, ..., TRUE}. The double negative (--) forces the TRUE
values to a numeric value of 1 and the FALSE values to a numeric
value of 0. Finally, SUMPRODUCT adds up the 1s and 0s.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Brian" wrote in message
...
Hi
Thank You.
Could you translate this formula in regular talk so that I can
understand
how it works?
What is this syntax saying if it can be said in words? What is
the -- and <
"" saying and what is the improtance of the placement of the
()?
Thanks.

=SUMPRODUCT(--(A1:A19<""))

"Frank Kabel" wrote:

Hi
try


--
Regards
Frank Kabel
Frankfurt, Germany
"Brian" schrieb im
Newsbeitrag
...
in cell a20 i want to count the range a1:a19 when there is
data in the
cell.
I am using the =count(a1:19) and it returns 19 everytime
regardless if the
cell has data in or not. Cells a1:a19 do have a formula
that indicates to
return the contents of another cell. Realizing this I tried
to do a len
formula and I wrote it like this:
=count(len1,a1:a19). I then tried a whole host of other
combinations of
different formulas but of course none of them worked simply
because I do
not
really know how to put a formula together. Can someone help
me with this
formula?
Thank You
Brian
PS, barring computer courses in excel, where can I get
comprehensive
information on how to create and put formulas together. I
want to know
what
things like the * does or why placement of Parenthesis are
important, what
is
the -- that I see alot. Excel does describe each formula but
nowhere does
it
explain the little details I mentioned above?







  #9   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
but in this case I'd guess you see a zero in these cells. Change your
formula to
=IF(B1="","",B1)
and the SUMPRODUCT formula should work

--
Regards
Frank Kabel
Frankfurt, Germany
"Brian" schrieb im Newsbeitrag
...
Thank You,
=SUMPRODUCT(--(A1:A19<""))

I tired this formula but it still counts the blank cells for a total of
19,
I am looking to only count the cells that returned data. A1:A19 has the
relative formula =b1. so if nothing is returned in one of the A cells,
that
cell should not be counted

Can you help me?
Thank you,
Brian

"Chip Pearson" wrote:

The formula tests each cell in A1:A19 to not equal (<) to an
empty string (""). This results in an array of values, each
either TRUE or FALSE, each element the result of the respective
comparison operation. For example, the array might be {TRUE,
FALSE, ..., TRUE}. The double negative (--) forces the TRUE
values to a numeric value of 1 and the FALSE values to a numeric
value of 0. Finally, SUMPRODUCT adds up the 1s and 0s.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Brian" wrote in message
...
Hi
Thank You.
Could you translate this formula in regular talk so that I can
understand
how it works?
What is this syntax saying if it can be said in words? What is
the -- and <
"" saying and what is the improtance of the placement of the
()?
Thanks.

=SUMPRODUCT(--(A1:A19<""))

"Frank Kabel" wrote:

Hi
try


--
Regards
Frank Kabel
Frankfurt, Germany
"Brian" schrieb im
Newsbeitrag
...
in cell a20 i want to count the range a1:a19 when there is
data in the
cell.
I am using the =count(a1:19) and it returns 19 everytime
regardless if the
cell has data in or not. Cells a1:a19 do have a formula
that indicates to
return the contents of another cell. Realizing this I tried
to do a len
formula and I wrote it like this:
=count(len1,a1:a19). I then tried a whole host of other
combinations of
different formulas but of course none of them worked simply
because I do
not
really know how to put a formula together. Can someone help
me with this
formula?
Thank You
Brian
PS, barring computer courses in excel, where can I get
comprehensive
information on how to create and put formulas together. I
want to know
what
things like the * does or why placement of Parenthesis are
important, what
is
the -- that I see alot. Excel does describe each formula but
nowhere does
it
explain the little details I mentioned above?









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
Whats the function to count the total times a word is displayed Monk Excel Discussion (Misc queries) 3 December 10th 04 10:39 PM
count function ChrisC Excel Worksheet Functions 5 November 9th 04 01:40 AM
How can I use count function in excel where I have several criter. Princess V Excel Worksheet Functions 14 November 3rd 04 10:18 PM
Sum and Count Function Daniell Excel Worksheet Functions 0 November 2nd 04 12:03 AM
how do I make a function to count days? khamsta Excel Worksheet Functions 2 November 1st 04 10:53 PM


All times are GMT +1. The time now is 11:52 PM.

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"