Table of Contents
In the critical field of hypothesis testing, the path to statistical inference often requires the calculation of a standardized measure known as the Z-test statistic. This statistic is essential because it quantifies the precise distance, measured in standard deviations, between a sample observation and the hypothesized population mean. Once this Z-score is derived, the immediate analytical goal shifts to determining the corresponding P-value. The P-value is arguably the most crucial output of this process, as it represents the probability of observing results as extreme as, or more extreme than, the data collected, assuming the null hypothesis (H0) is true.
The decision to reject or fail to reject H0 hinges entirely on comparing the calculated P-value against a pre-determined significance level (α). Standard alpha levels are typically set at 0.10, 0.05, or 0.01. If the P-value falls below this threshold, the results are deemed statistically significant, prompting the rejection of the null hypothesis in favor of the alternative hypothesis. While historical statistical analysis relied heavily on cumbersome Z-tables, modern data analysis utilizes powerful software like Microsoft Excel to automate this process efficiently and accurately.
This expert tutorial provides a detailed, step-by-step guide on how to leverage Excel’s built-in statistical functionalities—specifically the NORM.DIST function—to seamlessly translate any calculated Z-score into its corresponding P-value, demonstrating methods for both one-tailed and two-tailed tests.
Mastering the NORM.DIST Function for P-Value Calculation
The NORM.DIST function in Excel is designed to return the normal cumulative distribution for a specified value, given a particular mean and standard deviation. Crucially, when calculating P-values from a Z-score, we are operating within the framework of the standard normal distribution (often called the Z-distribution). This specific distribution has fixed parameters: the mean is always 0, and the standard deviation is always 1. Understanding and correctly inputting these arguments is fundamental to obtaining an accurate P-value.
NORM.DIST(x, mean, standard_dev, cumulative)
The function requires four mandatory inputs, each serving a specific role in defining the area under the curve:
- x: This represents the value for which you want the distribution, which is our calculated Z-score. This is the point on the horizontal axis that defines the boundary of the probability area.
- mean: For the standard normal curve, this argument must consistently be set to 0.
- standard_dev: For the standard normal curve, this argument must consistently be set to 1.
- cumulative: This logical argument determines the type of distribution returned. Setting it to TRUE returns the Cumulative Distribution Function (CDF), which calculates the total area (probability) from negative infinity up to the specified Z-score. Setting it to FALSE returns the Probability Density Function (PDF), which is not suitable for finding P-values, as P-values represent area. Therefore, we must always use TRUE.
By fixing the mean to 0 and the standard deviation to 1, the NORM.DIST function effectively calculates the probability associated with the Z-score’s location on the standard curve. The next sections demonstrate how to adapt this formula for the two most common scenarios in statistical testing: the symmetric two-tailed test and the directional one-tailed test.
Example 1: Calculating the P-value for a Two-Tailed Test
A two-tailed test is employed when the alternative hypothesis proposes that the population parameter is simply “not equal” to the hypothesized value, meaning the difference could lie in either the positive or negative direction. Consider a scenario where a manufacturer wants to test if a new battery’s average lifespan differs from the standard 18 hours. A sample of 100 new batteries yields an average life of 19 hours, with a standard deviation of 4 hours. We will conduct a two-tailed hypothesis test using an alpha level (α) of 0.05.
Step 1: Define the Hypotheses. The two-tailed nature of the test is reflected in the alternative hypothesis (Ha), which asserts a simple difference:
The null hypothesis (H0): μ = 18 (The average lifespan is 18 hours.)
The alternative hypothesis: (Ha): μ ≠ 18 (The average lifespan is not 18 hours.)
Step 2: Calculate the Z-Test Statistic. We translate the observed sample data into a standardized Z-score to determine its position on the standard normal curve:
Test statistic Z = (x̄ – μ) / (s/√n) = (19 – 18) / (4/√100) = 1 / 0.4 = 2.5
Step 3: Determine the P-value using Excel. In a two-tailed test, the P-value must account for the probability in both the upper tail (Z ≥ 2.5) and the lower tail (Z ≤ -2.5). Since NORM.DIST calculates the cumulative area to the left (P(Z < 2.5)), we first find the upper tail probability by calculating 1 minus this cumulative area, and then multiply the result by two to include the probability from the symmetric opposite tail.
The specific Excel formula used to calculate the two-tailed P-value for Z = 2.5 is: =2 * (1 – NORM.DIST(2.5, 0, 1, TRUE))

Step 4: Conclude the Hypothesis Test. The calculation yields a P-value of approximately 0.0124. Comparing this to our chosen alpha level (α = 0.05), we find that 0.0124 < 0.05. Because the P-value is less than the significance level, we reject the null hypothesis. This provides statistically significant evidence to conclude that the average lifespan of the new battery is indeed different from the 18-hour standard.
Example 2: Calculating the P-value for a One-Tailed Test
One-tailed tests are directional, meaning the alternative hypothesis predicts a change in a specific direction (either an increase or a decrease). Suppose a botanist suspects the mean height of a particular plant is less than 14 inches. She samples 30 plants, finding a mean height of 13.5 inches and a standard deviation of 2 inches. We will conduct this left-tailed test using a stringent alpha level (α) of 0.01.
Step 1: Define the Hypotheses. The claim that the mean is “less than 14 inches” dictates a left-tailed test:
The null hypothesis (H0): μ ≥ 14 (The average height is 14 inches or more.)
The alternative hypothesis: (Ha): μ < 14 (The average height is less than 14 inches.)
Step 2: Calculate the Z-Test Statistic. We standardize the sample mean against the population parameter:
Test statistic Z = (x̄ – μ) / (s/√n) = (13.5 – 14) / (2/√30) = -0.5 / 0.3651 ≈ -1.369
Step 3: Determine the P-value using Excel. For a left-tailed test, the P-value is the area in the far left tail, defined by the negative Z-score. Since the NORM.DIST function with the cumulative argument set to TRUE inherently calculates the area from the far left up to the specified Z-score, the formula is used directly without any modification or subtraction from 1.
The specific Excel formula used to calculate the one-tailed P-value for Z = -1.369 is: =NORM.DIST(-1.369, 0, 1, TRUE)

The resulting one-sided P-value is approximately 0.08550.
Step 4: Conclude the Hypothesis Test. We compare the calculated P-value (0.08550) against the stringent alpha level (α = 0.01). Since 0.08550 is significantly greater than 0.01, we fail to reject the null hypothesis. Based on this statistical evidence, we cannot conclude at the 0.01 significance level that the average height of this plant species is less than 14 inches.
Summary of Key Formulas for Z-Score P-Value Calculation
The core structure of the Excel calculation is always derived from the NORM.DIST function applied to the standard normal distribution. However, the final formula must be adjusted based on the directionality specified by the alternative hypothesis (Ha). Let Z represent the calculated Z-score, and remember that NORM.DIST(Z, 0, 1, TRUE) always returns the cumulative area to the left of Z.
- Left-Tailed Test (Ha: <): Since we are looking for the area in the left tail (P(X < Z)), we use the function directly. Formula: =NORM.DIST(Z, 0, 1, TRUE)
- Right-Tailed Test (Ha: >): The right tail area (P(X > Z)) is found by subtracting the cumulative area to the left from 1. Formula: =1 – NORM.DIST(Z, 0, 1, TRUE)
- Two-Tailed Test (Ha: ≠): This test requires calculating the area of one tail (which is P(X > |Z|)) and multiplying it by 2 to account for both extremes. Using the absolute value of Z ensures the formula is robust regardless of whether the calculated Z-score is positive or negative. Formula: =2 * (1 – NORM.DIST(ABS(Z), 0, 1, TRUE))
By internalizing these concise and powerful Excel formulas, you can perform rapid and precise statistical analysis, effectively transitioning from the derived Z-statistic to the final, data-driven determination of statistical significance within any hypothesis testing scenario.
For more in-depth statistics tutorials in Excel, be sure to check out our complete list of resources.
Cite this article
Mohammed looti (2025). Calculating P-Values from Z-Scores in Excel: A Step-by-Step Guide. PSYCHOLOGICAL STATISTICS. Retrieved from https://statistics.arabpsychology.com/find-a-p-value-from-a-z-score-in-excel/
Mohammed looti. "Calculating P-Values from Z-Scores in Excel: A Step-by-Step Guide." PSYCHOLOGICAL STATISTICS, 8 Nov. 2025, https://statistics.arabpsychology.com/find-a-p-value-from-a-z-score-in-excel/.
Mohammed looti. "Calculating P-Values from Z-Scores in Excel: A Step-by-Step Guide." PSYCHOLOGICAL STATISTICS, 2025. https://statistics.arabpsychology.com/find-a-p-value-from-a-z-score-in-excel/.
Mohammed looti (2025) 'Calculating P-Values from Z-Scores in Excel: A Step-by-Step Guide', PSYCHOLOGICAL STATISTICS. Available at: https://statistics.arabpsychology.com/find-a-p-value-from-a-z-score-in-excel/.
[1] Mohammed looti, "Calculating P-Values from Z-Scores in Excel: A Step-by-Step Guide," PSYCHOLOGICAL STATISTICS, vol. X, no. Y, ص Z-Z, November, 2025.
Mohammed looti. Calculating P-Values from Z-Scores in Excel: A Step-by-Step Guide. PSYCHOLOGICAL STATISTICS. 2025;vol(issue):pages.