Stdev

UpTheArgyle

Board Regular
Joined
Jan 12, 2006
Messages
179
Hi i have 49 row of data (7 weeks) I want to switch on filter to just select all mondays, and then do a STDEV calculation on just those remaining 7 bits of data.
Trouble is it still looks at all 49 =STDEV(D2:D93)

If i manually type this it works : =STDEV(D93,D86,D79,D72,D65,D58,D51,D44,D37,D30,D23,D16,D9,D2)

Is there a quicker to to tell excel to only look at those cells that are visible?
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Excel 2010:
Code:
=AGGREGATE(8;5;D2:D93)

The "5" argument tells function to ignore hidden rows.
 
Last edited:
Upvote 0
But i was after STDEV, which cant be the same as AGGREGATE?

Also what is the "8" for in =AGGREGATE(8;5;D2:D93)


Thanks
 
Upvote 0
"7" is STDEV.S function.
"8" is STDEV.P function.

STDEV.S and STDEV.P replace STDEV in Excel 2010.
What Office do you have? Watch in Excel help for AGGREGATE.
 
Last edited:
Upvote 0
Bad luck. Resort to VBA. Here's UDF. Use it like Excel's function:
Code:
Function StandardDev(rng As Range) As Double
    StandardDev = WorksheetFunction.StDev(rng.SpecialCells(xlCellTypeVisible))
End Function

Type in E1:
Code:
=StandardDev(D2:D93)
 
Upvote 0
Hi

For old versions of excel you can

. use Subtotal()

. or you can test if the value refers to a Monday (in this case you don't even have to filter). This is usually the case when you have a date in a column and the corresponding value in another

If you want to implement any of this solutions and have problems with the formulas post back with details
 
Upvote 0

Forum statistics

Threads
1,224,568
Messages
6,179,595
Members
452,927
Latest member
whitfieldcraig

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top