Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default find files from a dropdown list

I have a group of files named sequentially by date. I want to use a dropdown
list to select which file to pull information from. How can I insert the
filename from the dropdown list into a vlookup formula to get the information
from the correct file?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default find files from a dropdown list

Think INDIRECT can be used but the source file needs to be simultaneously
open for it to work

In say Book2.xls,
Assume the source filename is DV selected in A5, eg: Book1.xls

Provided Book1.xls is simultaneously open
then something like this will work:
=VLOOKUP(C5,INDIRECT("'["&A5&"]Sheet1'!A:B"),2,0)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,000 Files:370 Subscribers:66
xdemechanik
---
" wrote:
I have a group of files named sequentially by date. I want to use a dropdown
list to select which file to pull information from. How can I insert the
filename from the dropdown list into a vlookup formula to get the information
from the correct file?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default find files from a dropdown list

Hi,

Suppose the drop down list is in A1 then the general VLOOKUP formula could be

=VLOOKUP(C5,INDIRECT(A1),n,FALSE)

However, most likely it will look more like this:

=VLOOKUP(C1,INDIRECT("'["&A1&".xls]Manual Grouping'!$A$1:$C$21"),2,FALSE)

because the item on the drop down list may only be the file name and not
include the sheet and the range and the xls part, etc.

In this case of course the sheet name and range must be the same in all files.

Now for the real problem he INDIRECT only works with Open files, if the
files are close then it will return an error.

Lotus 1-2-3 allowed references to close files with indirect back in 1982 and
today other spreadsheet also do, even the free Open Office, but not Excel.


If this helps, please click the Yes button

Cheers,
Shane Devenshire


" wrote:

I have a group of files named sequentially by date. I want to use a dropdown
list to select which file to pull information from. How can I insert the
filename from the dropdown list into a vlookup formula to get the information
from the correct file?

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
I can not find the list command from the data dropdown menu? brandim_81 Excel Worksheet Functions 1 September 14th 06 03:04 AM
result of selecting from the dropdown list should be a dropdown list No News Excel Worksheet Functions 0 July 5th 06 04:09 PM
result of selecting from the dropdown list should be a dropdown list No News Excel Worksheet Functions 2 July 1st 06 10:53 AM
Using dropdown list to find file michaelberrier Excel Discussion (Misc queries) 0 June 15th 06 06:55 PM
dropdown list...no help in the help files miketv New Users to Excel 0 May 9th 06 05:34 AM


All times are GMT +1. The time now is 05:35 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"