conditional linking

  • Thread starter Thread starter kram99
  • Start date Start date
K

kram99

I am trying to set up a workbook where if say cell D12 is true then link
cells A12,B12,C12 to workbook x or if cell D12 is false then link cells
A12,B12,C12 to workbook y can anyone help me ? :confused:
 
kram99 said:
I am trying to set up a workbook where if say cell D12 is true then link
cells A12,B12,C12 to workbook x or if cell D12 is false then link cells
A12,B12,C12 to workbook y can anyone help me ? :confused:


Are workbooks x and y the alternative sources, or are you trying to send
data to alternative destinations?

If they are alternative sources, you need formulas such as:
=IF($D$12,[Workbookx]Sheet1!A12,,[Workbooky]Sheet1!A12)
for open workbooks, or
=IF($D$12,'C:\Path\[Workbookx]Sheet1'!A12,'C:\Path\[Workbooky]Sheet1'!A12)
for a closed workbook.
The best way of entering such a formula is to have both source workbooks
open, then start typing the formula and when a cell reference is required,
navigate to that cell to get its reference. This way, you get the correct
syntax. It will automatically change when you close the source workbooks.
Having entered one formula in A12, you can copy to B12 and C12.

If you are trying to send data to alternative destinations, you cannot do
this. You are trying to 'push' data from one place to another. In Excel, you
'pull' data. So links between workbooks need to be entered in the
destination workbook, not the source workbook. You cannot put a formula in a
source workbook to send data to other workbooks.
 
Thanks Paul
Let me try to explain more clearer I have 3 workbooks and I want to b
able to enter data into book 1 and depending on the data true or fals
have it linked to either book 2 or book 3 I tried your sugestion wit
the formula

=IF('[ Book 1.xls]Sheet1'!$M$7 = FALSE,'[ Boo
2.xls]Sheet1'!$A$7='[Book1.xls]Sheet1'!$A$7,' [Boo
3.xls]Sheet1'!$A$7=[Book1.xls]Sheet1'!$A$7)

But all it would return in the cell value is true or false and doesn'
pull the data from the relivant cel
 
Back
Top