LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 457
Default connecting formulas

Not possible with just XL...if you want to use VB, you could try this.
Right click on sheet tab, view code, paste the following in:

'=============
Private Sub Worksheet_Change(ByVal Target As Range)
'If not changing A1 or B1, or if you change a group of cells
'then do nothing
If Intersect(Target, Range("A1:B1")) Is Nothing Or _
Target.Count 1 Then Exit Sub

Application.EnableEvents = False
If Target.Address = Range("A1").Address Then
'Formula that controls B1
Range("B1").Value = 0.2 - Range("A1").Value
Else
'Formula that controls A1
Range("A1").Value = 0.2 - Range("B1").Value
End If
Application.EnableEvents = True
End Sub
'=============

Back in XL, you can then change A1/B1, and the other cell will change
accordingly.

--
Best Regards,

Luke M
"Chris" wrote in message
...
ok, so it's not possible...thanks anyway
Chris

"Eduardo" wrote:

Hi,
if you enter the % in both cells you will overwrite the formulas you need
to
have the formula in one cell,


"Chris" wrote:

This would work in one direction. is it also possible for both
directions so
i could change percentages in A1 or in B1?

Thanks,
Chris

"Jacob Skaria" wrote:

In cell A1 enter 20% and in cell B1 enter formula

=0.2-A1

--
Jacob


"Chris" wrote:

I'm working on a Excel sheet where I have to connect two formulas
as follows:

A1 and B1 have together a value of 20%. if A1 is 12%, B1 should
automatically shows 8% and vice versa. I tried it with A1: =0.2-B1;
B1:
=0.2-A1 but its not working properly. Could someone please help me?

Thanks in advance!



 
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
connecting bar graphs ogerriz Charts and Charting in Excel 2 May 13th 09 11:00 PM
Connecting multiple IF THEN formulas in one cell hmlguru Excel Worksheet Functions 6 July 18th 08 03:56 PM
Connecting Worksheets Danzeez Excel Worksheet Functions 0 January 24th 08 02:08 AM
Connecting formulas Crosscatch Excel Worksheet Functions 2 December 2nd 07 09:04 PM
connecting to databases dstiefe Excel Discussion (Misc queries) 1 September 4th 05 03:40 AM


All times are GMT +1. The time now is 03:19 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"