+ Reply to Thread
Results 1 to 5 of 5

Alternative to "INDIRECT"

  1. #1
    Registered User
    Join Date
    11-23-2011
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003
    Posts
    5

    Alternative to "INDIRECT"

    Hi, I was just wondering if anyone had a possible alternative to the indirect function.

    I am using it to refer to cells in other workbooks. The reason I am using INDIRECT is because each column on my workbook relates to a different sheet in the other workbook depending on the week number.

    The problem I have with the function is a common one - doesnt work when the other workbook is not open. As I will be referring to a number of different workbooks and will have multiple users of the workbook, this is not practicable.

    Contents of cells in my workbooks:
    S73: =INDIRECT(S$67)
    S67: ="'C:\Inbound Subs\Daily Stats\[Daily stats 2011.xls]"&S14&"'!$a$4"
    S14: "Week 18"
    [i.e I need the value of cell A4 from the 'week 18' sheet of the 'daily stats' workbook in cell S73 of the current workbook]

    Similarly, in column T, I have the same formula in rows 73 and 67, but the value in cell T14 is "Week 19" because the cell value I am trying to retrieve is in the sheet called "Week 19" in the 'daily stats' workbook.
    [i.e I need the value of cell A4 from the 'week 19' sheet of the 'daily stats' workbook in cell T73 of the current workbook]


    Does anyone have any kind of suggestions (apart from manually changing 52 references)?

    Thanks
    Karen

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Alternative to "INDIRECT"

    INDIRECT.EXT from MoreFunc

    Ouuch... Third Party!!!!
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Alternative to "INDIRECT"

    A macro can do the "manual" corrections to the formulas in the range of cells to construct the references for you the same way INDIRECT() does except it would enter the formulas correctly for you each time.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    11-23-2011
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Alternative to "INDIRECT"

    Thanks guys - I will try a macro.

  5. #5
    Registered User
    Join Date
    11-23-2011
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Alternative to "INDIRECT"

    I thought I would report that a Macro was too much for me so what I did was:

    Copy value of S67 across so that the week number incremented.
    Copied those cells and pasted special values into row 73 and then did a find and replace to place an '=' sign at the beginning of each cell which turned it into a formula.

    Not as dynamic as I would have liked, but it did the job.

    Thanks again for your 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.6.0 RC 1