Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
jimar
 
Posts: n/a
Default Subtotal counting formula in cells

I have a worksheet that is using the subtotal function. Some of the columns
contain formula. In the columns containing formula when no filter is
selected the subtotal counts the data and also the cells containing the
formula ie =subtotal(3,B2:B50) shows a subtotal of 49 yet there is only text
in 10 of the rows. Is there a way for the subtotal to count only those cells
containing data and to ignore the cells containing just the formula?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Domenic
 
Posts: n/a
Default Subtotal counting formula in cells

If you mean that the range of cells contains text values, including
formula blanks "", try...

=SUMPRODUCT(SUBTOTAL(3,OFFSET(B2:B50,ROW(B2:B50)-ROW(B2),0,1)),--(B2:B50<
""))


Hope this helps!

In article ,
jimar wrote:

I have a worksheet that is using the subtotal function. Some of the columns
contain formula. In the columns containing formula when no filter is
selected the subtotal counts the data and also the cells containing the
formula ie =subtotal(3,B2:B50) shows a subtotal of 49 yet there is only text
in 10 of the rows. Is there a way for the subtotal to count only those cells
containing data and to ignore the cells containing just the formula?

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
Formula for counting number of cells Pawan Excel Discussion (Misc queries) 2 February 22nd 06 05:20 AM
subtotal a range of cells on a different worksheet cheryl Excel Worksheet Functions 0 November 2nd 05 08:37 PM
Conditional formatting...cont. from 9/25 Guenzak Excel Discussion (Misc queries) 4 September 26th 05 10:55 PM
Formula for counting specific cells with value greater than 0 mmock Excel Discussion (Misc queries) 1 April 26th 05 03:39 AM
Formula for counting specific cells which are greater than 1 mmock Excel Discussion (Misc queries) 0 April 26th 05 03:03 AM


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