To average two columns in Excel, use the AVERAGE function with a range that spans both columns, like =AVERAGE(A2:B10) for columns A and B. This gives the mean of all numbers in both columns combined. If you need the average of each row across the two columns, use =AVERAGE(A2,B2) in a new column and copy it down. If you need a single average of the two column averages, use =AVERAGE(AVERAGE(A2:A10), AVERAGE(B2:B10)). This guide covers all these methods, step by step.
What You’ll Need
- Microsoft Excel (Microsoft 365, Excel 2021, 2019, or earlier versions) on Windows, Mac, or Excel for the web.
- A workbook with data in two columns. The columns can be adjacent (like A and B) or non-adjacent (like A and C).
- No special add-ins or tools are required—just the standard Excel interface.
Step-by-Step
There are three common scenarios for averaging two columns. Follow the one that matches your need.
Scenario 1: Average of All Numbers in Two Columns (Combined)
- Open your Excel workbook and locate the two columns you want to average. For example, column A has values in A2:A10 and column B has values in B2:B10.
- Click an empty cell where you want the result to appear, such as D2.
- Type the formula:
=AVERAGE(A2:B10). This range includes both columns from row 2 to row 10. If your data has different ranges, adjust the cell references. - Press Enter. Excel calculates the arithmetic mean of every number in the range A2:B10. For example, if A2:A10 contains 1,2,3,4,5,6,7,8,9 and B2:B10 contains 10,20,30,40,50,60,70,80,90, the result is 45.5 (the sum of all 18 numbers is 819, divided by 18).
- If your columns are not adjacent (e.g., A and C), use a comma-separated list of ranges:
=AVERAGE(A2:A10, C2:C10). This works the same way.
Scenario 2: Row-by-Row Average (Each Row’s Average of Two Columns)
- Suppose you have values in A2:A10 and B2:B10, and you want the average of each row (e.g., average of A2 and B2, then A3 and B3, etc.).
- Click cell C2 (or any empty column next to your data).
- Type the formula:
=AVERAGE(A2,B2). TheAVERAGEfunction accepts individual cell references separated by commas. - Press Enter. The result shows the average of the two numbers in row 2.
- Click the fill handle (the small square at the bottom-right corner of the cell) and drag it down to C10. Excel copies the formula, adjusting the row numbers automatically. For example, in C3 it becomes
=AVERAGE(A3,B3), and so on. - If you need to ignore blanks or text in either cell, use
=IF(COUNT(A2,B2)=0,"",AVERAGE(A2,B2))to return an empty string when both cells are empty. For a simpler approach,AVERAGEignores text and blanks, but if both are blank it returns a #DIV/0! error—so the IF version prevents that.
Scenario 3: Average of the Two Column Averages
- This method gives equal weight to each column’s average, regardless of how many numbers are in each column. For example, column A has 10 numbers, column B has 8 numbers, and you want the average of those two averages.
- Click an empty cell, such as D2.
- Type the formula:
=AVERAGE(AVERAGE(A2:A10), AVERAGE(B2:B8)). Adjust the ranges to match your data. - Press Enter. The result is the mean of the two column averages. For instance, if AVERAGE(A2:A10)=5 and AVERAGE(B2:B8)=20, the result is 12.5.
- Alternatively, you can use the
SUMPRODUCTmethod for a weighted average if needed, but for a simple average of averages, the above is clean.
Common Mistakes
- Using the wrong range: Forgetting to include both columns in the range, e.g.,
=AVERAGE(A2:A10)only averages one column. Double-check the range includes both columns. - Including headers in the range: If your columns have header text like “Sales” in A1, including A1 in the range will cause the text to be ignored, but it’s still good practice to start from the first data row.
- Misunderstanding the row-by-row formula: Using
=AVERAGE(A2:B2)instead of=AVERAGE(A2,B2)works too—it averages the range A2:B2, which is the same as the two cells. Both are valid, but the comma version is clearer for non-adjacent cells. - Expecting a different result from average of averages: The average of column averages is not the same as the overall average unless both columns have the same number of values. For example, if column A has values 1 and 100 (average 50.5) and column B has 10 and 20 (average 15), the average of averages is 32.75, but the overall average of all four numbers is 32.75 as well—this coincidence happens when counts are equal. In general, they differ. Be clear about which you need.
- Using AVERAGEIF or AVERAGEIFS incorrectly: If you only want to average numbers that meet a condition, you might use AVERAGEIF. But for a simple two-column average, stick to AVERAGE.
Tips
- Use the AutoSum button (Home > Editing > AutoSum) to quickly insert an AVERAGE formula. Select the two columns, click AutoSum dropdown, choose Average, and Excel guesses the range—but always verify the range.
- For dynamic ranges that grow as you add data, consider using an Excel Table (Ctrl+T). Then your formula can reference the table columns, like
=AVERAGE(Table1[Column1], Table1[Column2])for row-wise, or=AVERAGE(Table1[Column1]:Table1[Column2])for combined—though the latter syntax may not work in all versions; safer to use=AVERAGE(Table1[Column1], Table1[Column2])for combined average of two columns as a list. - If you want to ignore zero values, use
=AVERAGEIF(A2:B10,"<>0")for combined, or for row-wise use=IF(COUNTIF(A2:B2,"<>0")=0,"",AVERAGEIF(A2:B2,"<>0")). - On Mac, keyboard shortcuts use the Command key instead of Ctrl, but the formulas are identical.
- For Excel for the web, all these formulas work exactly the same. The only difference is the interface for AutoSum (still on the Home tab).
Troubleshooting
- #DIV/0! error: This appears when the range contains no numeric values. Check that your data is in the correct cells and that there are no empty ranges. If you have text or blanks, AVERAGE ignores them, but if all cells are blank or text, you get this error. Use
=IFERROR(AVERAGE(A2:B10),"")to show a blank instead. - #VALUE! error: This usually happens if you have text that looks like numbers but is stored as text, or if you accidentally used a colon instead of a comma in a list of arguments. For example,
=AVERAGE(A2:B2, C2:D2)is fine, but=AVERAGE(A2:B2 C2:D2)is invalid. Also, if you have a cell with an error value (like #N/A), AVERAGE will return that error. Use=AGGREGATE(1,6,A2:B10)to ignore errors. - Formula not updating: If you change data and the average doesn’t recalculate, check that calculation is set to Automatic (Formulas > Calculation Options > Automatic). If it’s on Manual, press F9 to recalculate.
- Wrong average for row-wise: If you drag the fill handle and get incorrect values, ensure you didn’t accidentally lock the cell references with $ signs. For example,
=AVERAGE($A$2,B2)would always use A2, which is wrong. Use relative references (no $) for copying down. - Columns not aligned: If your two columns have different numbers of rows, the combined average will include all cells in the range, which may include blanks. Blanks are ignored, so that’s fine, but the row-wise formula will only work for rows where both cells have data. If you want to average only rows where both are present, use
=AVERAGEIFS(A2:A10,B2:B10,"<>"&"")—but that’s more complex. For simplicity, ensure your data is aligned.
Frequently Asked Questions
Q: Can I average two non-adjacent columns like A and C?
A: Yes. Use =AVERAGE(A2:A10, C2:C10) for combined, or =AVERAGE(A2,C2) for row-wise. The comma separates the ranges.
Q: How do I average two columns but ignore zero values?
A: Use =AVERAGEIF(A2:B10,"<>0") for combined. For row-wise, use =IF(COUNTIF(A2:B2,"<>0")=0,"",AVERAGEIF(A2:B2,"<>0")).
Q: What’s the difference between averaging two columns and averaging the averages?
A: Averaging two columns directly (e.g., =AVERAGE(A2:B10)) gives the mean of all individual numbers. Averaging the column averages (e.g., =AVERAGE(AVERAGE(A2:A10), AVERAGE(B2:B10))) gives equal weight to each column, which is different if the columns have different counts.
Q: Does AVERAGE include blank cells?
A: No, AVERAGE ignores blank cells and cells with text. It only averages numeric cells. If all cells are blank, it returns #DIV/0!.
Q: Can I use AVERAGEIF to average two columns based on a condition in another column?
A: Yes. For example, to average values in A2:B10 where C2:C10 equals “Yes”, use =AVERAGEIF(C2:C10,"Yes",A2:B10). Note that the average_range can be a multi-column range, and Excel will average corresponding cells.
Q: Why does my formula show the result as a date?
A: This happens if the cell is formatted as a date. Right-click the cell, choose Format Cells, and select Number or General to display the numeric average.
Related
- How to Make Two Columns in Word
- How to Make Two Columns in Microsoft Word: A Guide
- Google Sheets Filter on Two Columns: A Practical Guide
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Are Random Number Generators Random? Truth ExplainedNo, random number generators are not truly random in the strictest sense—most are deterministic algorithms that produce sequences…
- How to Create 2 x 4 Labels in Word and Print Them CorrectlyTo create 2 x 4-inch labels in Microsoft Word, open Mailings > Labels, choose Options, select the matching…
- How to Insert a Citation in Word OnlineTo insert a citation in Word Online, open the document and check the References tab for Insert Citation.…
- How to Insert a Page-Wide Line Across a Word DocumentTo add a line across the usable width of a Word page, click a blank paragraph and choose…
- How to Align an Image in an Excel Cell and Keep It in PlaceTo align a picture with an Excel cell, use Insert > Pictures > Place in Cell to make…
- Excel Hide Commands: Shortcuts for Rows, Columns, and SheetsIn Excel for Microsoft 365 on Windows, select the row or rows and press Ctrl+9 to hide them;…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.