Calculating a Weighted Average

Written by Allen Wyatt (last updated March 26, 2026)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Excel in Microsoft 365


In the range G2:G26, Fran has a bunch of values. In the range H2:H26 she has weights assigned to each value. The weights are in the range of 0.5 to 2.0, representing 50 percent to 200 percent. Fran wonders what formula she should use to create a weighted average of the values in G2:G26.

An average is easy enough to figure out, using either the AVERAGE function or by summing a range and dividing by the number of items in the range. Things get a bit trickier with weighted averages, however. Consider the following formula:

= SUMPRODUCT(G2:G26*H2:H26)/COUNT(G2:G26)

This seems to fulfill the requirement of summing the weighted values and then dividing by the number of items in the range. This doesn't work, however, because it treats each item in the denominator as equal in importance. They are not equally important, though, and their relative importance must be taken into account.

A weighted average is properly defined as the sum of all the weighted values divided by the sum of all the weights. Thus, the following formula will provide Fran with the correct result:

=SUMPRODUCT(G2:G26,H2:H26)/SUM(H2:H26)

The SUMPRODUCT function sums each of the weighted values—derived by multiplying each value in G2:G26 by its weight in H2:H26—and the SUM function sums all the weights. The division provides the final weighted average.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (13970) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Excel in Microsoft 365.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Hiding Excel in VBA

Want to have you macro completely hide the Excel interface? You can do so by using the Visible property for the Excel ...

Discover More

Preventing Changes to Formatting and Page Size

When you create workbooks for others to use, you might want to make sure that they can't change the formatting and paper ...

Discover More

Y-Axis Chart Titles are Truncated

When creating a chart, you may find that the titles that appear along your Y-axis are being cut off for some reason. ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 365 applications with VBA programming. Written in clear terms and understandable language, the book includes systematic tutorials and contains both intermediate and advanced content for experienced VB developers. Designed to be comprehensive, the book addresses not just one Office application, but the entire Office suite. Check out Mastering VBA for Microsoft Office 365 today!

More ExcelTips (ribbon)

Inserting Commas in a Value Excel Interprets as a Number

Adding spaces after commas in a number can be done by first converting the number to a text value. This presents other ...

Discover More

Returning Zero When a Referenced Cell is Blank

Reference a cell in a macro, and if that cell is blank Excel normally equates that to a zero value. What if you don't ...

Discover More

Relative References to Cells in Other Workbooks

When you construct a formula and click on a cell in a different workbook, an absolute reference to that cell is placed in ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is three minus 0?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.