Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
SarahP
 
Posts: n/a
Default How do I use a cell as a referance to a file in a lookup statemen.

I have a file that is a summary. I want to look up data in another file
using a cell in the summary file to define part of the file name. For
example: Cell A5 contains 2008. I want to have a formula like
=VLOOKUP(B4,'H:\Sarah P\CQI or PIP\Acute Inventory\Test
Process\[2008.xls]count_sheet'!$B:$E,4,FALSE) I want to use the cell
referance of A5 to represent the number (2008) in the formula.
  #2   Report Post  
Harlan Grove
 
Posts: n/a
Default

SarahP wrote...
I have a file that is a summary. I want to look up data in another

file
using a cell in the summary file to define part of the file name. For


example: Cell A5 contains 2008. I want to have a formula like
=VLOOKUP(B4,'H:\Sarah P\CQI or PIP\Acute Inventory\Test
Process\[2008.xls]count_sheet'!$B:$E,4,FALSE) I want to use the cell
referance of A5 to represent the number (2008) in the formula.


If the other file would be open, you can use INDIRECT.

=VLOOKUP(B4,INDIRECT("'["&A5&".xls]count_sheet'!B:E"),4,0)

If the other file wouldn't be open, you'll need alternative #4 in

http://groups-beta.google.com/group/...443753560f0075
(or http://makeashorterlink.com/?F2993260A )

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
Weekly Transaction Processing Ralph Howarth Excel Worksheet Functions 4 January 19th 05 05:37 AM
Problem with IF condition or vector lookup? J-Philippe Excel Worksheet Functions 4 January 15th 05 08:41 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM
Using Jet to read excel file returns blank for last cell - sometim Ron Excel Discussion (Misc queries) 1 December 9th 04 08:21 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 10:14 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"