How to Compare Two Lists or Columns in Excel

Similar documents
How to Generate Random Numbers in Excel (Ultimate Guide)

How to Reduce Large Excel File Size (Ultimate Guide)

Read More: Keyboard Shortcuts for Moving around Excel Spreadsheets

A cell is highlighted when a thick black border appears around it. Use TAB to move to the next cell to the LEFT. Use SHIFT-TAB to move to the RIGHT.

Excel & Business Math Video/Class Project #39 Create Invoices in Excel with Data Validation Drop-down, VLOOKUP & IF Functions

MS Excel How To Use VLOOKUP In Microsoft Excel

Excel tutorial Introduction

Reporting Excel Tutorial

Inserting or deleting a worksheet

Objective: Class Activities

Microsoft Excel 2010

Customer details are included on a separate worksheet (Customer Look Up) Item details are included on a separate worksheet (Item Look Up)

4) Study the section of a worksheet in the image below. What is the cell address of the cell containing the word "Qtr3"?

Introduction to Microsoft Excel

My Top 5 Formulas OutofhoursAdmin

Abdulbasit H. Mhdi Assistant lecturer Chemical engineering/ Tikrit University

Exchange (Copy, Import, Export) Data Between Excel and Access

FSFOA EXCEL INSTRUCTIONS. Tips and Shortcuts

Advanced Excel Charts : Tables : Pivots

WORKING WITH LOOKUP TABLES

Launch old style dialogue boxes from the dialogue box launchers at the bottom of the ribbon.

Candy is Dandy Project (Project #12)

Chemistry 30 Tips for Creating Graphs using Microsoft Excel

Excel 2. Module 2 Formulas & Functions

3/31/2016. Spreadsheets. Spreadsheets. Spreadsheets and Data Management. Unit 3. Can be used to automatically

Lesson 4: Auditing and Additional Formulas. Return to the FastCourse Excel 2007 Level 3 book page

Rio Hondo Prep Computer Applications Class

WEEK NO. 12 MICROSOFT EXCEL 2007

Excel Advanced

KINETICS CALCS AND GRAPHS INSTRUCTIONS

Application of Skills: Microsoft Excel 2013 Tutorial

Charts in Excel 2003

MICROSOFT EXCEL BIS 202. Lesson 1. Prepared By: Amna Alshurooqi Hajar Alshurooqi

This lesson is part 5 of 5 in a series. You can go to Invoice, Part 1: Free Shipping if you'd like to start from the beginning.

BaSICS OF excel By: Steven 10.1

Using Microsoft Excel

MOVING FROM CELL TO CELL

1) Merge the cells that contain the title and center the title

Improving Productivity with Parameters

Identifying Updated Metadata and Images from a Content Provider

Vlookup for dummies two sheets vlookup

Office 2016 Excel Basics 21 Video/Class Project #33 Excel Basics 21: Relationships Rather than VLOOKUP for PivotTable Reports (Excel 2016 Data Model)

1. Position your mouse over the column line in the column heading so that the white cross becomes a double arrow.

The Basics of Excel Part III. Monday, April 17 th 2017 D-Lab University of California, Berkeley

EDIT202 Spreadsheet Lab Prep Sheet

Technology Is For You!

Word Overview Page 3 Tables Page 5 Labels Page 9 Mail Merge Page 12. Excel Overview Page 19 Charts Page 22

Excel VLOOKUP. An EMIS Coordinator s Friend

Excel Lesson 1 Microsoft Excel Basics

How to use the Vlookup function in Excel

Advanced Excel. IMFOA Conference. April 11, :15 pm 4:15 pm. Presented By: Chad Jarvi, CPA President, Civic Systems

Basics: How to Calculate Standard Deviation in Excel

LEIAG-Excel Workshop

Getting Started with Excel

COMPUTER TRAINING CENTER

What is a VLOOKUP? Source

Excel Expert Microsoft Excel 2010

Excel Template Instructions for the Glo-Brite Payroll Project (Using Excel 2010 or 2013)

Microsoft Excel 2010 Part 2: Intermediate Excel

Open a new Excel workbook and look for the Standard Toolbar.

Section 5: Editing Cells

Excel Shortcuts Increasing YOUR Productivity

Using Microsoft Excel

Microsoft Excel Chapter 1. Creating a Worksheet and an Embedded Chart

Microsoft Excel 2007

CMPF124 Microsoft Excel Tutorial

A B C D E F G H I J K L M 1 Student Test 1 Test 2 Test 3 Test 4 Total AVG. Joe Smith

Microsoft Excel Level 2

A Quick Trick for Hiding Duplicate Excel Values

Excel 2010-Part. Two

Excel Simulations - 1

San Francisco State University

1. MS EXCEL. a. Charts/Graphs

Microsoft Excel 2016

Technology Assignment: Scatter Plots

Unit 12. Electronic Spreadsheets - Microsoft Excel. Desired Outcomes

Excel & Business Math Video/Class Project #01 Introduction to Excel. Why We Use Excel for Math. First Formula.

Microsoft Office Excel 2007: Basic Course 01 - Getting Started

Go back to your Excel sheet. Choose Paste to Sheet tab at the bottom.

Become strong in Excel (2.0) - 5 Tips To Rock A Spreadsheet!

Intermediate Excel 2016

Workshare Professional 10. Getting Started Guide

Hiding or Discarding Insignificant Rows in a Report Template

DOING MORE WITH EXCEL: MICROSOFT OFFICE 2010

Microsoft Office Excel Create a worksheet group. A worksheet group. Tutorial 6 Working With Multiple Worksheets and Workbooks

Excel Level 3 - Advanced

QUICK EXCEL TUTORIAL. The Very Basics

ADD AND NAME WORKSHEETS

Excel & Business Math Video/Class Project #28 IF Function, ISBLANK function and Building a Check Register

Microsoft Office Illustrated. Getting Started with Excel 2007

Tutorial: Getting Data into Your Spreadsheet

Scottish Improvement Skills

Making an entry into the CIS Payments workbook

Spreadsheet Basics by Dick Evans, (updated )

THE AMERICAN LAW INSTITUTE Continuing Legal Education

MS Excel Advanced Level

Introduction to Spreadsheets Part 1. The Quick and Easy guide to using Openoffice Calc

Mission Statement The Monroe County Library System enriches the equality of life for all residents of the

Creating and Using an Excel Table

Advanced Microsoft Excel 2010

Transcription:

While doing different tasks in Excel we often come across a situation where the matching and differences of two or multiple columns are required. It s not a difficult task to find the differences and matches but you may get confused as there are so many ways to do it. In this tutorial, we will look for different techniques of matching and differentiating columns in Excel. First of all, we will be using a table of 2 columns containing different colors name. Color list in two columns A B Red Black Yellow Red Green Yellow Purple Purple Blue Green Black Blue White White All rights reserved to ExcelDemy.com. 1

Table of Contents 1 Compare two columns in excel and highlight differences 2 Compare two columns in excel and highlight matches 2.1 1) Using Match function 2.2 2) Using conditional formatting 3 Excel formula to compare two columns and return a value 3.1 1) Using IF function for determining differences in two columns 3.2 2) Using Exact Function 3.3 3) Compare two columns in Excel using VLOOKUP and IF 3.4 4) Using IF function to determine Matches and Differences in separate Column 4 How to compare two columns in different excel sheets 4.1 1) For finding differences 4.2 2) For finding matches 5 Comparing multiple columns in excel 5.0.1 1) Using AND or COUNTIF function for finding matches 5.1 2) Using IF and AND functions for finding differences 6 Conclusion Compare two columns in excel and highlight differences Using conditional formatting is a way of finding the differences between two columns in Excel. The procedure is given below. At first, select the data range that you want to highlight from two columns. Then click Home > Conditional Formatting > New Rule. All rights reserved to ExcelDemy.com. 2

Click Use a formula to determine which cells to format under the Select a Rule Type list box. Enter this formula: =$A3<>$B3 into the Format values where this formula is true text box and then press on to the Format option. A new dialogue box of Format Cells will come up, please specify a color for highlighting the differences as you need under the Fill tab. All rights reserved to ExcelDemy.com. 3

Compare two columns in excel and highlight matches 1) Using Match function IF function plays a significant role in finding both matches and differences in excel. Here we will be using it to find the matches in two columns. As you can see there is a match in cell A6 and B6. Let s select the cell C6 for applying the formula. Then use the formula =IF(A3=B3, Match, ) In the cell C2 there is no match so nothing will appear if we drag down the cell where the two rows match there we will found our result. All rights reserved to ExcelDemy.com. 4

2) Using conditional formatting Again, conditional formatting can be used for finding the matches between two columns in Excel. The procedure is given below. First Select the data range that you want to highlight from two columns. Then click Home > Conditional Formatting > New Rule. All rights reserved to ExcelDemy.com. 5

Click on the image to get a full view. Excel formula to compare two columns and return a value 1) Using IF function for determining differences in two columns Use a vacant cell that is in same rows with A3 and B3. Let`s choose C3 cell here. Then use the formula =IF(A3<>B3, No match, ). All rights reserved to ExcelDemy.com. 6

By dragging down the box where the formula was applied (in C3) in the specified column the result of the two columns will be found. By doing the dragging the formula will be applied to the other cells. 2) Using Exact Function To show the differences between two column the easiest option is using the Exact option. It has to be remembered that it can be used for only two columns and this function is case sensitive. The procedure of using Exact function is given below. Firstly, choose the column where the result has to be shown. In our worksheet, Column A and B shows two color list. The color is shown from A3 and B3 respectively. In A2 and B2 the headings are A and B. Let s say we want to show our result in Column C. Click on C3. Click on the Formulas tab on the Ribbon and then on the Text option. All rights reserved to ExcelDemy.com. 7

Under Text option, click on the formula titled Exact. Under the Excel s Function Arguments window write A3 on Text1 and B3 on Text2. The matched and unmatched result will be shown on C3. By dragging the formulated cell C3 on downwards the whole column result will be found. All rights reserved to ExcelDemy.com. 8

Note that this function is case sensitive. If it was not case sensitive we would have got True in C9. 3) Compare two columns in Excel using VLOOKUP and IF If you are having 2 tables of different and exact data in their column and we need to find the matches and differences you can use a formula =IF(VLOOKUP(Value, Table_Reference,Index_number,False)=Value, Match, Do Not Match ). Here if the amount of 1st record=amount of 2nd record and invoice of 1st record= invoice of 2nd record then statement Match will return in the cell otherwise it will return Do Not Match. The procedure is given below. Indicate a vacant cell where we want to find the matches and differences of 1st rows of the two cells. Let s say we want to choose Column D. In D3 put =IF(VLOOKUP(A3,G3:H9,2,FALSE)=B3, Match, Do Not Match ) After pressing enter we will see that the result Match is shown. This is because the 1st row of both the tables contains the same variables. By dragging the cell D3 in downwards we will find the result for the rest. All rights reserved to ExcelDemy.com. 9

Here one thing is to be noted that we are doing the analysis of cells containing text. That s why the result Do Not Match is not shown. If we use a number instead of text, we will see the result Do Not Match in the column D. Let`s use number instead of text in the rows of two tables and see the result. 4) Using IF function to determine Matches and Differences in separate Column Previously we discussed how the differences and matches are found using IF function. Now we will be using the IF function to do both. The formula we will be using is =IF(A3=B3, Match, No match ) Or =IF(A3<>B3, No match, Match ) in a different empty column (here we used C3). By dragging the cell downwards where the formula is applied we can find the matching and differences between the two columns. All rights reserved to ExcelDemy.com. 10

How to compare two columns in different excel sheets 1) For finding differences Most of us don t know that it is possible to compare data from 2 different worksheets/spreadsheets. By using conditional formatting, it can be easily done. For that, we have to use a formula of =A3<>Sheet2!A3. After opening two spreadsheets, let s say we want to find the differences in spreadsheets 1 with spreadsheets 2. In the Home tab, in the Styles group, let`s click Conditional Formatting > New rule, and create a rule with the formula =A3<>Sheet2!A3 All rights reserved to ExcelDemy.com. 11

2) For finding matches Just like finding the differences between two worksheets/spreadsheets, you can also find the matches in the same manner. Only the formula will be changed. Here we will be using the formula =(A3=Sheet2!A3) to find out the matches. After opening two spreadsheets, let s say we want to find the differences in spreadsheets 1 with spreadsheets 2. In the Home tab, in the Styles group, let`s click Conditional Formatting > New rule, and create a rule with the formula =(A3=Sheet2!A3) All rights reserved to ExcelDemy.com. 12

Comparing multiple columns in excel Here we will deal with 3 columns. 1) Using AND or COUNTIF function for finding matches To highlight rows that have identical variables in all columns you can create conditional formatting rules based on the formula =AND($A3=$B3, $A3=$C3) or =COUNTIF($A3:$C3, $A3)=3,where A2, B2, and C2 are the top-most cells and 3 is the number of columns to compare. Click on the image to get a full view All rights reserved to ExcelDemy.com. 13

2) Using IF and AND functions for finding differences Just like 2 columns finding differences in multiple columns is also easy. The procedure is given below. Let`s choose a vacant cell say C3. Then use the formula =IF(AND(A3<>B3, B3<>C3), No Match, Match ). Again, by dragging down the box, formula will be applied to the other cells. Conclusion While doing different data analysis we face difficulties of finding differences and matches in columns in Excel. As you can see there are a lot of ways in Excel to find them. Based on the task you are doing you can use any of these. This Blog may help you to overcome the problems that you face while working on multiple columns. 96 All rights reserved to ExcelDemy.com. 14

SHARES FacebookTwitter Siam Hasan Hello! Welcome to my Profile. Here I will be posting articles related to Microsoft Excel. I have completed my BSc in Electrical and Electronic Engineering from American International University-Bangladesh. I am a diligent, goal-oriented engineer with an immense thirst for knowledge and attitude to grow continuously. Continuous improvement and life-long learning is my motto. All rights reserved to ExcelDemy.com. 15