Applying excel SD function to a range.

Rich B.

New Member
Joined
Apr 13, 2004
Messages
8
Hi All:
I have a macro that calculates various turnaround times for laboratory work. I would like to add the SD function to different parameters. The mean is calculated from a range (=SUMIF L2:L20000,"STAT",J2:J20000)/P11) I am not sure how to apply the excel function STDEV to a cell in order to show the standard deviation of the appropriate range. Hope someone can help.

Thanks: Rich
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Damon Ostrander

MrExcel MVP
Joined
Feb 17, 2002
Messages
4,239
Hi Rich,

You can do this using an array formula. I believe that what you want is:

{=STDEV(((L2:L20000="STAT"))*J2:J20000)}

You must enter this as an array formula using Ctrl-Shift-Enter without the curly braces (the curly braces will be added by Excel to identify that it is an array formula). This will give the standard deviation of only those elements in column J that have a corresponding "STAT" in column L.

Damon
 
Upvote 0

Rich B.

New Member
Joined
Apr 13, 2004
Messages
8
Perfect !! Thanks Damon that is exactly what I wanted it to do. I can apply it to the other priorities on the turnaround time report.

Rich
 
Upvote 0

Forum statistics

Threads
1,186,807
Messages
5,959,912
Members
438,453
Latest member
NRG909

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
Top