Calculation of average on two sheets for one workbook

chemhany

New Member
Joined
Mar 3, 2021
Messages
28
Office Version
  1. 2019
I have one workbook that consists of 64 worksheets, as follows: 1,2,3,....,31,Average,1 Ex,2 Ex,3 Ex,.....,31 Ex,Average Ex
In worksheet Average, I want to calculate the average for the previous 31 worksheets. In Average Ex, I want to calculate the average for the previous 31 Ex worksheets. In Average and Average EX sheets, there is a table of 31 rows. I have used the following formula in the first row that enables me to calculate the average for 31 sheets by scrolling down
=IFERROR(AVERAGE(INDIRECT("'"&ROW(B2)-ROW(B$2)+1&"'!G13:G56")),0)
The problem is in Average EX sheet; if I use that formula, it will refer to 1,2,3 .....,31 sheets not to 1 Ex,2 Ex,3 Ex,.....,31 Ex.
How can I modify it ??

Thanks !!
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Will this work?:

Excel Formula:
=IFERROR(AVERAGE(INDIRECT("'" & ROW(B2) - ROW(B$2) + 1 & " Ex'!G13:G56")), 0)
 
Upvote 0
Solution

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top