Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
MACRE0
 
Posts: n/a
Default INDIRECT Function - what am I doing wrong?


I have a series of excel files 1 though 150. I would like to find in
column C (of the Cover Letter tab) the cell with GRAND TOTAL writen in
it and capture the figure to its right for each file.

This works:

=VLOOKUP("Grand Total",'D:\Documents and Settings\My
Documents\[1.xls]Cover Letter'!$C:$D,2,0)

I would like to drag down the list though and set up the numbers 1
through 150 in column A and the respective Grand Totals in B. I
thought the INDIRECT Functions would allow me to do this.

=VLOOKUP("Grand Total",INDIRECT("'D:\Documents and Settings\My
Documents\["&A1&".xls]Cover Letter'!$C:$D"),2,0)
I also failed with:
=VLOOKUP("Grand Total",INDIRECT('D:\Documents and Settings\My
Documents\[&"A1"&.xls]Cover Letter'!$C:$D),2,0)


Where have I gone astray? Is there a better way for me to do what I
need?

Thanks in advance for any assistance. :~)


--
MACRE0
------------------------------------------------------------------------
MACRE0's Profile: http://www.excelforum.com/member.php...o&userid=10848
View this thread: http://www.excelforum.com/showthread...hreadid=471871

  #2   Report Post  
RagDyer
 
Posts: n/a
Default

Do you realize that if you use the Indirect() function, that each WB *must
be open* in order for you to retrieve your data?

Harlan has created something that might be good enough for you, where it
"pulls" data from closed WBs.

Check out this link:

ftp://members.aol.com/hrlngrv/pull.zip


--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================



"MACRE0" wrote in
message ...

I have a series of excel files 1 though 150. I would like to find in
column C (of the Cover Letter tab) the cell with GRAND TOTAL writen in
it and capture the figure to its right for each file.

This works:

=VLOOKUP("Grand Total",'D:\Documents and Settings\My
Documents\[1.xls]Cover Letter'!$C:$D,2,0)

I would like to drag down the list though and set up the numbers 1
through 150 in column A and the respective Grand Totals in B. I
thought the INDIRECT Functions would allow me to do this.

=VLOOKUP("Grand Total",INDIRECT("'D:\Documents and Settings\My
Documents\["&A1&".xls]Cover Letter'!$C:$D"),2,0)
I also failed with:
=VLOOKUP("Grand Total",INDIRECT('D:\Documents and Settings\My
Documents\[&"A1"&.xls]Cover Letter'!$C:$D),2,0)


Where have I gone astray? Is there a better way for me to do what I
need?

Thanks in advance for any assistance. :~)


--
MACRE0
------------------------------------------------------------------------
MACRE0's Profile:

http://www.excelforum.com/member.php...o&userid=10848
View this thread: http://www.excelforum.com/showthread...hreadid=471871


  #3   Report Post  
MACRE0
 
Posts: n/a
Default


I did not realize, no :~( . But thanks and I'll review that link


--
MACRE0
------------------------------------------------------------------------
MACRE0's Profile: http://www.excelforum.com/member.php...o&userid=10848
View this thread: http://www.excelforum.com/showthread...hreadid=471871

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date & Time mully New Users to Excel 4 May 23rd 05 12:56 PM
How to paste INDIRECT function to range of cells? Mike Williams Excel Worksheet Functions 4 March 18th 05 04:02 AM
offset and indirect function RICHARD ANNOR Excel Worksheet Functions 1 March 11th 05 04:09 AM
offset and indirect function RICHARD ANNOR Excel Worksheet Functions 0 March 11th 05 12:49 AM
Indirect Function and Sum gr Excel Worksheet Functions 2 February 2nd 05 05:16 PM


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

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

About Us

"It's about Microsoft Excel"