Amazon Cyber Monday deals See deals →ad

Mets Minor League Blog

Music theory, instruments and musicians

Mets Minor League Blog

Music theory, instruments and musicians

Violin Plot Excel: 10 Ways to Make One

Violin plots combine box plots and kernel density plots to show distribution shape, peaks, and outliers in one view. Excel doesn’t have a native violin plot chart type, but you can build one with a few workarounds. This list covers 10 practical methods, from free add-ins to manual construction, for analysts, researchers, and data enthusiasts who need violin plots without leaving Excel.

1. Use the Real Statistics Resource Pack

The Real Statistics Resource Pack is a free Excel add-in that includes a violin plot option. After installing, you’ll find it under the Real Statistics menu: select your data, choose ‘Violin Plot’ from the ‘Descriptive Statistics’ submenu, and it generates a chart with a box plot overlay. It’s the closest thing to a native Excel violin plot, and it handles multiple groups cleanly.

2. Build a Manual Violin Plot with Scatter Charts

If you want full control, construct a violin plot manually. For each data point, compute a kernel density estimate (KDE) using a helper column with formulas like =NORM.DIST(x, mean, stdev, FALSE) summed across all points. Then plot the KDE values as an XY scatter chart with smooth lines, and mirror it by plotting negative KDE values. This method requires some statistical know-how but produces a customizable, native Excel chart.

3. Use a Stacked Area Chart Trick

A less-known approach uses stacked area charts to simulate violin shapes. Create a table with density values for each group, then plot them as stacked areas with a centered axis. Rotate the chart 90 degrees by swapping axes, and you get a violin-like silhouette. It’s not perfect, but it’s a quick visual approximation for presentations.

4. Try the ‘Violin Plot’ Template from Microsoft

Microsoft’s Office template gallery occasionally features community-created violin plot templates. Search for ‘violin plot’ in the template search within Excel (File > New). These templates often include pre-built formulas and macros that generate a violin plot from your data with minimal setup. They’re a good option if you want a ready-made solution without coding.

5. Leverage Power BI’s Violin Plot Visual (via Excel)

If you have Power BI Desktop, you can import your Excel data and use the ‘Violin Plot’ custom visual from AppSource. While not strictly in Excel, this workflow is seamless for Excel users: prepare data in Excel, load it into Power BI, and create a professional violin plot with tooltips and interactivity. It’s the best option for advanced visualizations.

6. Use a Third-Party Add-in like XLSTAT

XLSTAT is a paid Excel add-in that includes violin plots in its ‘Univariate Statistics’ menu. It offers extensive customization: bandwidth selection, kernel type, and overlay options. If you already use XLSTAT for statistical analysis, this is a no-brainer. The trial version works for a few days, but the full license is pricey.

7. Create a Violin Plot with VBA Macros

For the technically inclined, write a VBA macro that computes KDE and draws a violin plot using chart objects. There are open-source VBA scripts online (e.g., from Stack Overflow) that you can adapt. This approach is highly reusable—once you have the macro, you can run it on any dataset with a button click. It requires some coding, but it’s a powerful skill.

8. Use a Free Online Tool and Paste Results

If you’re in a hurry, use an online tool like Plotly Chart Studio or GraphPad’s violin plot generator. Upload your Excel data, create the violin plot, and then export it as an image or interactive HTML. You can embed the image back into Excel as a picture. This isn’t a live chart, but it’s a quick workaround for reports.

9. Simulate Violin Plots with Box Plot and Histogram Combo

While not a true violin plot, you can combine a box plot with a rotated histogram to convey similar information. Excel’s native box-and-whisker chart (available in Excel 2016 and later) can be paired with a histogram on a secondary axis. This gives you the shape and summary statistics in one view, which is often enough for exploratory analysis.

10. Use a Python Script via Excel’s Python Integration

Excel’s new Python integration (available in Microsoft 365) allows you to use Python libraries like matplotlib or seaborn directly in Excel. You can write a formula like =PY() to run Python code that generates a violin plot and returns it as a chart object. This is the most powerful method, but it’s only available in the latest versions of Excel and requires a Microsoft 365 subscription.

How to Choose

When picking a method, consider your Excel version, budget, and technical comfort. For most users, the Real Statistics Resource Pack offers the best balance of simplicity and fidelity. If you need interactivity or advanced customization, Power BI or Python integration is worth the learning curve. Manual methods are great for one-off charts but are time-consuming. Always test with a small sample to ensure the chart represents your data correctly.

Frequently Asked Questions

Q: Can Excel make a violin plot natively?
No, Excel doesn’t have a built-in violin plot chart type. You need an add-in, manual construction, or a workaround.

Q: Is the Real Statistics Resource Pack free?
Yes, it’s free and open-source, but requires installation and occasional updates. It works with Excel 2007 and later.

Q: Can I create a violin plot in Excel Online?
Excel Online doesn’t support add-ins or VBA, so you’d need to use manual methods or a third-party tool that integrates with the web version.

Q: How do I interpret a violin plot?
The width of the violin represents the density of data points at that value. A wider section means more data points are concentrated there. The box inside shows the median and interquartile range.

Q: What is kernel density estimation (KDE)?
KDE is a statistical method to estimate the probability density function of a dataset. It’s the underlying math that creates the smooth shape of a violin plot.

Q: Can I add multiple groups to a violin plot in Excel?
Yes, most methods support multiple groups. For example, the Real Statistics add-in allows you to select multiple columns or a grouping variable.

Final Thoughts

Creating a violin plot in Excel requires a bit of creativity, but the options above cover every skill level and budget. Start with the Real Statistics add-in for a quick, reliable result. If you need more power, explore Power BI or Python integration. The key is to understand your data and choose a method that makes the distribution clear to your audience.

Violin Plot Excel: 10 Ways to Make One
Scroll to top