Advertisement

07.16.2008 at 02:20PM PDT, ID: 23571366
[x]
Attachment Details

HLOOKUP with INDIRECT returns #REF when target workbook closes.

Asked by Scamquist in Office & Productivity Software, Microsoft Excel Spreadsheet Software

I am trying to use indirect with hlookup.  I have am trying to revrieve info from a table on another drive.
The workbook I am using is on the C drive.
The target table array is in a folder on the R drive
I have a named range CV


cell A40 is the  DRIVE            the value in the cell is  R
Cell B40 is the  Folder       the value in the cell is  Components
Cell C40 is the  File Name    the value in the cell is  PVC.XLS
Cell D40 is the  Named Range  the value in the cell is  CV

I tried

HLOOKUP(I39,INDIRECT("'"&A40&":\"&B40&"\"&C40"'!"&D40),15,FALSE)


This should return the equilivent

HLOOKUP(I39,'R:\COMPONENTS\PVC.XLS'!CV,15,FALSE)

This works as long as the workbook PVC.XLS is open.  When I close it, I get #REF. If I open the target workbook back up, the proper value is displayed.

This is driving me nuts.

Any ideas?

Excel 2007Start Free Trial
 
 
[+][-]07.16.2008 at 02:24PM PDT, ID: 22020336

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 03:39PM PDT, ID: 22020832

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 03:56PM PDT, ID: 22020953

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Office & Productivity Software, Microsoft Excel Spreadsheet Software
Sign Up Now!
Solution Provided By: byundt
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628