Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
CH CH is offline
external usenet poster
 
Posts: 49
Default Quick way merge 2 databases using a unique field.

Hi Gurus,

I have 2 databases containin details of the same unique field eg serial number
Is there a simple quick way to merge them by the unique serial number if the
2 databases are found on different sheets of the same work book ?

Database 1
serial_number Field1 Field2
0001 xxx xxx
0002 xxx xxx
.. . .
.. . .
0xxx xxx xxx


Database 2
serial_number Field3 Field4
0001 xxx xxx
0002 xxx xxx
.. . .
.. . .
0xxx xxx xxx

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Quick way merge 2 databases using a unique field.

I believe VLOOKUP will be your new best friend.

Example:
=VLOOKUP(A2,'Database 2'!A:D,3,FALSE)

See XL help file for further detail.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"ch" wrote:

Hi Gurus,

I have 2 databases containin details of the same unique field eg serial number
Is there a simple quick way to merge them by the unique serial number if the
2 databases are found on different sheets of the same work book ?

Database 1
serial_number Field1 Field2
0001 xxx xxx
0002 xxx xxx
. . .
. . .
0xxx xxx xxx


Database 2
serial_number Field3 Field4
0001 xxx xxx
0002 xxx xxx
. . .
. . .
0xxx xxx xxx

  #3   Report Post  
Posted to microsoft.public.excel.misc
CH CH is offline
external usenet poster
 
Posts: 49
Default Quick way merge 2 databases using a unique field.

Hi Luke,

Thanks for your reply. I am familiar with VLOOKUP and I was hoping for a
more efficient way.

Trouble with VLOOKUP is that I have to create the row and column reference
for the VLOOKUP function, this can be quite tedious especially with larger
records.

Thanks anyway for your reply!
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
Counting unique records in a field Loris Excel Discussion (Misc queries) 14 November 30th 08 04:55 PM
Merge two lists to get one with unique records Jugglertwo Excel Discussion (Misc queries) 2 July 2nd 08 09:46 PM
merging 2 excel databases using unique identifiers Steven Miner Excel Discussion (Misc queries) 1 August 15th 07 12:35 AM
merge two data sets one unique CESTOTT Excel Discussion (Misc queries) 2 January 25th 06 03:45 PM
Merge an alpha field and a numeric field grams Excel Discussion (Misc queries) 3 August 29th 05 11:33 PM


All times are GMT +1. The time now is 09:17 PM.

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

About Us

"It's about Microsoft Excel"