+ Reply to Thread
Results 1 to 8 of 8

Excel 2007 : V/HLOOKUP - automatically reference a new workbook?

Hybrid View

  1. #1
    Registered User
    Join Date
    07-21-2010
    Location
    State College, PA
    MS-Off Ver
    Excel 2007
    Posts
    5

    V/HLOOKUP - automatically reference a new workbook?

    I am trying to use H/VLOOKUP to consolidate data for import into our financials DB. I'm using the following:

    =VLOOKUP(I1, '[user@ourcompany-inc.com_ZSummary_09152010.xls]Loc. COMPANY-38038'!$B$10:$G$121,5,)

    The file is received daily, and it has multiple tabs per day. The only part of the file name that changes daily is the date. When I perform a find/replace to update the date to the next day, I have to point about 100 cells individually to the new workbook. Is there any way to automatically update the workbook reference without having to manually redirect each cell?

    I'm proficient in Excel but only recently have started exploring the more in-depth factors of the program, so talk down to me please.

    Thanks,
    Kristal
    Last edited by KFye; 10-19-2010 at 01:11 PM. Reason: Resolved the issue

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,011

    Re: V/HLOOKUP - automatically reference a new workbook?

    Can you do a global replace? Replace yesterday's date with today's date.

    Or, you could perhaps use INDIRECT in your VLOOKUP and reference a single cell with the date in it. Only one thing to change. :-)

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    07-21-2010
    Location
    State College, PA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: V/HLOOKUP - automatically reference a new workbook?

    The global replace causes Excel to open up a Browse box for every cell that changes (a lot of cells). I'm reading up on indirect, and I will let you know if i find any success! Thanks!

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,011

    Re: V/HLOOKUP - automatically reference a new workbook?

    Are you selecting the "Replace All" option?

    Regards

  5. #5
    Registered User
    Join Date
    07-21-2010
    Location
    State College, PA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: V/HLOOKUP - automatically reference a new workbook?

    Yes, and the Find file browser window opens up 116 times, so I sit and hit Escape for a while. lol

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,011

    Re: V/HLOOKUP - automatically reference a new workbook?

    Apologies. I misunderstood when you said "Browse box"

    Regards

  7. #7
    Registered User
    Join Date
    07-21-2010
    Location
    State College, PA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: V/HLOOKUP - automatically reference a new workbook?

    My lingo isn't technical to any serious degree. I find that "wonky" is an adequate description for most errors. Anyway, I expanded the file name to include the actual file path, and that enabled me to perform a global Find/Replace without asking me to browse for the file each time. Your INDIRECT is going to be very helpful though! I am going to incorporate that and see if I can make a one cell date reference that auto updates all the cells. Thanks for your help!

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,011

    Re: V/HLOOKUP - automatically reference a new workbook?

    You're welcome. You've done most of the work.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1