+ Reply to Thread
Results 1 to 3 of 3

Thread: INDIRECT range help

  1. #1
    Registered User
    Join Date
    03-31-2010
    Location
    Portland, OR
    MS-Off Ver
    Excel 2007
    Posts
    38

    INDIRECT range help

    Quick help on this would be appreciated

    The formula below works perfectly:

    =INDEX(INDIRECT("'C:\Users\WB\Historical\[EURUSD_2010TD_M15BID.xlsx]M15BID'!"&"$B"&$M12):[EURUSD_2010TD_M15BID.xlsx]M15BID!$D2012,MATCH(TRUE,INDEX(INDIRECT("'C:\Users\WB\Historical\[EURUSD_2010TD_M15BID.xlsx]M15BID'!"&"$D"&$M12):[EURUSD_2010TD_M15BID.xlsx]M15BID!$D2012>=$Q12,0),0),1))))

    But, I want to alter the above formula exchange the value "$D2012" (which is referenced twice in this formula) with another INDIRECT reference that gets the cell reference for the row at $X12 instead of it being hardcoded in as 2012. Essentially &"$D"&$X12 .Obviously I am missing a parenthesis, bracket or something.

    A fix on this would be very helpful...
    Last edited by williampdx; 09-26-2011 at 04:37 PM.

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: INDIRECT range help

    Does this work?

    =INDEX(INDIRECT("'C:\Users\WB\Historical\[EURUSD_2010TD_M15BID.xlsx]M15BID'!"&"$B"&$M12&":$D"&$X12),MATCH(TRUE,INDEX(INDIRECT("'C:\Users\WB\Historical\[EURUSD_2010TD_M15BID.xlsx]M15BID'!"&"$D"&$M12&":$D"&$X12)>=$Q12,0),0),1)
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    03-31-2010
    Location
    Portland, OR
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: INDIRECT range help

    That's it! Thanks for the help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0