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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |