How to Show Statistical Significance on a Bar Graph in Excel

Cody Schneider7 min read

A simple bar graph is a great way to show the results of an A/B test, but it only tells half the story. To truly understand if one version outperformed the other, you need to show statistical significance. This article will guide you through the process of calculating statistical significance and clearly visualizing it on a bar graph right inside Excel.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

First, What is Statistical Significance?

Before jumping into Excel, let's clarify what we're trying to show. Statistical significance tells you whether the difference between two groups is likely due to a real performance gap or just random chance. It’s the difference between "Headline B got more clicks" and "Headline B got more clicks, and we are 95% confident this difference is real and not a fluke."

For example, if you're A/B testing two ad creatives:

  • Creative A: 1,000 impressions, 50 clicks (5% CTR)
  • Creative B: 1,000 impressions, 58 clicks (5.8% CTR)

Creative B looks better, but is that 0.8% lift a meaningful improvement you can bet your marketing budget on, or could it just be a random wobble in the data? Calculating and visualizing the statistical significance answers this crucial question, helping you make decisions with confidence.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

How to Calculate Statistical Significance in Excel with a T-Test

Excel doesn't have a one-click button to add significance markers to a chart. First, you need to calculate the significance level yourself. A common and straightforward way to do this for comparing two datasets (like "clicks per day for Ad A" versus "clicks per day for Ad B") is by using a T-Test.

A T-Test gives you a result called a p-value. Without getting too technical, the p-value is the probability that the observed difference between your two groups happened by chance. A low p-value is good - it means there’s a low probability the result was random.

Here’s the rule of thumb used by most analysts:

  • If p-value < 0.05, the results are considered statistically significant.
  • If p-value ≥ 0.05, the results are considered not statistically significant.

Step-by-Step: Running a T-Test

Let's imagine you ran your ads for 10 days and tracked the daily clicks for each version. Your data in Excel might look like this:

In column A is your experimental Group (Ad Version A), and column B is your Control group (Ad Version B).

Now, find a blank cell and use the T.TEST function.

=T.TEST(array1, array2, tails, type)

  • array1: The cell range for your first dataset (e.g., A2:A11)
  • array2: The cell range for your second dataset (e.g., B2:B11)
  • tails: Use '2' for a two-tailed test, which checks for a difference in either direction (A > B or B > A). This is almost always what you want.
  • type: For a standard A/B test where the two groups are independent, use '2' (two-sample equal variance).

So, our formula would be:

=T.TEST(A2:A11, B2:B11, 2, 2)

Excel will return your p-value. In this example, the result is approximately 0.038. Since 0.038 is less than 0.05, we can conclude that the difference between the two ads is statistically significant! Now let's show that on a chart.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

The Best Way to Show Statistical Significance On a Bar Graph in Excel

The goal is to create a clean bar graph showing the average performance of both ads, with a bracket and an asterisk (*) above the bars to indicate significance. Since Excel doesn't offer a feature for this, we have to build it cleverly by combining a bar chart with a scatter plot.

Step 1: Create a Basic Bar Graph of Averages

First, calculate the average clicks for each version using the AVERAGE function.

  • Cell B13: =AVERAGE(A2:A11)
  • Cell C13: =AVERAGE(B2:B11)

Now, select your labels ("Ad Version A" and "Ad Version B") and their corresponding averages, then go to Insert > Chart > Clustered Column. You'll get a simple bar graph.

Step 2: Prepare Data for the Significance Marker

This is where the magic happens. We need to create coordinates for a single point that will sit above and between our two bars. We'll then use that point's error bars to "draw" our bracket.

Create a small new table for this point's coordinates:

  • Bracket Position (X-axis): Your bars are at positions 1 and 2 on the X-axis. To center the marker, its position should be 1.5.
  • Bracket Height (Y-axis): The marker needs to be higher than your tallest bar. Our highest average is 58.7, so let’s set the height to 62.

Step 3: Add the Scatter Plot Point to the Graph

  1. Click on the cell containing your "Bracket Position" value (our 1.5) and copy it.
  2. Click on your chart.
  3. Go to Home > Paste > Paste Special...
  4. In the dialog that appears, set it to New Series, values in Columns, and check both Series Names in First Row and Category (X) Labels in First Column. Click OK.

You probably won't see anything happen yet, and that’s okay. Excel has added your data, but we need to tell it how to display it.

Step 4: Change the Marker's Chart Type

  1. Right-click your chart and select Change Chart Type...
  2. Go to the Combo tab at the bottom.
  3. You'll see your two original series (Ad Version A and Ad Version B) and the new "Bracket Height" series.
  4. Click OK. You should now see a single dot floating above and between your bars.
GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

Step 5: "Draw" the Bracket Using Error Bars

Now we'll use Error Bars on that single scatter plot point to draw our lines.

Click on the dot in your chart to select it, then navigate to Chart Design > Add Chart Element > Error Bars > More Error Bar Options.... This will open the formatting pane on the right. You need to do this twice - once for the horizontal line and once for the vertical "legs."

To create the horizontal line (X Error Bar):

  1. In the formatting pane, select the X Error Bar option.
  2. Direction: Both
  3. End Style: No Cap
  4. Error Amount: Set this to a Custom value. In the pop-up, set both the Positive and Negative error values to 0.4. This will draw a line that spans 0.8 units wide, perfectly covering your bars. Click OK.

To create the downward legs (Y Error Bar):

  1. In the same formatting pane, select the Y Error Bar option.
  2. Direction: Minus (to draw the lines downward)
  3. End Style: No Cap
  4. Error Amount: Change to a Fixed Value of 2. This will create the little downward "legs" of the bracket. The exact value depends on your scale.

Step 6: Add the Significance Asterisk

The final touch is labeling the marker.

  1. Right-click on the scatter plot point (which might now be hidden by the lines, just click the center intersection).
  2. Select Add Data Label. A number will appear.
  3. Right-click the new data label and select Format Data Label...
  4. Make sure Y Value is unchecked and Series Name is checked. Set the position to Above.

Understanding the Notation

You now have a clean, scientifically valid chart. In the research community, an asterisk shorthand is used to communicate p-value without displaying the value itself - e.g., p=0.038. This avoids visual clutter.

Here’s the common convention:

  • * indicates p < 0.05
  • ** indicates p < 0.01
  • *** indicates p < 0.001

Final Thoughts

Adding statistical significance to your charts is crucial to support your arguments and ensure confidence in your data. The manual, multi-step process for making a valid scientific report in Excel can be slow and painstaking. At Graphed, we’ve built features that automate the tedious process of building accurate data analyses, freeing your time for more strategic efforts.

Related Articles