Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default counting only results in a column of formulas

Hello, I have Windows XP Pro and Excel 2007.
I have three columns with 20 lines each. Each has a formula that is looking
to a value in another worksheet. When the other worksheet doesn't have an
entry, neither does my sheet, but the formula is still present.

When I try to get a count of the results of the link it counts both the link
and the formula so I always get 20 for the counta().
Can anyone help with a function to count only the result of the formula for
a true accounting of the actual fields with data in them.

Thank You
BobR


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default counting only results in a column of formulas

=COUNTA(range)-COUNTBLANK(range)


Gord Dibben MS Excel MVP

On Sun, 27 Apr 2008 23:01:26 -0400, "LaborGuyRJ" wrote:

Hello, I have Windows XP Pro and Excel 2007.
I have three columns with 20 lines each. Each has a formula that is looking
to a value in another worksheet. When the other worksheet doesn't have an
entry, neither does my sheet, but the formula is still present.

When I try to get a count of the results of the link it counts both the link
and the formula so I always get 20 for the counta().
Can anyone help with a function to count only the result of the formula for
a true accounting of the actual fields with data in them.

Thank You
BobR


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default counting only results in a column of formulas

Thanks for responding. Unfortunately when I use the Countblank(range) it
shows no cells are blank. I'm afraid that it's counting the forumlas too? Or
am I doing something wrong, copied your formula exactly.
Thanks Bob


"Gord Dibben" <gorddibbATshawDOTca wrote in message
...
=COUNTA(range)-COUNTBLANK(range)


Gord Dibben MS Excel MVP

On Sun, 27 Apr 2008 23:01:26 -0400, "LaborGuyRJ"
wrote:

Hello, I have Windows XP Pro and Excel 2007.
I have three columns with 20 lines each. Each has a formula that is
looking
to a value in another worksheet. When the other worksheet doesn't have an
entry, neither does my sheet, but the formula is still present.

When I try to get a count of the results of the link it counts both the
link
and the formula so I always get 20 for the counta().
Can anyone help with a function to count only the result of the formula
for
a true accounting of the actual fields with data in them.

Thank You
BobR




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default counting only results in a column of formulas

If you had a formula like =IF(Sheet1!A1="","",Sheet1!A1) and A1 was blank, the
formula would return "" and countblank would find it.

From your original description, I thought that was what you had.

I guess I was thrown off by

When the other worksheet doesn't have an
entry, neither does my sheet, but the formula is still present.



Gord

On Sun, 27 Apr 2008 23:33:07 -0400, "LaborGuyRJ" wrote:

Thanks for responding. Unfortunately when I use the Countblank(range) it
shows no cells are blank. I'm afraid that it's counting the forumlas too? Or
am I doing something wrong, copied your formula exactly.
Thanks Bob


"Gord Dibben" <gorddibbATshawDOTca wrote in message
.. .
=COUNTA(range)-COUNTBLANK(range)


Gord Dibben MS Excel MVP

On Sun, 27 Apr 2008 23:01:26 -0400, "LaborGuyRJ"
wrote:

Hello, I have Windows XP Pro and Excel 2007.
I have three columns with 20 lines each. Each has a formula that is
looking
to a value in another worksheet. When the other worksheet doesn't have an
entry, neither does my sheet, but the formula is still present.

When I try to get a count of the results of the link it counts both the
link
and the formula so I always get 20 for the counta().
Can anyone help with a function to count only the result of the formula
for
a true accounting of the actual fields with data in them.

Thank You
BobR




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default counting only results in a column of formulas

maybe something like this, depending on what your cell values are.

=COUNTIF(D6:D10,"0")

--


Gary


"LaborGuyRJ" wrote in message
.. .
Hello, I have Windows XP Pro and Excel 2007.
I have three columns with 20 lines each. Each has a formula that is looking to
a value in another worksheet. When the other worksheet doesn't have an entry,
neither does my sheet, but the formula is still present.

When I try to get a count of the results of the link it counts both the link
and the formula so I always get 20 for the counta().
Can anyone help with a function to count only the result of the formula for a
true accounting of the actual fields with data in them.

Thank You
BobR





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default counting only results in a column of formulas

My thanks to all.
Gary that was the magic cookie. It's now registering what I need. I have
dates in the values and this formula is exact.
Thanks to all
Bob


"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
maybe something like this, depending on what your cell values are.

=COUNTIF(D6:D10,"0")

--


Gary


"LaborGuyRJ" wrote in message
.. .
Hello, I have Windows XP Pro and Excel 2007.
I have three columns with 20 lines each. Each has a formula that is
looking to a value in another worksheet. When the other worksheet doesn't
have an entry, neither does my sheet, but the formula is still present.

When I try to get a count of the results of the link it counts both the
link and the formula so I always get 20 for the counta().
Can anyone help with a function to count only the result of the formula
for a true accounting of the actual fields with data in them.

Thank You
BobR





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 results of a formula Nadine Excel Worksheet Functions 10 May 5th 10 07:37 AM
Counting Results of Formulas jgupte Excel Worksheet Functions 1 April 30th 10 12:15 AM
E2007 formulas display as formulas, not results Pierre Excel Worksheet Functions 3 January 14th 10 04:59 PM
Counting # of Formulas in a column with formulas and entered data Brand Excel Worksheet Functions 1 October 10th 09 01:01 PM
Counting cells containing formulas with blank results Joe M. Excel Discussion (Misc queries) 3 January 31st 08 08:35 PM


All times are GMT +1. The time now is 05:06 PM.

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"