Hi Domenic,
That's great; thank you.
In Excel 2003 for Windows SUBTOTAL Function has:
Syntax
SUBTOTAL(function_num, ref1, ref2, ...)
Function_num is the number 1 to 11 (includes hidden values) or 101 to 111
(ignores hidden values) that specifies which function to use in calculating
subtotals within a list.
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
Cheers
Sam
Domenic wrote:
Define the following reference...
Insert Name Define
Name: Last5Values
Refers to:
=SUBTOTAL(9,OFFSET(Cost,Last5,0,1))
Click Ok
Then use the following formula...
=STDEVP(Last5Values)
...confirmed with just ENTER.
=STDEVP(SUBTOTAL(109,OFFSET(Cost,Last5,0,1)))
...confirmed with CONTROL+SHIFT+ENTER.
Actually, I don't have the 'Function Number' 109 available for the
SUBTOTAL function in my Mac version of Excel. If I use 9 instead, the
formula works fine. Is that a typo on your part or does that 'Function
Number' actually exist?
Hi Domenic,
[quoted text clipped - 44 lines]
Thanks Sam
--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200509/1