Excel: Can you link cells bidirectionally?

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?
Dave KongAsked:
Who is Participating?
 
jmcgConnect With a Mentor OwnerCommented:
0
 
KimputerCommented:
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
 
Dave KongAuthor Commented:
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
 
jmcgOwnerCommented:
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
 
Dave KongAuthor Commented:
Excellent!  I didn't think it was possible but thought someone here might know how to do it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.