#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Help

Is it possible to link two cells (that has the same information) and when you
update one it automatically updates the other?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 42
Default Help

Suppose you have information in cell A1. Put this formula in other cell where
u want to update automatically. If the other cell is in other worksheet then
give the reference of sheet name also.
=IF(A1="","",A1)

Vijay

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 523
Default Help

It's easy if you always update one cell and want the other to change, Vijay's
answer does this for you. If you want to be able to change either cell and
have the other update it's trickier.

You'd need to use VB and have a worksheet change event in the sheet. Press
Alt + F11 to get into the VB editor - find the sheet with the cells on it in
the project window & right-click the sheet then choose view code. Paste this
into the code window:

Private Sub Worksheet_Change(ByVal Target As Range)

Application.EnableEvents = False

If Not Intersect(Target, Range("A1")) Is Nothing Then
Range("B1").Value = Range("a1").Value
End If

If Not Intersect(Target, Range("B1")) Is Nothing Then
Range("A1").Value = Range("B1").Value
End If

Application.EnableEvents = True

End Sub

If your linked cells are in two different sheets then the principal is the
same but you need to have a worksheet_change event in each sheet and split
the above into two.



"b46ygurl" wrote:

Is it possible to link two cells (that has the same information) and when you
update one it automatically updates the other?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"