Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Lisa Beach
 
Posts: n/a
Default Nested --- Subtotal IF function

How do I do this?

I'm using autofilter to hide rows that = 0.
to get the total I have
Subtotal (9, D2:D50)

Now I need to count if column A = A1
COUNTIF(A2:A50, A1)

The only problem w/ the above is that it counts the hidden rows. How do I
count only the visible rows?

Thanks in advance.

Lisa


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bill Kuunders
 
Posts: n/a
Default Nested --- Subtotal IF function

=SUMPRODUCT(SUBTOTAL(3,OFFSET(A2:A50,ROW(A2:A50)
-MIN(ROW(A2:A50)),,1)), --(A2:A50=A1))
Got this from
http://www.contextures.com/xlFunctions04.html#Top

--
Greetings from New Zealand
Bill K
"Lisa Beach" wrote in message
...
How do I do this?

I'm using autofilter to hide rows that = 0.
to get the total I have
Subtotal (9, D2:D50)

Now I need to count if column A = A1
COUNTIF(A2:A50, A1)

The only problem w/ the above is that it counts the hidden rows. How do I
count only the visible rows?

Thanks in advance.

Lisa




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Nested --- Subtotal IF function

Sorry, to count use

=SUMPRODUCT(($A$2:$A$50=A1)*(SUBTOTAL(3,OFFSET($D$ 1,ROW($D$2:$D$50)-ROWS($D$
1),,1))))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Lisa Beach" wrote in message
...
How do I do this?

I'm using autofilter to hide rows that = 0.
to get the total I have
Subtotal (9, D2:D50)

Now I need to count if column A = A1
COUNTIF(A2:A50, A1)

The only problem w/ the above is that it counts the hidden rows. How do I
count only the visible rows?

Thanks in advance.

Lisa




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Nested --- Subtotal IF function

=SUMPRODUCT(($A$2:$A$50=A1)*(SUBTOTAL(9,OFFSET($D$ 1,ROW($D$2:$D$50)-ROWS($D$
1),,1))))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Lisa Beach" wrote in message
...
How do I do this?

I'm using autofilter to hide rows that = 0.
to get the total I have
Subtotal (9, D2:D50)

Now I need to count if column A = A1
COUNTIF(A2:A50, A1)

The only problem w/ the above is that it counts the hidden rows. How do I
count only the visible rows?

Thanks in advance.

Lisa




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
Nested IF with OR Function Trudy Excel Worksheet Functions 5 November 23rd 05 11:52 PM
Subtotal function for hidden row [email protected] Excel Worksheet Functions 10 October 13th 05 03:04 PM
Several function questions (nested functions) miller Excel Worksheet Functions 6 October 10th 05 05:58 AM
Nested if, sum & vlookup Function Trying to excel in life but need help Excel Worksheet Functions 4 January 13th 05 07:29 PM
Why is the subtotal function in excel 2003 very slow compared to . wd1 Excel Worksheet Functions 0 January 10th 05 01:23 AM


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