Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Process Capability

Status
Not open for further replies.

Ca1icoJack

IS-IT--Management
Nov 27, 2008
36
GB
Could someone please tell me how to calculate Cp, Cpk, Ppk, UCL(x), LCL(x), UCL(r) and LCL(r) in VBA?

Thank you very much
 



Hi,

Most spreadsheet functions can be called in VBA...
Code:
TheReturnValue = Application.[i]SpreadsheetFunction[/i](ArgumentValue1, ...ArgumentValuen)


Skip,
[glasses]Don't let the Diatribe...
talk you to death![tongue]

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Okay... And if I were to use your method instead what formulae would I used in place of SpreadsheetFunction for each?

Thanks
 


Maybe I don't understand what "Cp, Cpk, Ppk, UCL(x), LCL(x), UCL(r) and LCL(r)" are. I have no idea in the world. Just thot that they might be spreadsheet function that you use from some AddIn.

Suppose you tell me.

Skip,
[glasses]Don't let the Diatribe...
talk you to death![tongue]

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
I recognize these as statistics for a Production Process; cp for instance is Process Capability and its formula is

cp = (SpecRange)/(6 * Standard deviation)

You will find formulas for the rest in any decent statistical text book or on Google.

You'll probably find that Excel will do a lot for you, as Skip has suggested, like the standard deviation calc etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top