Increment sheets number between 2 workbooks

chemhany

New Member
Joined
Mar 3, 2021
Messages
28
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

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
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??
 
Upvote 0

Forum statistics

Threads
1,213,539
Messages
6,114,221
Members
448,554
Latest member
Gleisner2

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