#1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 35
Default Subtotals

What does the 9 in this formula mean "=SUBTOTAL(9,J2:J105)"?
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 4,393
Default Subtotals

The syntax is =SUMTOTAL(function_number, reference_1, [reference_2]....)
The function_number arguments informs Excel what you require of SUBTOTAL as
shown in the table below taken from Help.
The value 9 means you want to SUM (rather than count, average, etc) and as
it is a single digit you want to the sum to include any hidden values.


Function_num
(includes hidden values) Function_num
(ignores hidden values) Function
1 101 AVERAGE
2 102 COUNT
3 103 COUNTA
4 104 MAX
5 105 MIN
6 106 PRODUCT
7 107 STDEV
8 108 STDEVP
9 109 SUM
10 110 VAR
11 111 VARP

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Deborah" wrote in message
...
What does the 9 in this formula mean "=SUBTOTAL(9,J2:J105)"?



  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 8,651
Default Subtotals

As far as I can see, the Excel Help for the SUBTOTAL function makes it
perfectly clear. Have you looked at Help? Was there something there which
you didn't understand?
--
David Biddulph

"Deborah" wrote in message
...
What does the 9 in this formula mean "=SUBTOTAL(9,J2:J105)"?



  #4   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 3,346
Default Subtotals

Hi,

Actually the 9 means two things:

1. The operation you want to perform is SUM
and
2. The entries you want to sum are hidden via the AutoFilter command, not
by manually hidding the rows or collapsing groups (as in the Subtotal
command).
3. If you want to sum only visible cells choose 109 instead of 9. Then it
doesn't matter how you hide the rows.


--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Deborah" wrote:

What does the 9 in this formula mean "=SUBTOTAL(9,J2:J105)"?

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
Subtotals problem: Excel 2003 (not, AFAIK, the nested subtotals bug) AndyCotgreave Excel Discussion (Misc queries) 3 October 24th 07 11:32 AM
Original subtotals should not be within nested subtotals in excel Mirage Excel Worksheet Functions 1 June 6th 07 01:37 AM
How do I copy an outline w/ subtotals & paste just the subtotals av Excel Discussion (Misc queries) 1 June 20th 05 11:35 PM
Problem with nested subtotals, placing secondary subtotals BELOW . Dawn Cameron Excel Discussion (Misc queries) 1 June 3rd 05 10:13 PM
why are nested subtotals coming out below outer subtotals? Hendy Excel Worksheet Functions 2 January 18th 05 08:09 PM


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