Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Merge data from 2 Excel worksheets

OS Win Xp SP2, Excel 2004 SP1
I have 2 different types of excel spreadsheets, a company spreadsheet
and a contact spreadsheet.
The company database has an address field and the contact database
does not.

I'd like to compare both databases on the company field and add the
address elements of Address, city, state and zip to the contact
database.

I am not a programmer, but can follow an example or directions to do
this.

TIA
Bob

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 618
Default Merge data from 2 Excel worksheets

Hi

you don't actually need to use code for this, the VLOOKUP function can be
used instead

assume the company sheet is set up as follows
.........A.............B....................C..... .....D..........E
1....Company...Address.........City....State...... Zip
2....ABC.........15 North Rd...Perth...WA......6000

and the contact one is set up as follows
.........A.............B..............C..........D ..........E..........F
1....Company...Contact...Address...City......State .....Zip
2....ABC...........Fred........................... .........................

the formula for contact sheet C2 would be
=VLOOKUP(A2,Company!$A$2:$E$1000,2,0)

the formula for contact sheet D2 would be
=VLOOKUP(A2,Company!$A$2:$C$1000,3,0)
the formula for contact sheet E2 would be
=VLOOKUP(A2,Company!$A$2:$E$1000,4,0)
the formula for contact sheet F2 would be
=VLOOKUP(A2,Company!$A$2:$C$1000,5,0)


you could then select these cells and fill down (select the cells and
then move your mouse over the bottom right hand corner of F2 and when you
see a + double click)

Hope this helps
Cheers
JulieD



wrote in message
...
OS Win Xp SP2, Excel 2004 SP1
I have 2 different types of excel spreadsheets, a company spreadsheet
and a contact spreadsheet.
The company database has an address field and the contact database
does not.

I'd like to compare both databases on the company field and add the
address elements of Address, city, state and zip to the contact
database.

I am not a programmer, but can follow an example or directions to do
this.

TIA
Bob



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Merge data from 2 Excel worksheets

Thanks Julie, i'll give it a try.
Bob
On Sat, 12 Mar 2005 00:48:34 +0800, "JulieD"
wrote:

nt types of excel spreadsheets, a company spreadsheet
and a contact s


Reply
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
Merge data from different worksheets Merlin Excel Discussion (Misc queries) 3 June 4th 09 06:56 PM
two worksheets, combine (merge data) rrupp Excel Discussion (Misc queries) 2 August 1st 07 08:06 AM
Is it possible to merge data from two worksheets? Valerian Excel Worksheet Functions 2 May 12th 06 06:19 PM
matching data to merge two worksheets Gabrielle Excel Discussion (Misc queries) 1 February 23rd 06 05:28 AM
How do I merge similar data across different excel worksheets? MK Excel Discussion (Misc queries) 1 August 11th 05 12:17 AM


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