+ Reply to Thread
Results 1 to 6 of 6

& in file reference in excel formula

  1. #1
    Forum Contributor
    Join Date
    04-24-2012
    Location
    Moscow
    MS-Off Ver
    Excel 2010
    Posts
    291

    & in file reference in excel formula

    Hi all!

    i use the function =INDEX('F:\ANALIS\FIXD_INC\DAILY\new\SYSTEM\EXTER_DEBT\[CIS_BONDS_120716.xls]Sheet1'!$B$3:$I$263,MATCH(B3,'F:\ANALIS\FIXD_INC\DAILY\new\SYSTEM\EXTER_DEBT\[CIS_BONDS_120716.xls]Sheet1'!$B$3:$B$262,0),7)

    the part of the file name in bold is the date. There are pull of files, names of wich differ only by this date-part. I wanna play with these dates in the files names with & operator. For example, i in the col A i put 100 rows of different dates and then drag the above formula, while all formulas refer to different files according to the date in the col A.

    Is it possible? pretty sure it is, but how??

    Thanks in advance!!

  2. #2
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: & in file reference in excel formula

    see post #5...
    Last edited by icestationzbra; 08-03-2012 at 01:21 PM. Reason: correction
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  3. #3
    Forum Contributor
    Join Date
    04-24-2012
    Location
    Moscow
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: & in file reference in excel formula

    Thanks for replying!!

    =INDEX('F:\ANALIS\FIXD_INC\DAILY\new\SYSTEM\EXTER_DEBT\[indirect("CIS_BONDS_"&text(today(),"YYMMDD")&".xls"]Sheet1'!$B$3:$I$263,MATCH(...

    This doesn't work #REF! error

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: & in file reference in excel formula

    indirect only works if the source workbook is open so you don't need the path in there but if you include it it must be part of the string passed to indirect.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  5. #5
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: & in file reference in excel formula

    hi alexander,

    as @JosephP pointed out, the string would be something like:

    Please Login or Register  to view this content.
    and, remember, emphasis is on the "source" file being open.

  6. #6
    Forum Contributor
    Join Date
    04-24-2012
    Location
    Moscow
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: & in file reference in excel formula

    Thanks you all! i guess it's indeed the best option available.

+ 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