+ Reply to Thread
Results 1 to 2 of 2

How do I use a cell as a referance to a file in a lookup statemen.

  1. #1
    SarahP
    Guest

    How do I use a cell as a referance to a file in a lookup statemen.

    I have a file that is a summary. I want to look up data in another file
    using a cell in the summary file to define part of the file name. For
    example: Cell A5 contains 2008. I want to have a formula like
    =VLOOKUP(B4,'H:\Sarah P\CQI or PIP\Acute Inventory\Test
    Process\[2008.xls]count_sheet'!$B:$E,4,FALSE) I want to use the cell
    referance of A5 to represent the number (2008) in the formula.

  2. #2
    Harlan Grove
    Guest

    Re: How do I use a cell as a referance to a file in a lookup statemen.

    SarahP wrote...
    >I have a file that is a summary. I want to look up data in another

    file
    >using a cell in the summary file to define part of the file name. For


    >example: Cell A5 contains 2008. I want to have a formula like
    >=VLOOKUP(B4,'H:\Sarah P\CQI or PIP\Acute Inventory\Test
    >Process\[2008.xls]count_sheet'!$B:$E,4,FALSE) I want to use the cell
    >referance of A5 to represent the number (2008) in the formula.


    If the other file would be open, you can use INDIRECT.

    =VLOOKUP(B4,INDIRECT("'["&A5&".xls]count_sheet'!B:E"),4,0)

    If the other file wouldn't be open, you'll need alternative #4 in

    http://groups-beta.google.com/group/...443753560f0075
    (or http://makeashorterlink.com/?F2993260A )


+ 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