+ Reply to Thread
Results 1 to 6 of 6

Linking to referenced cell automatically

  1. #1
    Registered User
    Join Date
    09-29-2008
    Location
    Sydney
    MS-Off Ver
    2016
    Posts
    42

    Exclamation Linking to referenced cell automatically

    Hi Everyone!
    I would like to know how I can automatically link a cell to its referenced cell.
    For example... from my attached file.

    A1 - A5 are all referenced to cells somewhere else. I need a script/method to automatically create a link linking those cells to their referenced cells.
    So that A1 would be referenced and linked to E1.

    Please help me. Greatly appreciated!
    Thank you!
    Attached Files Attached Files

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

    Re: Linking to referenced cell automatically

    I'm confused, they're already linked.
    _________________
    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!)

  3. #3
    Registered User
    Join Date
    09-29-2008
    Location
    Sydney
    MS-Off Ver
    2016
    Posts
    42

    Re: Linking to referenced cell automatically

    oh, sorry, i linked them manually.
    That's the problem.
    I have spreadsheets with a lot of references, and they all need to be linked...
    i would like to have an automated way, would save me a lot of grunt work.

    Thank you

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

    Re: Linking to referenced cell automatically

    Your "sample" sheet needs to not be dumbed down to the point we cant' offer a usable suggestion.

    I imagine this will be a macro then, yes? Post up one of your real workbooks, or a reasonably sufficient excerpt to fully represent everything a macro would have to get right.

  5. #5
    Registered User
    Join Date
    09-29-2008
    Location
    Sydney
    MS-Off Ver
    2016
    Posts
    42

    Re: Linking to referenced cell automatically

    This is a scorecard that I am in charge of producing.
    It is just one of many similar ones as we have many servicelines.

    On the SSO tab, you would notice that only the financial's section has figures in it. I deleted the other tabs (kpi,compliance etc) because the spreadsheet initially is at least 2 Mb.

    Most of the cells on the scorecard are referenced to the other tabs in the spreadsheet (eg. sso financial). and i manually linked them all.


    Yes, i would like a macro that would
    1.recognise a cell thats being reference on the scorecard.
    2.link that cell to the data source, which is in other tabs of the spreadsheet.

    Thank you very much for your help
    Attached Files Attached Files

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

    Re: Linking to referenced cell automatically

    The choatic nature of the design is going to make simplification of formulas very difficult. In this sample, I've eliminated all the duplicate Jan-Dec values on the SSO Finance sheet and created a standard table format where the values like "Utilization" (sp?) is on the same row as the pertinent data.

    Also Jan-Dec are actually date values now that match the values you've used on the SSO sheet.

    Once those changes were made, you could change the direct links on the SSO sheet at cell C15 with a standard INDEX(Range,Match(value),Match(Date)) format.

    =INDEX('SSO Finance'!$R:$AC,MATCH(SSO!$B15,'SSO Finance'!$Q:$Q,0),MATCH(SSO!C$5,'SSO Finance'!$R$12:$AC$12,0))

    You can simply copy that to the right and it grabs the correct values without having to rewrite the formulas for each cell. This is the benefit of organized TABLE formats.

    But the random design is far too complex to solve all your problems this way without you starting over with a great deal of the layout. This is just to give you an understanding of what you would need to do and what you could do once you had.
    Attached Files Attached Files

+ 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