Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
fbarbie
 
Posts: n/a
Default adding IF statement to subtotal for autofiltered data


Hi,

I have a column that has the autofilter applied. Each cell in the
column will only consist of one letter. I can create the SUBTOTAL
formula for it to count how many occupied cells there are. Now I want
to count the number of times a particular letter occurs. So my original
formula, which is in a cell F2 is this:

=SUBTOTAL(3,F7:F1000)

And I want to add an IF statement so it only counts the occurence of
the letter "D" in the filtered data. How do I incorporate IF into the
SUBTOTAL formula? Thanks in advance.


--
fbarbie
------------------------------------------------------------------------
fbarbie's Profile: http://www.excelforum.com/member.php...fo&userid=8110
View this thread: http://www.excelforum.com/showthread...hreadid=491566

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default adding IF statement to subtotal for autofiltered data

=SUMPRODUCT((SUBTOTAL(3,OFFSET($F$6,ROW($F$7:$F$10 00)-ROW($F$6),,1)))*(F7:F1
000="a"))

I assume that the data is being filtered, otherwise a simpler formula is
possible.

--

HTH

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


"fbarbie" wrote in
message ...

Hi,

I have a column that has the autofilter applied. Each cell in the
column will only consist of one letter. I can create the SUBTOTAL
formula for it to count how many occupied cells there are. Now I want
to count the number of times a particular letter occurs. So my original
formula, which is in a cell F2 is this:

=SUBTOTAL(3,F7:F1000)

And I want to add an IF statement so it only counts the occurence of
the letter "D" in the filtered data. How do I incorporate IF into the
SUBTOTAL formula? Thanks in advance.


--
fbarbie
------------------------------------------------------------------------
fbarbie's Profile:

http://www.excelforum.com/member.php...fo&userid=8110
View this thread: http://www.excelforum.com/showthread...hreadid=491566



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
Charts not recognizing source data if original linked data is changed. JLC Charts and Charting in Excel 3 October 14th 05 01:29 AM
How do I automatically update a graph after adding a data point Beertje Charts and Charting in Excel 2 October 10th 05 11:32 AM
Adding database data to a combo box... Lyndon Excel Discussion (Misc queries) 1 July 27th 05 10:42 AM
Reference multiple cells in if statement PAR Excel Worksheet Functions 1 June 10th 05 06:28 AM
IF statement based on data type Reed Excel Worksheet Functions 1 January 20th 05 02:17 PM


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