Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Standard Deviation with a macro tool

These macros produce numbers - whether they are the right onesor not
haven't a clue <<grin.


STANDARD DEVIATION (Worksheet Function STDEV)
Select your (maximum 30) numbers and run this macro :-
'----------------------------------
Sub Standard_Deviation()
'- maximum 30 numbers Excel limit
STD = Application.WorksheetFunction.StDev(Selection)
MsgBox (STD)
End Sub
'=======================================
STANDARD ERROR (worksheet function STEYX)
Assumes you have selected 2 equal length columns of numbers.
'----------------------------------
Option Base 1
Sub Standard_Error()
Dim MyArray1() ' dependant points 1st.column
Dim MyArray2() ' independant points 2nd. column
Dim RowCount As Long
'--------------------
RowCount = Selection.Rows.Count
ReDim MyArray1(RowCount)
ReDim MyArray2(RowCount)
'-----------------------------
For c = 1 To RowCount
MyArray1(c) = Selection.Cells(c, 1).Value
MyArray2(c) = Selection.Cells(c, 2).Value
Next
SE = Application.WorksheetFunction.StEyx(MyArray1, MyArray2)
MsgBox (SE)
End Sub
'------------------------------------

--
Message posted from http://www.ExcelForum.com

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
standard deviation Clem Charts and Charting in Excel 1 December 6th 09 03:24 PM
Standard Deviation Soccerboy83 Excel Discussion (Misc queries) 2 June 16th 09 01:27 AM
standard deviation Ina Excel Discussion (Misc queries) 2 August 23rd 07 03:06 PM
standard deviation Arne Hegefors Excel Discussion (Misc queries) 7 August 6th 06 01:12 PM
Standard Deviation Stan Banner Excel Worksheet Functions 1 March 12th 06 12:54 AM


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