View Single Post
  #13   Report Post  
Posted to microsoft.public.excel.worksheet.functions
beeblemonster beeblemonster is offline
external usenet poster
 
Posts: 11
Default Using VLOOKUP with a reference to a different file...

It's still not working.
The file being called upon is open behind it. I have '[file name.xls]sheet
1'!$A:$X in A1. and C3 is showing... #REF! with =VLOOKUP(A3,INDIRECT(A$1),15)
as the code.

I can't find the mistake anywhere...





"Pete_UK" wrote:

To answer your last question first - Yes, but it's free (but that's
one reason why I don't install add-ins, as I can't guarantee that
other users will have them).

Open the file that you want to get the data from, and then put this,
including both apostophes, in A1 of your main file:

'[file_name.xls]Sheet 1'!$A:$P

(You don't need to specify the path if the file is open). Then this
formula in C3:

=VLOOKUP(A3,INDIRECT(A$1),15)

should work ok.

However, if you close the other file this will not work.

Hope this helps.

Pete

On Aug 14, 3:50 pm, beeblemonster
wrote:
It did the hyperlink automatically...
i can change it to just text...
I'll try the A-P thing, but where am I missing an apostrophe?

and I can't download morefunc, unless I get permission from an admin, so I
was going to make sure I could get it to work with the file in the backround
before I went through taht whole process. If I did use this program and
someone wanted to look at the file and change stuff on a different
computer... would they have to download the program also?



"Pete_UK" wrote:
Sorry, I thought from the earlier posts that you would have downloaded
the Morefunc add-in and used INDIRECT.EXT. As you are trying to use
INDIRECT, this will fail if the other workbook is not open.


Pete


On Aug 14, 3:27 pm, Pete_UK wrote:
Try it with your table reference as $A:$P rather than $1:$65536. Not
sure why you have the HYPERLINK in A1, but you need the full path if
the file is not open (although you seem to have missed an apostrophe)..


Hope this helps.


Pete


On Aug 14, 3:14 pm, beeblemonster


wrote:
I'ver tried it a couple of ways...


It says #NAME? when I dothis...


This is what C3's code looks like...
=VLOOKUP(A3,INDIRECT(A1),15)


and this is what A1's looks like...
=HYPERLINK('[file name]Sheet 1'!$1:$65536)


when I change A1 to \\folder\folder\folder\[file name]Sheet 1'!$1:$65536
it come with a #REF! error


"Pete_UK" wrote:
Post the formula(s) that you have tried, and tell us what error
message you are getting.


Pete


On Aug 13, 10:00 pm, beeblemonster
wrote:
It's not working at all....
would it have something to do with the fact that both files aren't on my
hardrive... they are on a company server in password protected folder?


I've been trying to get this to work for hours... with and without it open. :(- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -