A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

linking two sheets in a third sheet



 
 
Thread Tools Display Modes
  #1  
Old August 1st, 2004, 04:35 PM
Nic
external usenet poster
 
Posts: n/a
Default linking two sheets in a third sheet

Hey,

I have a problem and want to solve it in excel.
I have two sheets as follows:

Sheet1 : Sheet2:
Nr Name Nr address zip code ...
1 A 1 xx xx
4 X 2 yy yyy
6 Z 3 zz zz
4 ee ee
5 ss ss
6 dd dd

I want to make a third sheet with all the information of sheet 1 and only the informatie of sheet 2 for the lines with an identical number in sheet1 (linking sheet1 and sheet2 via Nr)

Results of sheet 3 :
Nr Name Nr address zip code ...
1 A 1 xx xx
4 X 4 ee ee
6 Z 6 dd dd

So, for all the lines in sheet1, I searched the linked information in sheet2 and shows alle the information per number in sheet3

Anyone an idea how to do this. Maybe I have to write VBA, but I never did that.
An other way is to read all the informatie in Access (but there are to much sheets to link and I want to know if there is now way in excel or in vba)

thanks in advance
Nic

  #2  
Old August 1st, 2004, 05:31 PM
Frank Kabel
external usenet poster
 
Posts: n/a
Default linking two sheets in a third sheet

Hi
try the following
- copy your data from sheet1 to your third sheet
- in column C (cell C1) of sheet3 enter
=VLOOKUP(A1,'sheet2'!$A$1:$D$100,2,0)

and copy down

in D1 enter
=VLOOKUP(A1,'sheet2'!$A$1:$D$100,3,0)


--
Regards
Frank Kabel
Frankfurt, Germany


Nic wrote:
Hey,

I have a problem and want to solve it in excel.
I have two sheets as follows:

Sheet1 : Sheet2:
Nr Name Nr address zip code ...
1 A 1 xx xx
4 X 2 yy yyy
6 Z 3 zz zz
4 ee ee
5 ss ss
6 dd dd

I want to make a third sheet with all the information of sheet 1 and
only the informatie of sheet 2 for the lines with an identical number
in sheet1 (linking sheet1 and sheet2 via Nr)

Results of sheet 3 :
Nr Name Nr address zip code ...
1 A 1 xx xx
4 X 4 ee ee
6 Z 6 dd dd

So, for all the lines in sheet1, I searched the linked information in
sheet2 and shows alle the information per number in sheet3

Anyone an idea how to do this. Maybe I have to write VBA, but I never
did that.
An other way is to read all the informatie in Access (but there are
to much sheets to link and I want to know if there is now way in
excel or in vba)

thanks in advance
Nic


  #3  
Old August 1st, 2004, 05:42 PM
Max
external usenet poster
 
Posts: n/a
Default linking two sheets in a third sheet

One way ..

In Sheet3
------------
Put in A1: =OFFSET(Sheet1!$A$1,ROW(A1)-1,COLUMN(A1)-1)

Copy across to B1, then down as many rows as there is data in Sheet1

Copy the labels in C1, D1, etc from Sheet2 paste in Sheet3's corresponding
cells

Put in C2:
=IF(ISNA(MATCH($A2,Sheet2!$A:$A,0)),"",OFFSET(Shee t2!$A$1,MATCH($A2,Sheet2!$
A:$A,0)-1,COLUMN(A1)))

Copy C2 across to D2*, then down as many rows as there is data in Sheet1
*or across as many cols as necessary to extract from Sheet2

For a neater look, we can suppress extraneous zeros from showing via:
Tools Options View tab Uncheck "Zero values" OK

--
Rgds
Max
xl 97
--
Please respond, in newsgroup
xdemechanik atyahoodotcom
---
"Nic" wrote in message
...
Hey,

I have a problem and want to solve it in excel.
I have two sheets as follows:

Sheet1 : Sheet2:
Nr Name Nr address zip code ...
1 A 1 xx xx
4 X 2 yy yyy
6 Z 3 zz zz
4 ee ee
5 ss ss
6 dd dd

I want to make a third sheet with all the information of sheet 1 and only

the informatie of sheet 2 for the lines with an identical number in sheet1
(linking sheet1 and sheet2 via Nr)

Results of sheet 3 :
Nr Name Nr address zip code ...
1 A 1 xx xx
4 X 4 ee ee
6 Z 6 dd dd

So, for all the lines in sheet1, I searched the linked information in

sheet2 and shows alle the information per number in sheet3

Anyone an idea how to do this. Maybe I have to write VBA, but I never did

that.
An other way is to read all the informatie in Access (but there are to

much sheets to link and I want to know if there is now way in excel or in
vba)

thanks in advance
Nic



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
linking 2 work sheet to update one sheet andy Worksheet Functions 1 March 30th, 2004 11:16 AM
Help - Linking sheets and data from Sheet 1 to blank worksheet Bimmy Worksheet Functions 1 March 11th, 2004 06:51 AM
Linking data between sheets A.W.J. Ales Worksheet Functions 2 February 19th, 2004 08:37 PM


All times are GMT +1. The time now is 11:42 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.