Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
intricatefool
 
Posts: n/a
Default Lookup multiple workbooks


I need to lookup cells in multiple workbooks. Each workbook has a state

abreviation at the end of the file name.

I am trying to use:

=HLOOKUP($A29,INDIRECT("C:\Data\Data
Collection\Reimburse_Policy_Report_"&A29&".xls]Pharmacy'!$C$6:$D$23"),C$1,FALSE)

A29 in the formula is the state abbreviation to be looked up in each
file.
Anyone have any suggestions on how to go about doing this the correct
way?

I am getting an error every time...! Please help!


--
intricatefool
------------------------------------------------------------------------
intricatefool's Profile: http://www.excelforum.com/member.php...o&userid=32919
View this thread: http://www.excelforum.com/showthread...hreadid=547942

  #2   Report Post  
Posted to microsoft.public.excel.misc
bgeier
 
Posts: n/a
Default Lookup multiple workbooks


What error are you getting?


--
bgeier
------------------------------------------------------------------------
bgeier's Profile: http://www.excelforum.com/member.php...o&userid=12822
View this thread: http://www.excelforum.com/showthread...hreadid=547942

  #3   Report Post  
Posted to microsoft.public.excel.misc
DerekB
 
Posts: n/a
Default Lookup multiple workbooks

If you are getting a #REF! errror, it may just be that you have not opened
the file(s) referred to in the formula. INDIRECT requires that the files be
open.

This requirement, in effect, means that you only really need to put the file
name into the function although the full path could be needed if there is the
chance having more than one file of the same name in different folders.

I am assuming, by the way, that the formula as given in your mail has not
been exactly reproduced. Otherwise, teh problem is that you have missed out
the opening single quite mark before the drive name C: and the opening square
bracket before the file name:

INDIRECT("'C:\Data\Data
Collection\[Reimburse_Policy_Report_"&A29&".xls]Pharmacy'!$C$6:$D$23"

--
DerekB


"intricatefool" wrote:


I need to lookup cells in multiple workbooks. Each workbook has a state

abreviation at the end of the file name.

I am trying to use:

=HLOOKUP($A29,INDIRECT("C:\Data\Data
Collection\Reimburse_Policy_Report_"&A29&".xls]Pharmacy'!$C$6:$D$23"),C$1,FALSE)

A29 in the formula is the state abbreviation to be looked up in each
file.
Anyone have any suggestions on how to go about doing this the correct
way?

I am getting an error every time...! Please help!


--
intricatefool
------------------------------------------------------------------------
intricatefool's Profile: http://www.excelforum.com/member.php...o&userid=32919
View this thread: http://www.excelforum.com/showthread...hreadid=547942


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
multi sheet lookup with multiple results Alec H Excel Discussion (Misc queries) 1 March 10th 06 08:05 PM
Print Multiple Workbooks malycom Excel Discussion (Misc queries) 0 March 10th 06 09:51 AM
Organizing Multiple Workbooks tksilver Excel Discussion (Misc queries) 2 February 15th 06 03:30 PM
Changing source on multiple workbooks charlilot Links and Linking in Excel 1 January 26th 06 09:08 PM
lookup multiple occurrences of a value excel ckl Excel Worksheet Functions 5 February 3rd 05 05:19 AM


All times are GMT +1. The time now is 03:32 AM.

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"