Increment reference sheet number in excel average formula

chemhany

New Member
Joined
Mar 3, 2021
Messages
28
Office Version
  1. 2019
I have a workbook of 30 worksheets in worksheet 31, I want to calculate the average for specific data from each worksheet. Simply I used the formula AVERAGE('1'!D$39:D$52). when I had dragged it down, the sheet number (which is 1) didn't change. Which formula can do that?

Thanks
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Welcome to the forum.

This does what you ask. Note that the range d39:d52 in the formula is just text - it is used by function INDIRECT to complete the reference. Paste this into B8. Move it where you like, then drag it down 30 rows.

=AVERAGE(INDIRECT("'"&ROW(B8)-ROW(B$8)+1&"'!d39:d52"))
 
Upvote 0
Solution
You're welcome.

Do remember that the d39:d52 portion will not be dynamic.
 
Upvote 0

Forum statistics

Threads
1,215,331
Messages
6,124,312
Members
449,152
Latest member
PressEscape

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