How can I adapt the Excel calculation for DPMO into Access?

D

David A.

I use {=NORMSINV(1-(# of defects/# of opportunities))+1.5} to calculate DPMO
in Excel, but I cannot find a way to translate this calculation onto a form
generated from Access. Does anyone know of a way to build this calculation
into Access? The report is a summary of vendor performance to my company and
I needed to put all the suppliers on a level playing field with respect to
delivery performance.
Thanks,
David
 
J

James A. Fortune

David said:
I use {=NORMSINV(1-(# of defects/# of opportunities))+1.5} to calculate DPMO
in Excel, but I cannot find a way to translate this calculation onto a form
generated from Access. Does anyone know of a way to build this calculation
into Access? The report is a summary of vendor performance to my company and
I needed to put all the suppliers on a level playing field with respect to
delivery performance.
Thanks,
David

David,

As a quick way of getting what you need, you can set a Reference in
Access VBA to the Excel Object Library. That would allow you to call
NORMSINV directly. E.g.,

....
Dim dblX As Double

dblX = 0.3
MsgBox (Excel.WorksheetFunction.NormSInv(dblX))
....

=> -0.524401002621744

I'll take a look at the problem over the weekend since I enjoy coming up
with Access only solutions for Excel functions.

James A. Fortune
(e-mail address removed)
 
J

James A. Fortune

James said:
David,

As a quick way of getting what you need, you can set a Reference in
Access VBA to the Excel Object Library. That would allow you to call
NORMSINV directly. E.g.,

...
Dim dblX As Double

dblX = 0.3
MsgBox (Excel.WorksheetFunction.NormSInv(dblX))
...

=> -0.524401002621744

I'll take a look at the problem over the weekend since I enjoy coming up
with Access only solutions for Excel functions.

James A. Fortune
(e-mail address removed)

I didn't get to it this past weekend. It looks like an interesting
problem. I hope to get to it soon.

James A. Fortune
(e-mail address removed)
 
D

David A.

James,

I need to clarify one thing with my question. The formula is actually used
to determine the Process Sigma of a function, not the DPMO. In my haste to
post my question, I mistyped what I meant to ask. Regardless, the formula is
accurate. I have not yet had a chance to try the VBA link. I'll let you
know how that goes.

Thank you.
 
G

Guest

scarley,i' m desagree

James A. Fortune said:
I didn't get to it this past weekend. It looks like an interesting
problem. I hope to get to it soon.

James A. Fortune
(e-mail address removed)
 
J

James A. Fortune

David said:
James,

I need to clarify one thing with my question. The formula is actually used
to determine the Process Sigma of a function, not the DPMO. In my haste to
post my question, I mistyped what I meant to ask. Regardless, the formula is
accurate. I have not yet had a chance to try the VBA link. I'll let you
know how that goes.

Thank you.

I've started looking at the problem and it is interesting indeed. Here
are some of my initial thoughts.

The function that is sought appears to be related to the Inverse Erf
function from:

http://mathworld.wolfram.com/InverseErf.html

That site also gives the Maclaurin series for that function.
Mathematicians like myself don't like to reinvent the wheel unless
they're still made of stone (the wheel, not the mathematician) or are in
some other state lacking completeness. For smaller values of x, say
greater than 0.5 and less than 0.5 {mathematically (0.5, 0.5)}, the
Maclaurin series should converge very rapidly. It looks like even x
values close to -1 or 1 should converge somewhat quickly. Using that
method seems to be verging on brute force so I'm going to try to find
something more elegant. It is known that the Error Function (Erf)
doesn't have a closed form solution so some numerical integration might
be involved. Even the existence of a closed form solution for the Error
Function would not have guaranteed that a simple non-iterative way to
calculate the inverse exists.

Numerical integration falls under the mathematical field of Numerical
Analysis, a subject in which I showed considerable talent and interest
at both the undergraduate and graduate levels in both the applied
mathematics and engineering versions. Also, the fact that a cumulative
distribution is involved presents some possibilities that would not be
present otherwise. The fact that the mathworld site gives the
derivative might simplify the process if fixed point interation becomes
involved. So far it looks like it is going to be a fun problem. I
suppose, though, that I won't look too capable if I don't come up with
something good :).

James A. Fortune
(e-mail address removed)
 
J

James A. Fortune

James said:
I've started looking at the problem and it is interesting indeed. Here
are some of my initial thoughts.

I'm still working on this. It's a great problem.

James A. Fortune
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top