+ Reply to Thread
Results 1 to 2 of 2

Trying to access different files depening on a variable

  1. #1
    Priorsyeat
    Guest

    Trying to access different files depening on a variable

    I am trying to access other excel files depending on a variable in my current
    worksheet
    ie ='["Plan 200"&q5-1&" 200"&q5&".xls"]Main'!P36 such that when q5 is 6 then
    the expression will be
    ='[Plan 2005 2006.xls]Main'!P36

  2. #2
    Bob Phillips
    Guest

    Re: Trying to access different files depening on a variable

    =INDIRECT("'["Plan 200"&q5-1&" 200"&q5&".xls"]Main'!P36")

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Priorsyeat" <[email protected]> wrote in message
    news:[email protected]...
    > I am trying to access other excel files depending on a variable in my

    current
    > worksheet
    > ie ='["Plan 200"&q5-1&" 200"&q5&".xls"]Main'!P36 such that when q5 is 6

    then
    > the expression will be
    > ='[Plan 2005 2006.xls]Main'!P36




+ 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