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
Solved

Excel: Can you link cells bidirectionally?

Posted on 2015-02-06
5
72 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
  • 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

: Microsoft Office Collaborate for free and online versions of Microsoft  Word, Excel, Powerpoint, OneNote, Onedrive , Email, Calendar etc. In short we can say that Microsoft office is a suite of servers, applications and services developed by  Micr…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Viewers will learn the basics of using filtering and sorting in Excel 2013.
Viewers will learn the basics of formula auditing in Excel 2013.

791 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