How to Find Matching Values in Excel

You’ve got an Excel workbook with thousands of numbers and words. There are bound to be multiples of the same number or word in there. You might need to find them. So we’re going to look at several ways you can find matching values in Excel 365.

We’re going to cover finding the same words or numbers in two different worksheets and in two different columns. We’ll look at using the EXACT, MATCH, and VLOOKUP functions. Some of the methods we’ll use may not work in the web version of Microsoft Excel, but they will all work in the desktop version.

What’s An Excel Function?

If you’ve used functions before, skip ahead.

An Excel function is like a mini app. It applies a series of steps to perform a single task. The most commonly used Excel functions can be found in theFormulastab. Here we see them categorized by the nature of the function –

TheMore Functionscategory contains the categoriesStatistical, Engineering, Cube, Information, Compatibility, and Web.

The Exact Function

The Exact function’s task is to go through the rows of two columns and find matching values in the Excel cells. Exact means exact. On its own, the Exact function is case sensitive. It won’t seeNew Yorkandnew yorkas being a match.

In the example below, there are two columns of text – Tickets and Receipts. For only 10 sets of text, we could compare them by looking at them. Imagine if there were 1,000 rows or more though. That’s when you would use the Exact function.

Place the cursor in cell C2. In the formula bar, enter the formula

E2:E10refers to the first column of values andF2:F10refers to the column right next to it. Once we pressEnter, Excel will compare the two values in each row and tell us if it’s a match (True) or not (False). Since we used ranges instead of just two cells, the formula will spill over into the cells below it and evaluate all the other rows.

This method is limited though. It will only compare two cells that are on the same row. It won’t compare what’s in A2 with B3 for example. How do we do that? MATCH can help.

The MATCH Function

MATCH can be used to tell us where a match for a specific value is in a range of cells.

Let’s say we want to find out what row a specific SKU (Stock Keeping Unit) is in, in the example below.

If we want to find what row AA003 is in, we would use the formula:

J1refers to the cell with the value we want to match.E2:E9refers to the range of values we’re searching through. The zero (0) at the end of the formula tells Excel to look for an exact match. If we were matching numbers, we could use1to find something less than our query or2to find something greater than our query.

But what if we wanted to find the price of AA003?

The VLOOKUP Function

TheVin VLOOKUP stands for vertical. Meaning it can search for a given value in a column. What it can also do is return a value on the same row as the found value.

If you’ve got an Office 365 subscription in the Monthly channel, you can use the newerXLOOKUP. If you only have the semi-annual subscription it will be available to you in July 2020.

Let’s use the same inventory data and try to find the price of something.

Where we were looking for a row before, enter the formula:

J1refers to the cell with the value we’re matching.E2:G9is the range of values we’re working with. But VLOOKUP will only look in the first column of that range for a match. The3refers to the 3rd column over from the start of the range.

So when we type a SKU in J1, VLOOKUP will find the match and grab the value from the cell 3 columns over from it.FALSEtells Excel what kind of match we’re looking for. FALSE means it must be an exact match where TRUE would tell it that it has to be a close match.

How Do I Find Matching Values in Two Different Sheets?

Each of the functions above can work across two different sheets to find matching values in Excel. We’re going to use the EXACT function to show you how. This can be done with almost any function. Not just the ones we covered here. There are also otherways to link cells between different sheets and workbooks.

Working on theHolderssheet, we enter the formula

D2:D10is the range we’ve selected on the Holders sheet. Once we put a comma after that, we can click on the Tickets sheet and drag and select the second range.

See how it references the sheet and range asTickets!E2:E10? In this case each row matches, so the results are all True.

How Else Can I Use These Functions?

Once you master these functions for matching and finding things, you can start doing a lot of different things with them. Also take a look at using the INDEX and MATCH functions together to do something similar to VLOOKUP.

Have some cool tips on using Excel functions to find matching values in Excel? Maybe a question about how to do more? Drop us a note in the comments below.

Guy has been published online and in print newspapers, nominated for writing awards, and cited in scholarly papers due to his ability to speak tech to anyone, but still prefers analog watches.Read Guy’s Full Bio

Welcome to Help Desk Geek- a blog full of tech tips from trusted tech experts. We have thousands of articles and guides to help you troubleshoot any issue. Our articles have been read over 150 million times since we launched in 2008.

HomeAbout UsEditorial StandardsContact UsTerms of Use

Copyright © 2008-2024 Help Desk Geek.com, LLC All Rights Reserved