• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

TheAppTimes

App Reviews, Tutorials, & Gadget News Hub

  • Gadgets
  • How To
  • Apps
  • Software
  • IT
  • Guides
  • Gaming
  • Show Search
Hide Search
Home » How To » How to Cross-Find Similar Product Codes in Microsoft Excel

How to Cross-Find Similar Product Codes in Microsoft Excel

November 1, 2010

This is a guest post written by Yoav Ezer.  Many people use Microsoft Excel to work with external data sources, but of course in the real world data is not supplied in a clean, easy to use format. What can you do if you have multiple sources of data? For example, what about stores who are supplied updated product lists and prices from various vendors? Product codes might be similar, the same or different. In this tutorial, see how to cross find similar product codes in Excel.

We can still work with this data; it will just take a little additional Excel work. To solve this, first we need to make some assumptions:

  • The original price list contains a Vendor ID for each product as well as a Product ID used by the reseller.
  • A new price list from a vendor will contain the Vendor IDs, but not the reseller’s Catalog ID (of course).
  • If the vendor ID is exactly the same, the price and description will be replaced automatically.
  • If the vendor ID is similar the user will be prompted to replace the data; if declined, the new item will stay, marked as ‘new’.
  • If there is more then one possible match, the user will be asked what to do.

How to Cross Find Similar Product Codes in Microsoft Excel : Our Solution

If you want to check out our solution you can download the spreadsheet Similar products.xlsm which provides our sample data and the required code.
Cross Find Similar Product Codes
The sheet contains two product lists, one original and one vendor-sent (“new prices”), and a sheet to put the merged list (“Merged Prices”). To run the solution, run the MergeProducts() macro (which will clear the merged list first).

How it Works

The first sheet (“Original Prices”) contains the list of current prices to be merged, including both the Catalog ID (of the reseller) and the Vendor ID (of the original vendor). The second sheet (“New Prices”) contains the list of updated prices from the vendor. The Catalog ID column is empty, of course. The third sheet (“Merged Prices”) will contain the merged list.
how it works - excel 2010

ALSO READ:  New Features in Excel 2013

The merging algorithm works as follows:

1. Copy the new items to the merged list sheet

2. Mark them as new in a new column

3. Copy the old items to the merged list sheet below the new items

4. For each old item, check to see if it has an update:

    1. Go over the list of new items and create a list of similar vendor IDs
    2. If there are none, leave it
    3. If there is one
      1. If it’s exactly the same, automatically replace it (unless the flag is set to ask the user)
      2. Otherwise, ask the user whether to replace the data
      3. If there’s more then one, ask the user which one to use (or to keep the original one)
      4. If data is to be replaced, the original item’s data is removed, and the Catalog ID is  moved to the new item

replace product - excel 2010

Summary

While this solution is pretty specific to our example and each implementation would have to accommodate different inputs, hopefully this article will show you what is possible. Even if your data sources are not supplied in a perfect state, Microsoft Excel still allows you to work with external information to get the results you want. Of course there is a little effort involved, but far less than working manually! How would you improve this process?

About the author

Yoav Ezer co-authors the technology and productivity blog Codswallop. He is also the CEO of a company that produces PDF to XLS conversion software.
For more Excel tips from Yoav, join him on Facebook or Twitter

Tweet
Share2
WhatsApp
Pin
Buffer
2 Shares

Filed Under: How To Tagged With: excel, microsoft

You May Also Like

Ways to Use Excel Mobile - TATFI
10 Creative Ways to Use Excel Mobile in your Business
Manage Android Phone Notifications with Microsoft Your Phone App - TATFI
Read and Reply to Messages on Android from Your PC with Microsoft Your Phone App
Which Microsoft Office Version Are You Using
Which Microsoft Office Version (32-bit or 64-bit) Are You Using?

About Adeline Gear

Adeline is a tech enthusiast who loves exploring the latest tools and applications in the marketplace. She also loves her Android and spends time reviewing apps and playing games when she has the time.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Hottest New Gadgets!

iPhone 15 vs iPhone 15 Pro - TAT

iPhone 15 vs iPhone 15 Pro: Which One Should You Choose?

iPhone 15 Pro- TAT

Performance Meets Elegance: Meet the iPhone 15 Pro

iPhone 15- TAT

iPhone 15 Unveiled: A Closer Look at Apple’s Latest Flagship

Lenovo Legion Go - TAT

Lenovo Legion Go: A Powerful Windows Gaming Handheld Launching in Oct 2023

Best Accessories for the Galaxy Z Fold 5 - TAT

The Best Accessories for the Galaxy Z Fold 5

Popular Tags

android android apps android games android how to apple casino games chrome extensions excel excel how to facebook fitness wearable gadgets gaming gmail google ios apps ios games ios how to ios tips ipad iphone kids apps learn excel management microsoft new releases outlook how to photo apps powerpoint how to productivity Samsung security smartphone smartphones smartwatches software tablet tablets technology twitter web browsers windows 10 word how to xbox youtube

Disclosure

TheAppTimes is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.
Personalize Your Hardware with Razer Skins - TAT

Personalize and Protect Your Gaming Hardware with these Stylish Razer Skins

Best Controllers for Xbox Cloud Gaming - TAT

Best Controllers for Xbox Cloud Gaming

Starfield - TAT

Starfield: Get Ready to Experience a New Frontier in Gaming

Razer Cobra Pro - TAT

Razer Cobra Pro: A Great Gaming Mouse for Competitive Gamers

Best gaming monitors 2023 - TAT

The Best Gaming Monitors for a Truly Immersive Experience

Hot on Amazon

TheAppTimes © 2023 // Runs on StudioPress

  • About
  • Contact
  • Privacy Policy
  • Template Gallery