LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Lookup in a particular worksheet in another workbook

If the the "sending" workbook is open, you can use =indirect().

But if you close that sending workbook and recalc, you'll see an error.

Kevin wrote:

The formula that I used in the Form.xls file is as follows:

=VLOOKUP(E2,[Price.xls]USD!$A$3:$X$121,HLOOKUP(F2,[Price.xls]USD!$A$1:$X$2,2,FALSE),FALSE)

In the Price.xls file are 3 worksheets of data to lookup from; USD, GBP,
Euro.

From the formula that I used above, it is the sheetname (USD, GBP, or Euro)
that I want to define in a cell K12 in Form.xls to select the currency price.
In other words, I'd like to substitute USD in the formula to cell K12 of my
Form.xls.

Is there a way to do that using just formulas?

Thank you
Kevin

"Dave Peterson" wrote:

The data to be retrieved is in a different workbook--not just a different
worksheet in the same workbook?

If that's the case...

The function you'd want to use that's built into excel is =indirect(). But that
function returns an error if the sending workbook is closed.

Laurent Longre has an addin (morefunc.xll) at:
http://xcell05.free.fr/

That includes =indirect.ext() that may help you.



Kevin wrote:

Hi there,

I have this situation:

I have 3 tables of data in 3 separate data worksheets (USD, GBP, Euro) in a
workbook data file (Prices). I want to lookup values in one of the 3 data
worksheets where I define the worksheet name (USD, GBP or Euro) in a cell of
my Form worksheet.

How do I define the path of the worksheet (USD, GBP, Euro) that I want to
lookup into in my lookup formula, by just defining the worksheet name in a
particular cell of my Form?

Thank you.


--

Dave Peterson


--

Dave Peterson


 
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
worksheet to worksheet . . . Wayne Knazek Excel Worksheet Functions 5 September 27th 06 06:57 PM
Customizing Worksheet Menu Bar for a workbook without VBA coding Sylvia Excel Discussion (Misc queries) 0 March 20th 06 07:20 AM
Copying A Worksheet From Each Open Workbook to an new Workbook carl Excel Worksheet Functions 1 January 3rd 06 05:37 PM
copy worksheet to another workbook jtaiariol Excel Discussion (Misc queries) 5 January 1st 06 06:32 PM
How do I protect a worksheet from being opened inside a workbook J. Robinson Excel Discussion (Misc queries) 2 June 1st 05 03:40 PM


All times are GMT +1. The time now is 08:36 AM.

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"