Linking to another file?

backup69

Active Member
Joined
Jan 20, 2004
Messages
271
Hi

I have 1 file in my computer and source in the local workgroup.
I cant make simple link to the every cell what i need because in the source file user insert rows and my links after that updateing from the wrong cells.
In the both files i have same numbers in the column A and can use some search metod.
I made something like this in vba but maybe i can use some worksheet function?
I explane now what i need or how my macro works.
For examle, i take value from "A5", search same value from source file column A and then take value foundvalue.offset(0,3) from source file and insert this in to the my file "F5".
 

Some videos you may like

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

BrianB

Well-known Member
Joined
Feb 17, 2003
Messages
8,127
There are several "lookup functions" in Excel (see Excel Help) so perhaps something liike this is what you need :-
=VLOOKUP(A5,Sheet2!A:D,4,FALSE)
 

Watch MrExcel Video

Forum statistics

Threads
1,118,514
Messages
5,572,598
Members
412,473
Latest member
theorians
Top