MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Feb 22nd, 2002, 09:53 AM   #1
Helen
Board Regular
 
Join Date: Feb 2002
Posts: 103
Default

I have 2 databases, both based on part numbers. I need to compare the two and find if the two databases have the same part & the same letters & the same values. They are also very mixed and some parts are different in both databases, therefore they cannot all match, but I need to match up what I can, so I can then compare the databases to see if they are the same.

I am not too sure if this makes any sense, but here is an example listing:

Database 1 Database 2
Part Let Val Part Let Val
72822 aa 22 72824 cc 44
72823 bb 60 72825 dd 45
72824 cc 44 72826 ee 100
72830 ii 98 72827 ff 64
72826 ee 100 72828 gg 59
72827 ff 64 72829 hh 72
72828 gg 59 72830 ii 98

- therefore I need a formula to search for the same enteries in both databases and return the values for example, or a variance
- for example 72830 ii 98 are the same in both databases.

I hope I have explained this clearly.
Thanks.
Helen is offline   Reply With Quote
Old Feb 22nd, 2002, 12:23 PM   #2
Tom Morales
Board Regular
 
Join Date: Feb 2002
Location: Richland, Washington
Posts: 91
Default

Helen -
Some points of clarification:

By "database" are we talking about an Excel spreadsheet with this data on it? If I understand you, you have six columns of data.
On a given row, the two sets of three columns each identify a unique part. (ie, 72822 aa 22 is a unique part that you're trying to compare with the data somewhere in the next three columns.)

Is it possible that there is more than one match for a given data set?

Tom

[ This Message was edited by: Tom Morales on 2002-02-22 11:36 ]
Tom Morales is offline   Reply With Quote
Old Feb 23rd, 2002, 03:25 AM   #3
Helen
Board Regular
 
Join Date: Feb 2002
Posts: 103
Default

Yes I do mean data in Excel, I shouldn't really call it a database I suppose.

Yes they are unique items in each database, and I'm not too sure if there might be more than one match, but not very likely so we'll go with not.

Is this possible to do somehow with a formula? I have no clue on VBA by the way.

Thanks
Helen is offline   Reply With Quote
Old Feb 23rd, 2002, 03:57 AM   #4
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,314
Default

Quote:
On 2002-02-22 08:53, Helen wrote:
I have 2 databases, both based on part numbers. I need to compare the two and find if the two databases have the same part & the same letters & the same values. They are also very mixed and some parts are different in both databases, therefore they cannot all match, but I need to match up what I can, so I can then compare the databases to see if they are the same.

I am not too sure if this makes any sense, but here is an example listing:

Database 1 Database 2
Part Let Val Part Let Val
72822 aa 22 72824 cc 44
72823 bb 60 72825 dd 45
72824 cc 44 72826 ee 100
72830 ii 98 72827 ff 64
72826 ee 100 72828 gg 59
72827 ff 64 72829 hh 72
72828 gg 59 72830 ii 98

- therefore I need a formula to search for the same enteries in both databases and return the values for example, or a variance
- for example 72830 ii 98 are the same in both databases.

I hope I have explained this clearly.
Thanks.
Helen,

I guess you want to merge them into a single "database". If so, define a table PARTS in Access:

PARTS(PartNo,Let,Val),

with PartNo as primary key.

Choose Number as Data Type for Part No, Text for Let, and Integer for Val.

After you have defined the PARTS table,

Activate File|Get External Data|Import.

You should then be able select your .xls file, follow the steps of the procedure of Import. Pay attention to the fact that you import your 2 Excel "databases" into an existing table, that is, PARTS.

After the import, you'll have PARTS filled up non-duplicate records, which you can now export from Access to Excel.

Aladin
Aladin Akyurek is offline   Reply With Quote
Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 08:20 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes