Skip to main content

Kutools for Office — One Suite. Five Tools. Get More Done.

How to calculate average cells from different sheets in Excel?

Author Kelly Last modified

When working with Excel workbooks that contain similar data across multiple sheets—such as monthly sales, departmental budgets, or repeated survey results—you may need to quickly calculate the average of the same cell or range of cells in different worksheets. Manually calculating these averages one by one can be tedious and error-prone, especially as the number of sheets increases. This guide introduces several efficient and practical methods to calculate the average of cells across different sheets in Excel, helping you save time, reduce manual errors, and ensure consistency in your data analysis.


Calculate average of cells from multiple sheets in Excel

If you need to calculate the average of the same range across several worksheets—for example, to find the average sales in range A1:A10 across sheets named Sheet1 to Sheet5—Excel provides a direct formula-based solution. This approach works best when all sheets have the same structure and consistent naming.

Steps:

Select a blank cell where you want the result (e.g., cell C3), and enter the following formula:

=AVERAGE(Sheet1:Sheet5!A1:A10)

After pressing Enter, Excel will return the average value of the specified range across all sheets from Sheet1 to Sheet5.

apply a formula to average cells from different sheets

Note:
In =AVERAGE(Sheet1:Sheet5!A1:A10):
  - Sheet1:Sheet5 defines a range of consecutive worksheet tabs. Both endpoints are included.
  - A1:A10 is the same range across all sheets.

⚠️ Make sure this range exists on every sheet in the range. Otherwise, Excel will return a #REF! error.

If you need to average values from different ranges across sheets, you can list them manually:

=AVERAGE(A1:A5, Sheet2!A3:A6, Sheet3!A7:A9, Sheet4!A2:A10, Sheet5!A4:A7)

This version is helpful when the ranges vary between sheets. Enter it in your result cell and press Enter.

Advantages: Quick and straightforward for adjacent, consistently named worksheets without using add-ins or VBA.
Drawbacks: Inserting, deleting, or renaming sheets in between can disrupt results. For dynamic or non-adjacent sheets, formula updates are manual.
Tips: Double-check spelling of sheet names and ensure the target range exists on all sheets. If you copy formulas between cells, verify all references are still valid.

Calculate average of same cell from multiple sheets with Kutools for Excel

Kutools for Excel enhances your ability to extract and consolidate values from the same cell or range across multiple worksheets using its Dynamically Refer to Worksheets feature. This is especially helpful when working with a large number of sheets with consistent layout.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

Usage steps:

1. Open a new worksheet (such as a summary sheet), then select the cell where you want to calculate the average—for example, D7.

2. Go to Kutools > More (within the Formula group) > Dynamically Refer to Worksheets.
Open Dynamically Refer to Worksheets feature in Kutools

3. In the dialog box:
  - Choose a fill order from the Fill order drop-down (e.g., Fill vertically cell after cell).
  - In the Worksheet list, check the sheets that contain the cell you want to average.
  - Click Fill Range, then close the dialog.
Set options in Kutools dialog

4. The selected cell values will be listed in the range (e.g., D7:D11). Then enter the following formula in another blank cell to calculate the average:

=AVERAGE(D7:D11)

Press Enter to get the result. This simplifies consolidation but does not auto-extend to include newly added sheets—you'll need to rerun the feature when the sheet list changes.

Apply AVERAGE formula to filled values

Advantages: Automates same-cell extraction from multiple sheets, reduces formula editing, ideal for large workbooks.
Limitations: Requires Kutools; new sheets must be reselected manually; not optimal for small, one-time tasks.
Practical tip: After filling the range, double-check that all target sheets were selected and the extracted cells are correct before averaging.

Batch average many cells across multiple sheets with Kutools for Excel

In some cases, you may need to calculate averages for several corresponding cells across multiple worksheets simultaneously—for example, summarizing results for A1, B1, and C1 from every worksheet. This can become cumbersome with standard formulas, but Kutools for Excel's Combine (worksheets and workbooks) utility greatly simplifies this process.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

How to use this function:

1. Click Kutools Plus > Combine to open the Combine Worksheets wizard.
click Combine feature in Kutools Plus

2. In the wizard (Step 1 of 3):
Check Consolidate and calculate values across multiple workbooks into one worksheet, then click Next to continue.
check the Consolidate and calculate values across multiple workbooks into one worksheet option

3. In Step 2 of 3:
  - Select the worksheets to include under Worksheet list.
  - Use the Browse button select button to define the range for averaging.
  - Click Same Range if the ranges are identical among all sheets.
  - Click Next to proceed.
set options in the dialog boxes

4. In Step 3 of 3:
Select Average from the Function drop-down. Optionally, configure row/column labels as needed, then click Finish.

select Average from the Function drop down, specify labels based on your need

5. A dialog will ask whether you'd like to save the current settings as a scenario for future use. Choose Yes or No based on your needs.
A dialog box will pop out to remind you to save the scenario or not

Now, each cell in your defined output range will reflect the average of the corresponding cells from all selected worksheets. This method is especially useful for recurring operations or when consolidating large amounts of structured data quickly.

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy permanently free AI features! Get It Now

Benefits: Efficiently handles large-scale tasks in batch; supports not only averages but also other statistical functions like SUM, COUNT, MAX, MIN, etc.
Limitations: Requires Kutools add-in; less flexible if worksheet structures vary or require more advanced customization.
Tip: Make sure your workbook is saved before starting. Carefully verify worksheet selections and cell ranges to prevent incorrect consolidation results.

Automate averaging cells across sheets with VBA code

For users who need to automate averaging cells across multiple worksheets—especially when the sheet names are non-adjacent, frequently change, or when you want to specify ranges at runtime—a VBA macro can be an efficient solution. This method is best for advanced users or workbooks where sheets are often added or renamed.

The following VBA code allows you to input sheet names and cell ranges dynamically, then calculates the average of the specified range across all listed sheets. It's ideal for consolidating values from complex or frequently updated workbooks.

How to set up and use this VBA solution:

1. Go to the Developer tab in Excel. If it's not visible, enable it via File > Options > Customize Ribbon. Click Visual Basic to open the editor. Then go to Insert > Module and paste the following code:

Sub AverageAcrossSheets()
    Dim xSheetNames As String
    Dim xCellRange As String
    Dim xArr As Variant
    Dim xSheet As Worksheet
    Dim xTotal As Double
    Dim xCount As Long
    Dim i As Integer
    
    On Error Resume Next
    xTitleId = "KutoolsforExcel"
    
    xSheetNames = Application.InputBox("Enter sheet names separated by commas (e.g., Sheet1,Sheet3,Summary):", xTitleId, Type:=2)
    If xSheetNames = "" Then Exit Sub
    
    xCellRange = Application.InputBox("Enter cell or range to average (e.g., A1 or A1:B10):", xTitleId, Type:=2)
    If xCellRange = "" Then Exit Sub
    
    xArr = Split(xSheetNames, ",")
    xTotal = 0
    xCount = 0
    
    For i = LBound(xArr) To UBound(xArr)
        Set xSheet = Nothing
        Set xSheet = ThisWorkbook.Sheets(Trim(xArr(i)))
        
        If Not xSheet Is Nothing Then
            If Not IsError(Application.WorksheetFunction.Average(xSheet.Range(xCellRange))) Then
                xTotal = xTotal + Application.WorksheetFunction.Sum(xSheet.Range(xCellRange))
                xCount = xCount + xSheet.Range(xCellRange).Count
            End If
        End If
    Next i
    
    If xCount = 0 Then
        MsgBox "No valid data found!", vbExclamation, xTitleId
    Else
        MsgBox "The average across selected sheets and range is: " & xTotal / xCount, vbInformation, xTitleId
    End If
End Sub

2. To run the macro, press F5 in the editor, or close it and go to Developer > Macros, select AverageAcrossSheets, and click Run.

3. When prompted, enter a comma-separated list of worksheet names (e.g., Sheet1,Sheet3,Summary), then specify the range (e.g., A1:A10).

4. The macro will calculate the total and count from each valid sheet and display the average in a message box.

Parameter notes:

  • Sheet names are case-insensitive but must match exactly.
  • Range can be a single cell, full column (e.g., B:B), or rectangular range (e.g., D2:E12).
  • Invalid or missing sheets will be skipped silently.
Strengths: Flexible and dynamic; works with non-adjacent, variably named sheets; averages any specified range across multiple sheets without formula maintenance.
Limitations: Requires a macro-enabled workbook (.xlsm); users must allow macro execution; results are displayed in a message box and not written back to a sheet unless customized.
Tip: Save your workbook before running macros. If you encounter errors, double-check sheet names and ranges. Macros may be blocked by security settings—adjust them if needed.

Demo: average cells from different sheets in Excel

 

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!

All Kutools add-ins. One installer

Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.

Excel Word Outlook Tabs PowerPoint
  • All-in-one suite — Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
  • One installer, one license — set up in minutes (MSI-ready)
  • Works better together — streamlined productivity across Office apps
  • 30-day full-featured trial — no registration, no credit card
  • Best value — save vs buying individual add-in