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: 170
Default Help with Cell names

NO the target workbook is not open. But it is not open when I type the formula
=vlookup(A3, [sample07Jan2007]sheet1!A43:E$14, 4) either. However the
manually entered formula does indeed perform the Vlookup function

"Peo Sjoblom" wrote:

The workbook you are referring to needs to be open, is that the case?

--
Regards,

Peo Sjoblom


"JR Hester" wrote in message
...
I have experienced the same frustration, using Excel 2000 on Windows 2000,
and the indirect function constantly returns a #ref. My issue deals with a
Vlookup formula:
My users have a large number of workbooks and worksheets that need to
import
beginning readings from a previous spreadsheet. The simple formula
Vlookup(A3, [filename]sheet1!A$3:e$14) works flawlessly. Both the workbook
name and the worksheet name are much longer that my example above. I am
attempting to automate the formula.
failed methods attemoted so far include:
1: created a VBA function(named LWT) that creates filename/data range
combination "[sample07Jan2007]sheet1!A$3:E$14"; When placed in simpole
formula this function returns the filename/data range as expected. When
palced inside the Vlookup function it returns a #name error-- entered as
Vlookup(A3, LWT(C2), 4)
2. typed the filename/data range into a cell I7,formula =indirect(I7)--
this
returns #REF
3. Entered LWT(C2) into cell I1, formula =indirect(I1), returns #REF

?? Am I missing something simple here or am I chasing an impossible
solution
in getting the Vlookup function to accept anything other than typed text
as
one of the arguments?

"JMB" wrote:

Try the INDIRECT function. If the range is named MyFile, then something
like:
=INDIRECT(MyFile&"WK1!h22")

Note that INDIRECT will always refer to H22 on the source worksheet, so
if
you move H22, you need to change the formula.


"ds_shades" wrote:

I am using a cell name to simplify my formulas

inside the cell that I named I put the path to a filename.
c:\users\documents\[filename.xls]


I have an Issue that when I create a simple formula like this
=[Filename]WK1!h22 it works just fine I get a result

But when I create a complex formula I get an #ref error when I step
through
the formula.

If I take the complex formula and just type in the file name it works
just
fine. So I do not understand why I can not just use the cell name
because it
is essentially the same thing.








 
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
difference between cell names and cell labels bobby769 Excel Discussion (Misc queries) 2 January 26th 07 03:51 AM
How to create table of cell names with the name's cell address WildwoodEngr Excel Discussion (Misc queries) 1 October 26th 06 02:52 PM
Cell names e_vandenbush Excel Discussion (Misc queries) 2 January 16th 06 10:58 PM
Separating names from one cell mlf Excel Discussion (Misc queries) 3 December 2nd 05 05:52 PM
Cell names bboult Excel Discussion (Misc queries) 1 November 17th 05 03:24 PM


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