Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default How can I do this..

I have a formula, ='G:\Salaries\[01a Salaries
Apr07.xls]Data'!smithj, that pulls data from a separate workbook and works
fine.

But I would like to make this formula copyable across rows and columns. I
have cells with the different dates (as text) across the top of my sheet and
the different names (as text) down the side.

Any suggestions?

Thanks
Richard
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,393
Default How can I do this..

In B2 with the text "Apr07" in B1 and "smithj" in A2
=INDIRECT("'G:\Salaries\[01a Salaries "&B1&".xls]Data'!"&A2)
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Richard M Burton" wrote in
message ...
I have a formula, ='G:\Salaries\[01a Salaries
Apr07.xls]Data'!smithj, that pulls data from a separate workbook and works
fine.

But I would like to make this formula copyable across rows and columns. I
have cells with the different dates (as text) across the top of my sheet
and
the different names (as text) down the side.

Any suggestions?

Thanks
Richard



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default How can I do this..

The bad news is that Bernard's suggestion to use =indirect() requires that the
sending workbook be open. And then you wouldn't need the drive/path information
in the formula.

But the good news is that Laurent Longre has an addin (morefunc.xll) at:
http://xcell05.free.fr/

That includes =indirect.ext() that allows you to return values from closed
workbooks.

Bernard Liengme wrote:

In B2 with the text "Apr07" in B1 and "smithj" in A2
=INDIRECT("'G:\Salaries\[01a Salaries "&B1&".xls]Data'!"&A2)
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Richard M Burton" wrote in
message ...
I have a formula, ='G:\Salaries\[01a Salaries
Apr07.xls]Data'!smithj, that pulls data from a separate workbook and works
fine.

But I would like to make this formula copyable across rows and columns. I
have cells with the different dates (as text) across the top of my sheet
and
the different names (as text) down the side.

Any suggestions?

Thanks
Richard


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:00 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"