Increment sheets number between 2 workbooks

chemhany

New Member
Joined
Mar 3, 2021
Messages
8
Office Version
  1. 2019
I have 2 workbooks each of 31 worksheets. The 1st one contains data of which I want to calculate the average in the 2nd workbook separately for each worksheet. I used the function
=AVERAGE(INDIRECT("'C:\Users\lab9\Desktop\H\shift\[AN (32).xlsx]"&1&"'!$B$7:$B$18"))
How can I increment the number from 1 to 31 in that formula when copying sheets from 1 to 31??

Thanks
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

chemhany

New Member
Joined
Mar 3, 2021
Messages
8
Office Version
  1. 2019
How can I increment the number from 1 to 31 in that formula when copying sheets from 1 to 31 or when copy the formula from one sheet to another??
 

Watch MrExcel Video

Forum statistics

Threads
1,130,124
Messages
5,640,250
Members
417,131
Latest member
Seanr19871

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
Top