Linkage

SGH

Board Regular
Joined
Dec 11, 2003
Messages
72
OK here goes...

Spreadsheet 'A' is a summary of & is linked to Spreadsheet 'B'.
A' has columns labelled 561,562 etc which correspond to tabs in 'B'.
In 'A' when I copy formula across I have to use the Replace function to make sure its linking to the right tab in 'B'
Is there an easy way of incorporating my column labels in 'A' into the formula, which would mean I wouldn't have to use the Replace function ?
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
You can use the INDIRECT function but both workbooks must be open. Can you post one of your formulas?
 

SGH

Board Regular
Joined
Dec 11, 2003
Messages
72
This is the formula in spreadsheet 'A'

='[A_OHSUM.AS.DEPTS.xls]557'!$C$221

I want to replace the 557 bit with the column number on the spreadsheet I'm in
 

fairwinds

MrExcel MVP
Joined
May 15, 2003
Messages
8,638
Hi,

Try:

=INDIRECT("'[A_OHSUM.AS.DEPTS.xls]"&A1&"'!$C$221")

With 557 in cell A1
 

SGH

Board Regular
Joined
Dec 11, 2003
Messages
72

ADVERTISEMENT

Yup that works,

Thanks guys
 

SGH

Board Regular
Joined
Dec 11, 2003
Messages
72
Being picky now !

Is there a way of this working with A_OHSUM.AS.DEPTS.xls closed ?

Thanks
 

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234

ADVERTISEMENT

use indirect.ext() instead - you'll need the morefunc addin though.
 

SGH

Board Regular
Joined
Dec 11, 2003
Messages
72
Dowloaded Morefunc addin & used Indirect.Ext & this works.

Thanks again
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,102
Messages
5,768,102
Members
425,454
Latest member
khoro

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