Solved

Excel: Can you link cells bidirectionally?

Posted on 2015-02-06
5
75 Views
Last Modified: 2016-02-11
As we all know, in Excel you can enter data into one cell and then within another cell refer to that cell so that the contents of cell 1 is automatically displayed in cell 2 and cell 2 automatically updates when you modify cell 1.

Can that be set up to work both ways?  I have a data field on Sheet 1 (cell 1) that I refer to in Sheet 2 (cell 2).  However, not only do I want to have cell 2 automatically update when cell 1 is changed, I want cell 1 to automatically change if I modify cell 2.

I guess the behavior I am looking for would be similar to linked Word headers, where whether you change the header in Section 1 or change it in Section 2, the same contents is automatically displayed in both.

Is that possible?
0
Comment
Question by:Dave Kong
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 35

Expert Comment

by:Kimputer
ID: 40594968
That kinda doesn't make any sense. Unless you explain in great detail what the content should be (and probably we'll have to find a different solution). Right now, your simple suggestion would lead to a circular reference which won't work. Your solution would probably involve vba and a global variable.
0
 

Author Comment

by:Dave Kong
ID: 40594986
It is a work slip from.  I have the main page for basic information with a field for the job requestor's name.  I have a separate page for specific information if the job involves, for example, printing.  If you fill in the requestor name I  can have that shown on the printing page.  However, one of my users wants to go immediately to the printing page when needed and fill in all the needed information on that sheet.  Being able to reflect that info back on the first page would make it a bit quicker to review.

I had discussed it with our Excel expert here.  Our initial thought was yours - that it would lead to a circular reference.  So no, I don't think it is possible either, but had to check in case one of the brilliant minds on this site knew something we don't.

Thanks.
0
 
LVL 20

Expert Comment

by:jmcg
ID: 40595110
I'm not expert enough to give precise details, but you could set up a Worksheet_Change event that would run when either cell is updated; the macro would then be able to change the other cell.

For an example, perhaps this link would help:

http://stackoverflow.com/questions/409434/automatically-execute-an-excel-macro-on-a-cell-change

There's probably an example somewhere here on ExpEx, but this is the one that came up first.
0
 
LVL 20

Accepted Solution

by:
jmcg earned 500 total points
ID: 40595179
0
 

Author Closing Comment

by:Dave Kong
ID: 40606281
Excellent!  I didn't think it was possible but thought someone here might know how to do it.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an Add-On procedure to be used in conjunction with the code provided in Reducing EE Email Clutter using Outlook (http://www.experts-exchange.com/Software/Office_Productivity/Groupware/Outlook/A_3146-Outlook-Processing-EE-emails-on-Receive.…
Modern/Metro styled message box and input box that directly can replace MsgBox() and InputBox()in Microsoft Access 2013 and later. Also included is a preconfigured error box to be used in error handling.
Viewers will learn a basic data manipulation technique of unpivoting data in Power Query for Excel 2013 and the importance of using good data. Start with data in a poor structure: Create a table on your data: Unpivot columns: Rename columns: …
Video by: Zack
Viewers will learn the basics of using Excel Tables, the benefits found with them, and some pitfalls.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question