# Increment sheets number between 2 workbooks

#### chemhany

##### New Member
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
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??

Replies
1
Views
40
Replies
0
Views
42
Replies
2
Views
126
Replies
3
Views
101
Replies
0
Views
279

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.

### Which adblocker are you using?

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

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