• About
  • Contact
  • Privacy Policy
  • Submit For Review
  • Template Gallery
  • Excel 2016 Udemy Course
  • Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

TheAppTimes

App Reviews, Tutorials, & Gadget News Hub

  • Gadgets
  • How To
  • Mobile Apps
  • Software and Web Apps
  • Buying Guides
  • 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:  How to Navigate to Any Worksheet Quickly in Excel 2010

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!

Best e Readers to Buy in 2023 - TATFI

5 Best eReaders to Buy in 2023

Amazfit Falcon Smartwatch - TATFI

The Amazfit Falcon is a Military Grade Smartwatch with Premium Looks and Great Features

Couchmaster Cyboss Ergonomic Couch Desk - TATFI

Couchmaster Cyboss is an Ergonomic Desk to Keep Off Neck Pain

Philips Hue Festavia String Lights - TATFI

Add a Bit of Sparkle to Your Christmas Tree with Philips Hue Festavia String Lights

Samsung Galaxy Tab A7 Lite Kids Edition - TATFI

This Kid Friendly Tablet from AT&T is a Thoughtful Gift for Your Little One This Christmas

Is An iPhone Really Worth It - TATFI

Is an iPhone is Really Worth It?

Devices You Might Want to Try - TATFI

4 Fantastic Devices You Might Want to Try

Popular Tags

android android apps android games android how to apple casino games chrome extensions excel excel how to facebook gadgets gaming gmail google instagram ios apps ios games ios how to ios tips ipad iphone kids apps learn excel management microsoft music apps new releases outlook how to photo apps powerpoint powerpoint how to productivity Samsung security smartphone smartphones software tablet tablets 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.
Samsung Galaxy S10 Unlocked - TATFI

The Samsung Galaxy S10 Unlocked– Your Key to Total Freedom

Make Money Playing at Fairspin Online Casino - TATFI

Make Money Playing at Fairspin Online Casino

How Mobile Wellbeing Apps are Empowering Patients - TATFI

How Mobile Wellbeing Apps are Empowering Patients

Tips to Boost Your Ranking and Sales on Etsy - TATFI

5 Ways to Boost Your Ranking and Sales on Etsy

PunchBee Time Management App - TATFI

Know How You Spend Your Time with PunchBee

DevOps Model Explained - TATFI

The Complete Guide to DevOps: How the Model Works and Who It Benefits

Approaches to Digital Marketing - TATFI

Blending Technical and Content-Centric Approaches to Digital Marketing

Tech Tips For Startups - TATFI

Useful Tech Tips For Startups

Boox Tab X Android eReader - TATFI

Boox Tab X is an Android eReader That Helps You Do More Than Just Read

Best Translation Apps for Android - TATFI

5 Great Translation Apps for Android

Dynamic Island Feature on Your Android - TATFI

How to Get the Dynamic Island Feature on Android

Connected TV Advertising In 2023 - TATFI

5 Things You Need To Know About Connected TV Advertising In 2023

TheAppTimes © 2023 // Runs on StudioPress