For what distribution? (Distribution-free tolerance limits do not use a
k-factor.)
One-sided tolerance factors for the normal distribution are calculated using
the inverse of the noncentral t distribution
http://www1.fpl.fs.fed.us/toltheory.pdf
Excel does not natively calculate the noncentral t distribution, but Ian
Smith has provided a library of VBA routines that do
http://members.aol.com/iandjmsmith/Examples.xls
For 2-sided tolerance bounds, I am not aware of publically available
software to do the exact calculations in Excel, but it could be programmed.
You first need to decide what kind of 2-sided tolerance limits you want. Do
you just want to assure coverage of a specified proportion of the population
(control the central coverage of the interval to be at least the specified
percentage), or do you want the larger k-factor that assures that you have
covered the central specified percentage of the population (control each tail
to be no more than half of 1-specfied percentage). The first type may be
more common, but the second is more appropriate if you are concerned about
assuring a minimum process capability index.
Odeh and Owen's book "Tables for Normal Tolerance Limits, Sampling Plans,
and Screening" gives an algorithm for calculating the second type.
http://www.itl.nist.gov/div898/handbook/prc/section2/prc263.htm
gives an approximation for the first type, that may be adequate for your
purposes. StatCalc is a standalone calculator that will calculation
essentially exact values for all three kinds of k-factors, but is limited to
the special case where df=n-1 for the second type of 2-sided k-factors
http://www.ucs.louisiana.edu/~kxk4695/StatCalc.htm
Jerry