• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to footer
EDUCBA

EDUCBA

MENUMENU
  • Resources
        • Excel Charts

          • Histogram Chart Excel
          • Basic Excel Formulas
          • Text to Columns in Excel
        • Excel Charts
        • Excel Tips

          • Excel Gantt Chart
          • IFERROR with VLOOKUP
          • Data Table in Excel
        • Excel Tips
        • Excel Tools in Excel

          • Stacked Column Chart
          • Cheat Sheet of Excel Formulas
          • Excel Data Validation
        • Histogram chart in excel
        • Others

          • Resources (A-Z)
          • Excel Functions
          • Financial Functions in Excel
          • Logical Functions in Excel
          • Lookup Reference Functions in Excel
          • Maths Function in Excel
          • TEXT and String Functions in Excel
          • View All
  • Free Courses
  • All Courses
        • Certification Courses

          Excel Course 1
        • All in One Bundle

          All-in-One-Excel-VBA-Bundle
        • Excel course

          Excel-Training
        • Others

          • Excel advanced course
          • VBA Course
          • Excel Data Analysis Course
          • Excel for Marketing Course
          • Excel for Finance Course
          • View All
  • 120+ Courses All in One Bundle
  • Login

Compare Text in Excel

Home » Excel » Blog » Excel Tips » Compare Text in Excel

Excel Text Compare

Excel Text Compare (Table of Contents)

  • Compare Text in Excel
  • Methods to Compare Tex in Excel
  • Compare Text in Excel – Example#1
  • Compare Text in Excel – Example#2
  • Compare Text in Excel – Example#3

How to Compare Text in Excel?

We compare data in MS Excel occasionally. There are several options as well available to do so in one column, but to determine the matches and differences in the different column we have several techniques to compare it in Excel.

Start Your Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

As Excel is versatile, there are several ways to compare the text like full compare or a part of that text, where we can use other functions in Excel (LEFT, RIGHT, INDEX, MATCH, etc.).

Methods to Compare Text in Excel

The following method shows how to compare text in excel.

Method #1 – EXACT Function

It is a case sensitive, if the two texts are identical then it will return TRUE if not then it will return FALSE.

Ex: There is two text A1 is the ‘String’ and B1 is ‘string’ then result of the EXACT function will be FALSE

=EXACT (A1, B1) >> FALSE

Method #2 – Equal Sign (=)

It is a case insensitive, so when we do not care about the case then we need to prefer this for comparing the text. If the two texts are identical then it will return TRUE if not, then it will return FALSE.

Popular Course in this category
Excel Training (18 Courses, 9+ Projects) 18 Online Courses | 9 Hands-on Projects | 95+ Hours | Verifiable Certificate of Completion | Lifetime Access
4.9 (2,671 ratings)
Course Price

View Course

Related Courses
Excel Data Analysis Training (12 Courses, 6+ Projects)Excel for Finance Training (15 Courses, 5+ Projects)

Ex: There is two text A1 is the ‘String’ and B1 is ‘string’ then result of the function will be TRUE

=EXACT (A1, B1) >> TRUE

How to Compare Text in Excel?

To compare text in excel is very easy and simple to use. Let’s understand the working of compare text in excel with few examples.

You can download this Text Compare Excel Template here – Text Compare Excel Template

Compare Text in Excel – Example#1

Comparing for the two City in the employee table in Excel without caring about the case of text, two texts are Home city and Preferred City.

Step 1: Go to Sheet 1 in the Excel sheet which a user wants to compare.

Step 2: The user wants to check Home City and Preferred City, so apply the formula in E column to compare in Excel

Step 3: Click on E2 column and apply equal sign (=), Select B2 cell and put an equal sign and select D2

(= B2=D2)

Compare Text Example 1-1

Step 4: Now click on the Enter button.

Compare Text Example 1-2

Step 5: Apply the above formula to all for that we can drag down on clicking Plus sign of E2 cell.

Compare Text Example 1-3

Summary of Example #1: As we can see in the result of example 1, there is B2 is Melbourne and D2 is Delhi which is not matching so the result is FALSE. Same way in B4 and D4 we have Delhi which is matching so the result is TRUE. If we see the 5th Row where B2 have Goa and D2 have GOA, their case is different in both the cells, but the equal function will not consider the case as it’s a case insensitive, so the result will be TRUE.

Compare Text in Excel – Example #2

How to Compare the column data in Excel which the user wants to match with the case of text?

Step 1: Go to Sheet 2 in the excel sheet where a user wants to be compared the data, the user wants to check Home city and Preferred city, so apply the formula in E column to compare.

Step 2: Click on E2 cell and apply EXACT function, select B2 cell and apply EXACT function and then select D2

(= EXACT (B2, D2)

Compare Text Example 2-1.png

Step 3: Now click on the Enter button, the result will be shown based on the input data.

Compare Text Example 2-2

Step 4: Apply the above formula to all for that we can drag down on clicking Plus sign of E2 cell in Excel sheet.

Compare Text Example 2-3

Summary of Example#2: As we can see in the result of the sheet 2 example in Excel, there is B2 is Melbourne and D2 is Delhi which is not matching so the result is FALSE. Same way in B4 and D4 have Delhi which is matching so the result is TRUE.

If we see the 5th Row where B2 have Goa and D2 have GOA, their case is different in both the cells, but the EXACT function will consider the case as its case sensitive, so the result will be FALSE. So, when we need to find the matching or difference in the text string with the case then the EXACT function will do the task, but when we do not care about the case of the text string then we can use equal sign for comparing the data.

Compare Text in Excel – Example #3

How to compare the text in Excel, but the user wants some meaningful result rather than only TRUE/FALSE.

 Step 1: Go to Sheet 3 in the excel where a user wants to compare the data, the user wants to check Home City and Preferred City, so apply the formula in E column to compare

Step 2: Click on E2 cell and apply the EXACT function with IF

Step 3: First write IF formula followed by EXACT, like =IF (EXACT (…))

Step 4: Now Select B2 in Text 1 and D2 cells in Text 2 and close the bracket.

 Compare Text Example 3-1

Step 5: Now it will ask for value_if_true and value_if_false, put the value for the same.

Compare Text Example 3-2

Step 6: Now give Match if the value is true and Differ if the value is false and close the bracket.

Value True or False

Step 7: Now click on the Enter button, the result will be shown based on the input data.

 Input Data

 Step 8: Apply the above formula to all for that we can drag down on clicking the Plus sign of E2 cell.

Applying the formula

Summary of Example#3: As we can see in the result of the sheet 3 example, there is B2 is Melbourne and D2 is Delhi which is not matching so the result is Differ. Same way in B4 and D4 have Delhi which is matching so the result is MATCH.

If we see the 5th Row where B2 have Goa and D2 have GOA, their case is different in both the cells, but the EXACT function will consider the case as its case sensitive, so the result will be Differ. Here we can see on being TRUE we are getting output as Match and when output is FALSE we are getting Differ as the output.

Things to Remember

  • When we are using Equal sign in Excel for comparison, it will treat GOA as goa because equal sign is the case insensitive.
  • As EXACT function is case sensitive, when we are not bothered about the case then we can go for equal sign.
  • We can use compare the result inside the IF function to show a meaningful message or we can make it a conditional calculation.
  • To see the duplicate data in the table, we need to select all the data and Press Ctrl + Q (Quick Analysis) >> then a pop-up will open up >> select Duplicate option >> it will highlight the duplicate.

Quick Analysis Option

duplicate and unique value

This is how we can compare the data in the table for duplicate and unique value.

  • When we want to compare only a part of text then we can use LEFT and RIGHT function.

Ex.=LEFT(A2,3) =RIGHT(B2,3)

Recommended Articles

This has been a guide to Text compare in excel. Here we discuss How to Compare Text in Excel, Methods used in Excel to Compare Text along with practical examples and downloadable excel template. You can also go through our other suggested articles –

  1. TEXT Function in Excel
  2. How to Separate text in Excel?
  3. How to Wrap Text in Excel?
  4. Paste Shortcut Option in Excel
  5. Guide to Excel Separate text

All in One Excel VBA Bundle (120+ Courses, 30+ Projects)

120+ Online Courses

30+ Projects

500+ Hours

Verifiable Certificates

Lifetime Access

Learn More

0 Shares
Share
Tweet
Share
Reader Interactions
Leave a Reply Cancel reply

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

Primary Sidebar
Excel Functions Tutorials
  • Excel Tips
    • Excel Timesheet Template
    • Weighted Average in Excel
    • CTRL Shift-Enter in Excel
    • Excel Expense Tracker
    • INDEX MATCH Function in Excel
    • Shade Alternate Rows in Excel
    • Excel Database Template
    • Inverse Matrix in Excel
    • New Line in Excel Cell
    • Format Cells in Excel
    • Excel Text with Formula
    • Project Management Template in Excel
    • Vlookup vs Index Match
    • Embedded in Excel
    • Count Colored Cells in Excel
    • Excel Hacks
    • Column Header in Excel
    • Database Function in Excel
    • Excel Spell Check
    • Linear Interpolation in Excel
    • Convert Excel to CSV
    • Excel Not Responding
    • Delta Symbol in Excel
    • Excel Mortgage Calculator
    • Excel Show Formula
    • Break Links in Excel
    • VLOOKUP Examples in Excel
    • Alternate Row Color Excel
    • Checklist in Excel
    • Microsoft Office Tips
    • Excel vs Access
    • Excel Change Case
    • Count Characters in Excel
    • Formula Bar in Excel
    • Invoice Template in Excel
    • Find and Replace in Excel
    • PowerPivot in Excel
    • Wildcard in Excel
    • Line Break in Excel
    • NULL in Excel
    • Text Formula in Excel
    • Family Tree in Excel
    • Insert Calendar in Excel
    • Page Setup in Excel
    • Search For Text in Excel
    • Switching Columns in Excel
    • 3D Cell Reference in Excel
    • Roadmap Template in Excel
    • Cell References in Excel
    • Excel Automation
    • Matching Columns in Excel
    • Evaluate Formula in Excel
    • How to Find Mean in Excel
    • How to Add Cells in Excel
    • Project Timeline in Excel
    • TODAY Formula in Excel
    • Poisson Distribution in Excel
    • YEAR Formula in Excel
    • REPLACE Formula in Excel
    • Create Spreadsheet in Excel
    • SEARCH Formula in Excel
    • HYPERLINK Formula in Excel
    • Pivot Table with Multiple Sheets
    • COLUMNS Formula in Excel
    • DAY Formula in Excel
    • RIGHT Formula in Excel
    • INDIRECT Formula in Excel
    • Excel IRR Formula
    • Pivot Table Sort
    • OR Formula in Excel
    • Pivot Table Formula in Excel
    • How to Edit Drop Down List in Excel?
    • WEEKDAY Formula in Excel
    • Chart Wizard in Excel
    • Time Difference in Excel
    • Lookup Table in Excel
    • SUBTOTAL Formula in Excel
    • LOOKUP Formula in Excel
    • Themes in Excel
    • Group Worksheets in Excel
    • Excel ISNUMBER Formula
    • 3D Maps in Excel
    • VLOOKUP Tutorial in Excel
    • Moving Columns in Excel
    • Grouping Columns in Excel
    • Excel Formula of Percentage
    • Excel Leading Zeros
    • Timesheet in Excel
    • Nested IF Formula in Excel
    • SUMIF Formula in Excel
    • Concatenation in Excel
    • Excel Insert Page Break
    • LEN Formula in Excel
    • Insert Comment in Excel
    • Excel Print
    • Fractions in Excel
    • Excel Add a Column
    • Borders in Excel
    • Excel Sum by Color
    • Excel vs Google Sheets
    • Calculate Percentage Increase in Excel
    • Excel Format Phone Numbers
    • Excel Search Box
    • Excel vs CSV
    • Excel vs Numbers
    • Excel Concatenate Date
    • Excel Bullet Points
    • Calculate Compound Interest in Excel
    • Find External Links in Excel
    • Excel Comma Style
    • Excel Remove Leading Spaces
    • Combine First and Last Name in Excel
    • How to Calculate Ratio in Excel
    • SUMPRODUCT Function with Multiple Criteria
    • Create Excel Template
    • Excel Greater than or Equal
    • Excel Keyboard Shortcuts
    • Excel Row vs Excel Column
    • Excel Operators
    • Excel Text Compare
    • Excel Uppercase Function
    • Excel Auto Numbering
    • Watermark in Excel
    • Excel Delete Row Shortcut
    • Excel Word Count
    • Row Count in Excel
    • Excel Grade Formula
    • Excel Percentage Difference
    • Excel Rows and Columns
    • Excel Group
    • Excel Move Columns
    • Excel Row Height
    • Excel Sparklines
    • Excel Drawing a line
    • Multiple IFS in Excel
    • Excel Strikethrough
    • Numbering in Excel
    • Share Excel Workbook
    • Excel Shortcut For Merge Cells
    • Excel OneDrive
    • Excel Track changes
    • Excel Hide Formula
    • Excel Filter Shortcuts
    • Excel 3D Reference
    • Protect Excel Workbook
    • Excel Moving Averages
    • Excel Row Limit
    • Excel Absolute Value
    • Excel Print Area
    • Excel Format Painter
    • Excel Separate text
    • Excel Autofit
    • Excel Columns to Rows
    • Excel Paste Shortcut Option
    • Excel Rows to Columns
    • Excel Insert Row Shortcut
    • Excel Extensions
    • Excel Unmerge Cells
    • Divide in Excel Formula
    • Excel Compare Two Columns
    • Not Equal To Excel
    • Excel Remove Duplicates
    • Excel Remove Spaces
    • Excel Calculate Age
    • Copy Excel Sheet
    • Excel Conditional Formatting Based on Another Cell Value
    • Excel Cell Reference
    • Excel Split Cell
    • Excel Circular Reference
    • Highlight Every Other Row in Excel
    • Errors in Excel
    • Excel Delete Pivot Table
    • Excel Pivot Table
    • Subtraction in Excel
    • Count Unique Values in Excel
    • Excel Highlight Duplicates
    • Excel Data Formatting
    • Random Numbers in Excel
    • Basic Excel Formulas
    • Page Numbers in Excel
    • Excel CAGR Formula
    • Excel Combine cells
    • IFERROR with VLOOKUP in Excel
    • Column Sort in Excel
    • Print Comments in Excel
    • Cheat Sheet of Excel Formulas
    • Remove Hyperlinks in Excel
    • Excel Drop Down List
    • Remove (Delete) Blank Rows in Excel
    • Relative Reference in Excel
    • Subscript in Excel
    • Superscript in Excel
    • Excel Insert Multiple Rows
    • Excel Absolute Reference
    • Unhide Columns in Excel
  • Excel Functions (10+)
  • Excel Tools (97+)
  • Financial Functions in Excel (17+)
  • Logical Functions in Excel (12+)
  • Lookup Reference Functions in Excel (30+)
  • Maths Function in Excel (39+)
  • TEXT and String Functions in Excel (25+)
  • Date and Time Function in Excel (20+)
  • Statistical Functions in Excel (55+)
  • Information Functions in Excel (4+)
  • Excel Charts (44+)
  • VBA (180+)
  • Workplace Productivity (4+)
  • Microsoft Office Tools (14+)
  • Excel Formula and Functions (20+)
  • MS Excel Shortcuts (4+)
Excel Functions Courses
  • EXCEL COURSE
  • Online Excel Data Analysis Course
  • Excel for Finance Course
Footer
About Us
  • Who is EDUCBA?
  • Sign Up
  •  
Free Courses
  • Free Online Excel Course
  • Free Vba Course
Certification Courses
  • All Courses
  • Excel VBA Course - All in One Bundle
  • VBA Course
  • Excel Data Analysis Course
  • Excel for Marketing Course
  • Excel for Finance Course
  • Excel for HR Training
Resources
  • Resources (A To Z)
  • Excel Charts
  • Excel Tips
  • Excel Tools in Excel
  • Excel Functions
  • Financial Functions in Excel
  • Logical Functions in Excel
  • Lookup Reference Functions in Excel
  • Maths Function in Excel
  • TEXT and String Functions in Excel
  • Date and Time Function in Excel
  • Statistical Functions in Excel
  • Information Functions in Excel
Apps
  • iPhone & iPad
  • Android
Support
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions

© 2019 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA

Download Text Compare Excel Template

By continuing above step, you agree to our Terms of Use and Privacy Policy.
EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA Login

Forgot Password?

Let’s Get Started
Please provide your Email ID
Email ID is incorrect

Limited Period Offer - All in One Excel VBA Bundle (120+ Courses, 500+ hours of Videos) View More

Limited Period Offer - Limited Period Offer - All in One Excel VBA Bundle (120+ Courses, 500+ hours of Videos) View More