Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 695
Default VLOOKUP WITH INDIRECT

Hi experts:

Cant remember how to combine Vlooup with Indirect
This 1 works ok
=VLOOKUP(B3,'C:\Users\pm\Desktop\[Varelager_XAL.xls]Sheet1'!B2:R15000,2)

Then ill have a dynamic range insted of R15000 then use a number in cell B5
this is what i got but it wont work
Can sombody pls. help :-)

=VLOOKUP(B3,INDIRECT("'C:\Users\pm\Desktop\[Varelager_XAL.xls]Sheet1'!B2:R"&B5),2)

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default VLOOKUP WITH INDIRECT

INDIRECT won't work on closed files.

The INDIRECT function *requires* that the referenced file(s) *MUST* be open.
This is usually not desireable.

A possible workaround is to download the *free* add-in, Morefunc.xll from
this site:


http://xcell05.free.fr/morefunc/english/index.htm


It has a function called INDIRECT.EXT that works the same as the built-in
INDIRECT *except* it will work on closed files.



--
Biff
Microsoft Excel MVP


"excelent" wrote in message
...
Hi experts:

Cant remember how to combine Vlooup with Indirect
This 1 works ok
=VLOOKUP(B3,'C:\Users\pm\Desktop\[Varelager_XAL.xls]Sheet1'!B2:R15000,2)

Then ill have a dynamic range insted of R15000 then use a number in cell
B5
this is what i got but it wont work
Can sombody pls. help :-)

=VLOOKUP(B3,INDIRECT("'C:\Users\pm\Desktop\[Varelager_XAL.xls]Sheet1'!B2:R"&B5),2)



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 695
Default VLOOKUP WITH INDIRECT

ok thanks ill try that


"T. Valko" skrev:

INDIRECT won't work on closed files.

The INDIRECT function *requires* that the referenced file(s) *MUST* be open.
This is usually not desireable.

A possible workaround is to download the *free* add-in, Morefunc.xll from
this site:


http://xcell05.free.fr/morefunc/english/index.htm


It has a function called INDIRECT.EXT that works the same as the built-in
INDIRECT *except* it will work on closed files.



--
Biff
Microsoft Excel MVP


"excelent" wrote in message
...
Hi experts:

Cant remember how to combine Vlooup with Indirect
This 1 works ok
=VLOOKUP(B3,'C:\Users\pm\Desktop\[Varelager_XAL.xls]Sheet1'!B2:R15000,2)

Then ill have a dynamic range insted of R15000 then use a number in cell
B5
this is what i got but it wont work
Can sombody pls. help :-)

=VLOOKUP(B3,INDIRECT("'C:\Users\pm\Desktop\[Varelager_XAL.xls]Sheet1'!B2:R"&B5),2)




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default VLOOKUP WITH INDIRECT

You might like to try it like this:

=VLOOKUP(B3,'C:\Users\pm\Desktop\[Varelager_XAL.xls]Sheet1'!B:R,2)

i.e. using full column references, so you don't need to specify the
bottom row, and hence don't need to use INDIRECT. Actually, your range
only needs to be B:C as you are taking the data from the second column
of the lookup table.

Hope this helps.

Pete

On Mar 13, 2:16*pm, excelent
wrote:
ok thanks ill try that

"T. Valko" skrev:



INDIRECT won't work on closed files.


The INDIRECT function *requires* that the referenced file(s) *MUST* be open.
This is usually not desireable.


A possible workaround is to download the *free* add-in, Morefunc.xll from
this site:


http://xcell05.free.fr/morefunc/english/index.htm


It has a function called INDIRECT.EXT that works the same as the built-in
INDIRECT *except* it will work on closed files.


--
Biff
Microsoft Excel MVP


"excelent" wrote in message
...
Hi experts:


Cant remember how to combine Vlooup with Indirect
This 1 works ok
=VLOOKUP(B3,'C:\Users\pm\Desktop\[Varelager_XAL.xls]Sheet1'!B2:R15000,2)


Then ill have a dynamic range insted of R15000 then use a number in cell
B5
this is what i got but it wont work
Can sombody pls. help :-)


=VLOOKUP(B3,INDIRECT("'C:\Users\pm\Desktop\[Varelager_XAL.xls]Sheet1'!B2:R"*&B5),2)- Hide quoted text -


- Show quoted text -


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
vlookup with indirect Tonto Excel Discussion (Misc queries) 4 September 11th 06 11:00 PM
Indirect or Vlookup or what.... Jambruins Excel Discussion (Misc queries) 3 May 5th 06 07:48 PM
vlookup? indirect? streetboarder Excel Discussion (Misc queries) 4 April 19th 06 06:36 PM
Indirect Vlookup with RC[-1] outwest Excel Worksheet Functions 6 March 12th 06 10:08 PM
vlookup, &, indirect Joe Blow Excel Worksheet Functions 2 March 3rd 05 10:40 PM


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