Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Excel: Can you link cells bidirectionally?

Posted on 2015-02-06
5
Medium Priority
?
85 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 36

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 2000 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
Viewers will learn how to apply various conditional formatting in Excel 2013.
Video by: Zack
Viewers will learn about using Excel in a browser with Excel Online.

636 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