Wednesday, March 26, 2008

How links cells of two different Excel files.

Hi friends from today we are start our tips & tricks section.

Our first topic is how links two cell by formula. For our example we first save two different files with two different names.

Let assumed name of the first file is “first.xls” and the second file name is “second.xls”.

Now first discuss about the case.

Suppose in first.xls file we have stored some detail of our customer which fields are “Name” in the column A, “Address” in the column B, “Credit price” in column C.

A B C

Name Address Credit price

In second.xls file we have stored some extra data which also include a same filed which is same with the first.xls file. The second.xls file may be look like

A B C

Customer name Product name Price

Now start our programming first we have enter some customer detail in first.xls the two same field are in the second.xls which are Name and Credit price.

We don’t want to enter the same data on both the file.

Now open the both file (first.xls, second.xls), activate second.xls window then select b2 cell then enter the formula “=[first]Sheet1!$A$2”, then drag the formula from b2 to b20(as per your requirement).

Again select C2 cell and type the formula “=[first]Sheet1!$C$2”, drag the formula from c2 to c20 (as per your requirement.

Now save both the work book and close it. Open first.xls and enter some data in it save it and close it. Open the second file what you see the data which is enter in the first cell it is automatically copy in the B and C column of the second.xls file.

Note: - Remember one thing you must be put the both file in the same directory for get the result if one of the file is missing from the directory you can not get the proper result.

You also can write a formula by doing this, put “=” in a cell then select the cell which value you want and press enter you formula is written automatically.



AddThis Social Bookmark Button

1 comment:

Unknown said...

dada u are very jinius in excel please teach some such formulas for using the managing account .
ravi & subhash

Subscribe Now: From your browser

Search:

Learn Office Excel