Automate referencing worksheets

aaron1000

New Member
Joined
Jun 9, 2011
Messages
10
Hi Folks, I'm having trouble with how to program a maco that will automate the reference of sequential worksheet names in serveral forumlas in a 'calcs' worksheet

The 'calcs' worksheet contains six columns (A to F)... each with a different formula. Each row in the column references a worksheet of which there are 250 so far.

For example:

Calcs Worksheet
A1 -> =MIN('1'!C1,'1'!C6000)
A2 -> =MIN('2'!C1,'2'!C6000)
A3 -> =MIN('3'!C1,'3'!C6000)
A4 -> =MIN('4'!C1,'4'!C6000)
.
.
.
and I want to automate the referencing all the way upto (so far) worksheet 250
.
.
A250 -> =MIN('250'!C1,'250'!C6000)


Appreciate an help on this.

cheers
Aaron
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
You could try using the INDIRECT function but, be warned, this is a volatile function that will recalculate whenever calculation occurs so having many such instances of the function will slow calculation of the workbook.
=MIN(INDIRECT("'"&ROW()&"'!C1"),INDIRECT("'"&ROW()&"'!C6000"))
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,517
Members
449,088
Latest member
RandomExceller01

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