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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Subtotal



 
 
Thread Tools Display Modes
  #1  
Old June 30th, 2004, 07:21 PM
George Gee
external usenet poster
 
Posts: n/a
Default Subtotal

Hi all.

I have formula in A2 =SUBTOTAL(3,A4:A2963)
this counts the number of visible records, (after using Autofilter),
that contain text (ignores blank cells), this works OK.

Problem:

Formula does *not* ignore blank cells, if those cells contain formulae.
Is there a workaround?

Many thanks

George Gee


  #2  
Old June 30th, 2004, 08:18 PM
Peo Sjoblom
external usenet poster
 
Posts: n/a
Default Subtotal

Try

=SUMPRODUCT(--($A$4:$A$2963""),SUBTOTAL(3,OFFSET($A$4,ROW($A$4 :$A$2963)-MI
N(ROW($A$4:$A$2963)),,)))

--

Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)


"George Gee" wrote in message
...
Hi all.

I have formula in A2 =SUBTOTAL(3,A4:A2963)
this counts the number of visible records, (after using Autofilter),
that contain text (ignores blank cells), this works OK.

Problem:

Formula does *not* ignore blank cells, if those cells contain formulae.
Is there a workaround?

Many thanks

George Gee




  #3  
Old June 30th, 2004, 09:14 PM
George Gee
external usenet poster
 
Posts: n/a
Default Subtotal

Peo

Thanks for the response.
However, A2 returns 0

Regards

George Gee


*Peo Sjoblom* has posted this message:

Try


=SUMPRODUCT(--($A$4:$A$2963""),SUBTOTAL(3,OFFSET($A$4,ROW($A$4 :$A$2963)-MI
N(ROW($A$4:$A$2963)),,)))

--

Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)


"George Gee" wrote in message
...
Hi all.

I have formula in A2 =SUBTOTAL(3,A4:A2963)
this counts the number of visible records, (after using Autofilter),
that contain text (ignores blank cells), this works OK.

Problem:

Formula does *not* ignore blank cells, if those cells contain
formulae. Is there a workaround?

Many thanks

George Gee



  #4  
Old June 30th, 2004, 11:18 PM
CLR
external usenet poster
 
Posts: n/a
Default Subtotal

Hi George............

How about

=SUBTOTAL(2,A4:A2963)


Vaya con Dios,
Chuck, CABGx3


"George Gee" wrote in message
...
Hi all.

I have formula in A2 =SUBTOTAL(3,A4:A2963)
this counts the number of visible records, (after using Autofilter),
that contain text (ignores blank cells), this works OK.

Problem:

Formula does *not* ignore blank cells, if those cells contain formulae.
Is there a workaround?

Many thanks

George Gee




  #5  
Old July 1st, 2004, 01:10 AM
Peo Sjoblom
external usenet poster
 
Posts: n/a
Default Subtotal

I don't understand what you mean by that? My formula will count the filtered
list and disregard any blank cells created by formulas

--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"George Gee" wrote in message
...
Peo

Thanks for the response.
However, A2 returns 0

Regards

George Gee


*Peo Sjoblom* has posted this message:

Try



=SUMPRODUCT(--($A$4:$A$2963""),SUBTOTAL(3,OFFSET($A$4,ROW($A$4 :$A$2963)-MI
N(ROW($A$4:$A$2963)),,)))

--

Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)


"George Gee" wrote in message
...
Hi all.

I have formula in A2 =SUBTOTAL(3,A4:A2963)
this counts the number of visible records, (after using Autofilter),
that contain text (ignores blank cells), this works OK.

Problem:

Formula does *not* ignore blank cells, if those cells contain
formulae. Is there a workaround?

Many thanks

George Gee





  #6  
Old July 1st, 2004, 07:14 PM
George Gee
external usenet poster
 
Posts: n/a
Default Subtotal

Peo

My mistake!
The formula is perfect.

On this particular worksheet, row and column headers are
set so that they do not show.
And column A is hidden, so I unwittingly pasted the formula into B2.
As there is no data in column A, cell B2 always returned '0'

Appologies if I have caused you a sleepless night! g

Many thanks for your time and trouble.

George Gee



*Peo Sjoblom* has posted this message:

I don't understand what you mean by that? My formula will count the
filtered list and disregard any blank cells created by formulas

--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"George Gee" wrote in message
...
Peo

Thanks for the response.
However, A2 returns 0

Regards

George Gee


*Peo Sjoblom* has posted this message:

Try




=SUMPRODUCT(--($A$4:$A$2963""),SUBTOTAL(3,OFFSET($A$4,ROW($A$4 :$A$2963)-MI
N(ROW($A$4:$A$2963)),,)))

--

Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)


"George Gee" wrote in message
...
Hi all.

I have formula in A2 =SUBTOTAL(3,A4:A2963)
this counts the number of visible records, (after using
Autofilter), that contain text (ignores blank cells), this works
OK.

Problem:

Formula does *not* ignore blank cells, if those cells contain
formulae. Is there a workaround?

Many thanks

George Gee



  #7  
Old July 2nd, 2004, 02:34 AM
Peo Sjoblom
external usenet poster
 
Posts: n/a
Default Subtotal

Phew!

Thanks for the feedback, you are one of those rare polite people g

--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"George Gee" wrote in message
...
Peo

My mistake!
The formula is perfect.

On this particular worksheet, row and column headers are
set so that they do not show.
And column A is hidden, so I unwittingly pasted the formula into B2.
As there is no data in column A, cell B2 always returned '0'

Appologies if I have caused you a sleepless night! g

Many thanks for your time and trouble.

George Gee



*Peo Sjoblom* has posted this message:

I don't understand what you mean by that? My formula will count the
filtered list and disregard any blank cells created by formulas

--
Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)



"George Gee" wrote in message
...
Peo

Thanks for the response.
However, A2 returns 0

Regards

George Gee


*Peo Sjoblom* has posted this message:

Try





=SUMPRODUCT(--($A$4:$A$2963""),SUBTOTAL(3,OFFSET($A$4,ROW($A$4 :$A$2963)-MI
N(ROW($A$4:$A$2963)),,)))

--

Regards,

Peo Sjoblom

(No private emails please, for everyone's
benefit keep the discussion in the newsgroup/forum)


"George Gee" wrote in message
...
Hi all.

I have formula in A2 =SUBTOTAL(3,A4:A2963)
this counts the number of visible records, (after using
Autofilter), that contain text (ignores blank cells), this works
OK.

Problem:

Formula does *not* ignore blank cells, if those cells contain
formulae. Is there a workaround?

Many thanks

George Gee






 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Subtotal Function Cynthia Worksheet Functions 3 June 15th, 2004 02:06 AM
Bug in Excel 2003 Subtotal Function Clint Erickson Worksheet Functions 2 May 28th, 2004 06:52 PM
SUBTOTAL Don Niall Worksheet Functions 2 February 2nd, 2004 06:22 PM
Count subtotal lines Debbie Worksheet Functions 4 October 16th, 2003 12:09 AM
Excel Subtotal Yields Blank Results Mark Worksheet Functions 0 October 8th, 2003 03:49 AM


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