Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
George Gee
 
Posts: n/a
Default Subtotal function

Hi all.

I wish to use the SUBTOTAL function, to count the number of rows
when using 'Autofilter'

I have this formula: =SUBTOTAL(3,B5:B300)

The problem is that all cells in the range B5:B300 contain formulae,
and is giving the value 296.

Is there any way to edit the formula, to count only values,
in B5:B300?

The formula in B5 is: =IF('Tick sheet'!G5="","",'Tick sheet'!G5)
this is copied down to B300, so the values in B5:B300 are either
a blank cell or "a"

Is this clear?

Many thanks

George Gee
--


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

One way

=SUMPRODUCT(--($B$5:$B$300<""),--(SUBTOTAL(3,OFFSET($B$5,ROW($B$5:$B$300)-MIN(ROW($B$5:$B$300)),,))))


Regards,

Peo Sjoblom

"George Gee" wrote:

Hi all.

I wish to use the SUBTOTAL function, to count the number of rows
when using 'Autofilter'

I have this formula: =SUBTOTAL(3,B5:B300)

The problem is that all cells in the range B5:B300 contain formulae,
and is giving the value 296.

Is there any way to edit the formula, to count only values,
in B5:B300?

The formula in B5 is: =IF('Tick sheet'!G5="","",'Tick sheet'!G5)
this is copied down to B300, so the values in B5:B300 are either
a blank cell or "a"

Is this clear?

Many thanks

George Gee
--



  #3   Report Post  
George Gee
 
Posts: n/a
Default

Peo

Full marks to you!
For understanding what I wanted, and supplying the answer.
Many, many thanks!

George Gee

*Peo Sjoblom* has posted this message:

One way


=SUMPRODUCT(--($B$5:$B$300<""),--(SUBTOTAL(3,OFFSET($B$5,ROW($B$5:$B$300)-M
IN(ROW($B$5:$B$300)),,))))


Regards,

Peo Sjoblom

"George Gee" wrote:

Hi all.

I wish to use the SUBTOTAL function, to count the number of rows
when using 'Autofilter'

I have this formula: =SUBTOTAL(3,B5:B300)

The problem is that all cells in the range B5:B300 contain formulae,
and is giving the value 296.

Is there any way to edit the formula, to count only values,
in B5:B300?

The formula in B5 is: =IF('Tick sheet'!G5="","",'Tick sheet'!G5)
this is copied down to B300, so the values in B5:B300 are either
a blank cell or "a"

Is this clear?

Many thanks

George Gee
--



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

My Pleasure, thanks for the feedback

Peo

"George Gee" wrote:

Peo

Full marks to you!
For understanding what I wanted, and supplying the answer.
Many, many thanks!

George Gee

*Peo Sjoblom* has posted this message:

One way


=SUMPRODUCT(--($B$5:$B$300<""),--(SUBTOTAL(3,OFFSET($B$5,ROW($B$5:$B$300)-M
IN(ROW($B$5:$B$300)),,))))


Regards,

Peo Sjoblom

"George Gee" wrote:

Hi all.

I wish to use the SUBTOTAL function, to count the number of rows
when using 'Autofilter'

I have this formula: =SUBTOTAL(3,B5:B300)

The problem is that all cells in the range B5:B300 contain formulae,
and is giving the value 296.

Is there any way to edit the formula, to count only values,
in B5:B300?

The formula in B5 is: =IF('Tick sheet'!G5="","",'Tick sheet'!G5)
this is copied down to B300, so the values in B5:B300 are either
a blank cell or "a"

Is this clear?

Many thanks

George Gee
--




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
Averaging function Sarah Excel Discussion (Misc queries) 0 January 18th 05 05:09 PM
Function in XL or in VBA for XL that pulls numeric digits from a t Nate Oliver Excel Discussion (Misc queries) 0 December 14th 04 05:57 PM
Subtotal And Countif Sheryl Excel Discussion (Misc queries) 4 December 9th 04 08:18 PM
Excel function help facilities RPS Excel Discussion (Misc queries) 1 December 8th 04 03:36 AM
I cant use englisch function names in a swedich version of excel PE Excel Discussion (Misc queries) 2 December 7th 04 02:00 AM


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