+ Reply to Thread
Results 1 to 12 of 12

Tying two cells together so they are MUTUALLY dependent

  1. #1
    Forum Contributor
    Join Date
    07-17-2012
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    218

    Tying two cells together so they are MUTUALLY dependent

    Hi,

    Does anyone know if one could equate two cells in Excel, say A1 and C1, such that if I change A1, then C1 will change to reflect the data of A1, and if I change C1, A1 will reflect the data of C1? I don't believe formulas will permit this since when you enter data into a cell, it removes the formula. But perhaps Excel has another tool for this? I would like to ideally avoid macros because this file would go to a larger audience and so any security concerns would be an inconvenience.

    Thank you!

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Tying two cells together so they are MUTUALLY dependent

    This can only be done through VBA (macros).
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: Tying two cells together so they are MUTUALLY dependent

    what about establishing two cells as data entry Cells - and two Cells as reults
    If you change data in A1 - then B2 would change, change data in B1 then A2 would change?

    It would help to have more info.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Tying two cells together so they are MUTUALLY dependent

    Hi,

    Your belief is correct. You would need a Sheet Change event driven macro.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Forum Contributor
    Join Date
    07-17-2012
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    218

    Re: Tying two cells together so they are MUTUALLY dependent

    Quote Originally Posted by CRIMEDOG View Post
    what about establishing two cells as data entry Cells - and two Cells as reults
    If you change data in A1 - then B2 would change, change data in B1 then A2 would change?

    It would help to have more info.
    Crimedog, I have about 10 tabs in a workbook that all have a cell in say A1 that should be the same value, as the rest of the formulas depend on what is in A1. If I change A1 to say apple, sheet 1 will show the data of apples in say CA, and sheet 2 the data of apples in say FL. If I change A1 to say bananas, the data will update again. The goal here however is so that users can change this A1 on every sheet, and only do it one time so all other sheets update accordingly. I know this can probably be done quite easily with vba, but would like to avoid it if possible.

    Does this additional detail help? Would the consensus still be it's not possible?

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Tying two cells together so they are MUTUALLY dependent

    Hello,

    You should upload your actual workbook with a before and after situation and any notes which clearly explain how you get from one to the other.
    This latest information does not seem consistent with your earlier info. You now seem to be saying that there are dependent quantities involved rather than just a simple cell 'toggle'.

  7. #7
    Forum Contributor
    Join Date
    07-17-2012
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    218

    Re: Tying two cells together so they are MUTUALLY dependent

    Quote Originally Posted by Richard Buttrey View Post
    Hello,

    You should upload your actual workbook with a before and after situation and any notes which clearly explain how you get from one to the other.
    This latest information does not seem consistent with your earlier info. You now seem to be saying that there are dependent quantities involved rather than just a simple cell 'toggle'.


    What I'm trying to do is that whenever I update the blue cell in say sheet 1, the blue cells in sheets 2 and 3 also update, and vice versa.

    To clarify, this is just an example of what I'm trying to do. I recognize there are ways to improve upon this sample version, for example by combining sheets 1-3 into one and just have another "blue cell" for state as well. But the actual workbook I'm working with is a lot more layered, for example each output sheet will have a graph on it, and so this workaround doesn't apply. My principal goal is to increase user ease so that when they change the blue cell in any one of the output sheets, all output sheets will match the same value. I know you could have a single blue cell in say the Data sheet that users could navigate to and change, and link all subsequent pages to that single cell, but doing so removes a lot of the fluidity since they should be able to adjust the blue cell on any sheet to immediately see updated data and the accompanied graph, etc.
    Last edited by lesoies; 09-25-2012 at 03:01 PM.

  8. #8
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: Tying two cells together so they are MUTUALLY dependent

    how many catagories are there?

  9. #9
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: Tying two cells together so they are MUTUALLY dependent

    Got it.
    Isert a form control Combo Box on each sheet using a category list on the first sheet.
    See attached.
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    07-17-2012
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    218

    Re: Tying two cells together so they are MUTUALLY dependent

    Quote Originally Posted by CRIMEDOG View Post
    Got it.
    Isert a form control Combo Box on each sheet using a category list on the first sheet.
    See attached.
    crimedog, that's actually what I'm thinking that I'd do if the mutually linking cells doesn't work out. The reason I'd prefer to not use form control is that there are actually 200 "fruit types" in my data (sounds like you guessed this when you asked about the number of categories!), and so it's easier for the user to enter it as opposed to scrolling through the list. It doesn't look like the newer Excels support a form control that permits manual entering (I believe I read about how this older MS Excel 5.0 Dialog permitted it, but the older version would not work with my other data manipulations).

  11. #11
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    665

    Re: Tying two cells together so they are MUTUALLY dependent

    that is the best without macros (I think)
    I would probably create a little User Form with a text box.
    The thing about typing instead of picking from a dropdown: the accuracy is not as good (typos etc...)
    Are your "fruit" grouped in categories? (like manufacturers) that would limit the lists?
    So- pick manufactuer 1 and then choose from 10 - etc...

  12. #12
    Forum Contributor
    Join Date
    07-17-2012
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    218

    Re: Tying two cells together so they are MUTUALLY dependent

    Quote Originally Posted by CRIMEDOG View Post
    that is the best without macros (I think)
    I would probably create a little User Form with a text box.
    The thing about typing instead of picking from a dropdown: the accuracy is not as good (typos etc...)
    Are your "fruit" grouped in categories? (like manufacturers) that would limit the lists?
    So- pick manufactuer 1 and then choose from 10 - etc...
    I've been resolving the accuracy concern you listed with data validation, which seems to work well.

    The "fruits" are not further groupable in subcategories.

    Sounds like my best bet is go with combo box as you listed earlier.

    Thank you, everyone!

+ 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