Results 1 to 6 of 6

Thread: Link in Formula

  1. #1
    New Member
    Join Date
    Dec 2013
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Link in Formula

    Hi,
    I'm using index match reference, but I have to change every formula one by one, is there a faster way?
    HTML Code:
    https://ibb.co/X2pcKzP
    See the photo attached, I have to change the formula in G56 from '[7 July Shop Yields.xlsx]1.7' to '[7 July Shop Yields.xlsx]2.7'! manually but whereby F56 already stated 2.7, is there a way where it can take reference from there?
    Thanks in advance!!

  2. #2
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    28,185
    Post Thanks / Like
    Mentioned
    470 Post(s)
    Tagged
    47 Thread(s)

    Default Re: Link in Formula

    Have a look at the Indirect function https://exceljet.net/excel-functions...irect-function
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

  3. #3
    Board Regular
    Join Date
    Nov 2006
    Location
    London
    Posts
    8,186
    Post Thanks / Like
    Mentioned
    20 Post(s)
    Tagged
    2 Thread(s)

    Default Re: Link in Formula

    If you also incorporate INDEX(A$55:A$1000,ROW($1:1),1) you can pick out the 1.7, 2.7 etc going down the column
    So something like

    INDIRECT("'[7 July Shop yields.xlsx]"&INDEX(A$55:A$1000,ROWS($1:1),1)&"'!$AA$200:AA339")

    and adjust the second part of the formula too

  4. #4
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    28,185
    Post Thanks / Like
    Mentioned
    470 Post(s)
    Tagged
    47 Thread(s)

    Default Re: Link in Formula

    Or even
    INDIRECT("'[7 July Shop Yields.xlsx]"&F56&"'!"$AA$200:$AA339")
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

  5. #5
    New Member
    Join Date
    Dec 2013
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Link in Formula

    Thank you all for the information!
    It did work when both the spreadsheet is opened, but once the reference is turned off, the 'link' kinda changed, but nevermind, I will slowly digest the indirect function, I'm starting to get a hang of it now...
    thanks guys, you are awesome!

  6. #6
    MrExcel MVP
    Moderator
    Fluff's Avatar
    Join Date
    Jun 2014
    Location
    Chippenham
    Posts
    28,185
    Post Thanks / Like
    Mentioned
    470 Post(s)
    Tagged
    47 Thread(s)

    Default Re: Link in Formula

    Indirect only works on open workbooks and when the "7 July Shop Yields.xlsx" workbook is closed you will see the full file path in the formula
    - Posting Data try one of these tools
    - Posting guidelines, forum rules and terms of use
    - Read the FAQs

    Running Office 365 on Win 10

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •