Consulting

Results 1 to 3 of 3

Thread: Using VLOOKUP with array in different workbook and referencing the filename

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    VBAX Newbie
    Joined
    Apr 2007
    Posts
    5
    Location

    Using VLOOKUP with array in different workbook and referencing the filename

    Hey all. I've got 2 different workbooks I want to compare the data between, sort of an audit thing. In order to get specific data for comparison I was thinking of using a vlookup function. That's no problem. My issues arrive because the names of the workbooks I need to look up the data in change based on what days I'm looking up.

    Now I've got a macro already opened which puts the path and filename as a string in a range name cell. Is there a way to incorporate the range name into the vlookup function? Sort of like:

    =vlookup(Lookup_value,'[RangeName]Sheet!Array]
    If I simply type in the function with that layout it just throws an open dialog box at me to specify the file, but I want it to use the path specified in the Range name cell.

    If there's a better way to do it I'm open to suggestions.

    Thanks,

    Binoy
    Last edited by Aussiebear; 02-17-2025 at 04:03 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •