Google Sheets WEIBULL.DIST: Usage Guide
In this article
The WEIBULL.DIST function in Google Sheets returns the Weibull distribution value for a given set of parameters. You can use it for reliability analysis, failure rate modeling, or life data analysis. The function can return either the probability density (PDF) or the cumulative distribution (CDF). To use it, you need the value at which to evaluate the distribution, the shape parameter (alpha), the scale parameter (beta), and a logical flag for cumulative. The syntax is WEIBULL.DIST(x, shape, scale, cumulative).
What You'll Need
- A Google Sheets document with your data ready (e.g., a list of failure times).
- Numeric values for the shape (alpha) and scale (beta) parameters. If you don't have them, you can estimate them from your data using other functions (e.g., using a regression or solver), but for this guide we'll assume you have them.
- Basic familiarity with entering formulas in Google Sheets.
Step-by-Step
- Open your Google Sheet and click on the cell where you want the result to appear.
- Type the formula starting with an equals sign:
=WEIBULL.DIST(. As you type, Google Sheets will show a tooltip with the expected arguments:WEIBULL.DIST(x, shape, scale, cumulative). - Enter the first argument,
x– the value at which you want to evaluate the distribution. This is typically a time or a measurement. You can type a number directly (e.g.,5) or reference a cell (e.g.,A2). - Enter the second argument,
shape– the Weibull shape parameter (alpha). This must be a positive number. You can type it (e.g.,2) or reference a cell containing the value. - Enter the third argument,
scale– the Weibull scale parameter (beta). This must also be a positive number. Again, type it or reference a cell. - Enter the fourth argument,
cumulative– a logical value:TRUEfor the cumulative distribution function (CDF) orFALSEfor the probability density function (PDF). For example, if you want the probability that a failure occurs by timex, useTRUE; if you want the density at exactlyx, useFALSE. - Close the parenthesis and press Enter. The result will appear in the cell.
- Check your result with a simple case: for
x=1,shape=1,scale=1,cumulative=TRUE, the function returns approximately0.6321(which is 1 - 1/e). Forcumulative=FALSE, it returns0.3679(1/e).
Note: The labels for arguments may appear differently in some localized versions of Google Sheets, but the order is always the same. If you're using a non-English locale, the function name might be translated (e.g., WEIBULL.VERT in German), but the syntax remains identical.
Common Mistakes
- Using negative or zero values for shape or scale – both must be positive numbers. If you input a zero or negative, the function returns an error (#NUM!).
- Using the wrong cumulative flag – confusing TRUE and FALSE will give you a very different result. Remember: TRUE = cumulative probability, FALSE = density.
- Entering text or blank cells – if any argument is a text string or an empty cell, the function returns #VALUE!.
- Misunderstanding the meaning of
x–xmust be a non-negative number. Negativexreturns #NUM!. - Forgetting the equals sign – without it, Google Sheets treats the entry as text, not a formula.
Tips
- Use cell references for shape and scale parameters so you can easily update them without rewriting the formula.
- Create a small table of
xvalues and apply the formula to each row to see how the distribution changes. - Use the CDF (TRUE) for reliability analysis – for example, the probability that a device fails by a certain time. The survival function is simply
1 - WEIBULL.DIST(x, shape, scale, TRUE). - For the PDF (FALSE), you can visualize the shape of the distribution by plotting the results against
x. - If you need the inverse Weibull (find
xfor a given probability), use theWEIBULL.INVfunction (orWEIBULL.INVin some versions) with the same shape and scale parameters.
Troubleshooting
If your formula returns an error, here's what to check in order:
- #NUM! error – Check that
xis non-negative and that shape and scale are both positive. If any of these conditions is violated, you get #NUM!. - #VALUE! error – This usually means one of the arguments is non-numeric. Check for text, empty cells, or cells with spaces. Make sure the cumulative argument is either TRUE or FALSE, not a number like 1 or 0.
- #NAME? error – This indicates a typo in the function name. Double-check that you typed
WEIBULL.DISTexactly. Also ensure you're using the English function name if your Sheets is set to English; otherwise, use the localized name (e.g.,WEIBULL.VERTin German). - Unexpected result – If the formula returns a number but it seems too large or too small, verify your parameters. For a Weibull distribution, the PDF can exceed 1 only if the scale is very small; the CDF is always between 0 and 1. If you get a CDF outside [0,1], something is wrong.
- Formula not calculating – If the cell shows the formula text, you likely forgot the equals sign. Also check that the cell is not formatted as plain text.
If you've checked all the above and it still fails, try a simple test: =WEIBULL.DIST(1,1,1,TRUE) should give ~0.6321. If that works, your data is the issue.
Frequently Asked Questions
What is the difference between WEIBULL.DIST and WEIBULL?
They are the same. WEIBULL is the older function name, still supported for compatibility, while WEIBULL.DIST is the current standard. Use WEIBULL.DIST for new work.
Can I use WEIBULL.DIST for non-reliability data?
Yes, the Weibull distribution is flexible and can model various types of data, including wind speeds, material strength, or any positive continuous data. Just ensure your data is positive and you have appropriate shape and scale parameters.
How do I estimate shape and scale from my data?
There's no built-in one-step function, but you can use a combination of methods: linear regression on the log-transformed data, or use the Solver add-on to fit the distribution. A common approach is to plot the data on a Weibull probability plot and fit a line; the slope gives shape, and the intercept gives scale.
What does the cumulative flag do exactly?
When cumulative is TRUE, the function returns the probability that a random variable is less than or equal to x (the CDF). When FALSE, it returns the probability density at exactly x (the PDF). For reliability, you usually want the CDF.
Can I use WEIBULL.DIST in an array formula?
Yes, you can use it with ARRAYFORMULA to calculate values for multiple x values at once. For example, =ARRAYFORMULA(WEIBULL.DIST(A2:A10, B1, C1, TRUE)) where B1 and C1 are your shape and scale.
Why do I get a #NUM! error when x is 0?
For x=0, the Weibull PDF is 0 if shape > 1, but if shape = 1, the PDF at 0 is 1/scale, and if shape < 1, the PDF tends to infinity as x approaches 0. Google Sheets returns #NUM! for x=0 when shape < 1 because the result is undefined (infinite). For x=0 with shape >= 1, it should work; if it doesn't, check your shape value.