To average two cells in Excel, use the AVERAGE function with a comma between the cell references, like =AVERAGE(A1, B1). This returns the arithmetic mean of the two values. You can also type =(A1+B1)/2 for the same result. This guide covers both methods, plus how to handle blanks, errors, and formatting.
What You’ll Need
- Microsoft Excel (Microsoft 365, Excel 2021, 2019, 2016, or earlier versions; steps are similar on Mac and Excel for the web).
- A workbook with at least two cells containing numbers you want to average.
- Basic familiarity with selecting cells and typing in the formula bar.
Step-by-Step
- Open your Excel workbook and locate the two cells you want to average. For this example, assume the values are in cells A1 and B1.
- Click the cell where you want the average to appear (e.g., C1). This is where the formula will be entered.
- Type the AVERAGE formula. Start with an equals sign, then
AVERAGE, an opening parenthesis, the first cell reference, a comma, the second cell reference, and a closing parenthesis. Press Enter.
Example:=AVERAGE(A1, B1)
If A1 contains 10 and B1 contains 20, the result is 15. - Alternative method using arithmetic. If you prefer a manual formula, type
=(A1+B1)/2and press Enter. This adds the two values and divides by 2. For 10 and 20, the result is also 15. - Check the result. The cell shows the average. If you change the values in A1 or B1, the average updates automatically (unless your workbook is set to manual calculation).
- Format the result if needed. Right-click the cell, choose Format Cells, then select a number format (e.g., Number with 2 decimal places) to control how many decimals appear.
Common Mistakes
- Using a colon instead of a comma:
=AVERAGE(A1:B1)averages the range from A1 to B1, which is the same as A1 and B1 if there are no other cells in between. But if you have values in A2 or B2, a colon will include them, giving a different result. Use a comma to average exactly two cells. - Forgetting the equals sign: Typing
AVERAGE(A1,B1)without the equals sign treats it as text, not a formula. - Including text or blank cells: If one of the cells contains text, the AVERAGE function ignores it (but the arithmetic formula
=(A1+B1)/2will return a #VALUE! error). If a cell is blank, AVERAGE ignores it, so the result is just the other value, not the true average of two numbers. - Using parentheses incorrectly: In the arithmetic formula, you must put the addition in parentheses:
=(A1+B1)/2. Without them,=A1+B1/2divides B1 by 2 first, then adds A1, giving a different result.
Tips
- If you need to average more than two cells, list them all separated by commas:
=AVERAGE(A1, B1, C1)or use a range:=AVERAGE(A1:C1). - To average two cells that are not adjacent, just use commas:
=AVERAGE(A1, C1). - If you want to average two cells but ignore errors, use
=IFERROR(AVERAGE(A1,B1), "")to display a blank instead of an error. - For a quick average without a formula, select the two cells and look at the status bar at the bottom of Excel—it shows Average, Count, and Sum.
- On a Mac, the keyboard shortcut to enter a formula is the same (press Enter). To copy the formula down, use Cmd + D (fill down) instead of Ctrl + D on Windows.
Troubleshooting
Why does my formula show #VALUE!? This usually happens when one of the cells contains text or an error. With =AVERAGE(A1,B1), text is ignored, but if a cell contains an error (like #DIV/0!), the average returns that error. Check the referenced cells for text or errors. With the arithmetic formula =(A1+B1)/2, any text causes #VALUE!. Use the AVERAGE function to ignore text.
Why is the result 0 or wrong? If a cell is blank, AVERAGE ignores it, so the average of 10 and blank is 10 (not 5). To force a blank to count as 0, use =(A1+B1)/2 or =IF(COUNT(A1,B1)=2, AVERAGE(A1,B1), "") to show a message if both are not numbers.
Why does the average not update when I change numbers? Go to Formulas > Calculation Options and ensure it is set to Automatic. If it’s on Manual, press F9 to recalculate.
Why does the result show many decimals? The default format may show more decimals than you want. Select the cell, go to Home > Number and choose a format like Number and reduce decimal places, or use the Decrease Decimal button.
Frequently Asked Questions
Q: Can I average two cells from different worksheets? Yes, include the sheet name with an exclamation mark: =AVERAGE(Sheet1!A1, Sheet2!B1).
Q: What if I want to average two cells but ignore zeros? Use =AVERAGEIF(A1:B1, "<>0") but note this averages the range A1:B1, so if there are other cells in between, they are included. For exactly two cells, use =IF(AND(A1<>0, B1<>0), AVERAGE(A1,B1), AVERAGEIF(A1:B1, "<>0"))—a bit complex. Simpler: =(A1+B1)/2 will include zeros, so if you want to exclude zeros, you need a custom formula like =IF(COUNTIF(A1:B1, "<>0")=0, 0, SUMIF(A1:B1, "<>0")/COUNTIF(A1:B1, "<>0")).
Q: Is there a keyboard shortcut to insert the AVERAGE function? Yes, press Alt + = (Windows) or Cmd + Shift + T (Mac) to insert the SUM function, then change SUM to AVERAGE in the formula bar. Or use the AutoSum dropdown on the Home tab and choose Average.
Q: Can I average two cells that are in a table? Yes, you can use structured references like =AVERAGE(Table1[Column1], Table1[Column2]), but it’s easier to just reference the specific cells.
Q: How do I average two cells and round the result to two decimals? Use =ROUND(AVERAGE(A1,B1), 2) or =ROUND((A1+B1)/2, 2).
Q: What if my cells contain dates? Excel stores dates as numbers, so the average will return a date. If you want the average of the underlying numbers, format the result as a number. If you want the average date, keep the date format.
Related
- How to Split a Cell in Google Sheets Into Two Cells
- How to Join Two Cells in Google Sheets: Merge Cells
- How to Split Cells in Excel Into Two Columns Without Errors
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- How to Share a Calendar Link in Outlook for OthersTo share an Outlook calendar as a link, open Outlook on the web, go to Settings > Calendar…
- How to Change Cell Color in ExcelTo change a cell’s background color in Excel for Microsoft 365 on Windows, select the cell or range,…
- How to Delete a Note in Excel Without Removing DataTo delete a note in Excel for Microsoft 365 on Windows, right-click the cell containing it and choose…
- How to Find Duplicate Names in an Excel ColumnTo find duplicate names quickly, select the name cells and choose Home > Conditional Formatting > Highlight Cells…
- How to Add a Watermark to Every Page in Microsoft WordTo add a watermark to every page in Word, open the document and choose Design > Watermark, then…
- Conditional Formatting Based on Another CellYes. In Excel for Microsoft 365, you can make a cell or range change format based on another…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.