Skip to content
YB Digital: WWW Publisher Of The Year Runner-Up 2021

YB.Digital

  • Home
  • Articles
  • Web
  • Office productivity
  • Salesforce
  • Google
  • Social network
How to properly use Excel String Compare function?
Office productivity

How to properly use Excel String Compare function?

ybierling October 10, 2019September 22, 2019 compare 2 strings in Excel, equal sign in Excel, EXACT function Excel, Excel compare text strings, Excel compare two strings for similarity, Excel functions, Excel string compare, MSExcel

Properly use Excel string compare function

Using MS Excel as an everyday solution, can make your life much easier. It doesn’t matter where you work, the way that Excel works, it will get you out of trouble, with plenty of useful simple functions to count number of occurrences , find the position of a character in a string , count digits in cell or count characters in cell for example.

But Excel has an interesting feature that is much easier to work with than any other software nowadays. It will let you compare two strings and see if they are similar or different from one another.

#1 How do you compare two strings for similarity in Excel?

If you want to determine if two cells are equal, which is a much easier mathematical version, you will use the EXACT function.

It doesn’t matter if there are numbers or words or phrases. This function will examine the cells for which you want to perform a proper Excel string compare .

All you have to do is to click on the cell you want to get the result. After that, click on the formula tab, which is above the cells. On the formula tab you will write the function you will need to work with.

It’s not necessary to look up for the functions in the function settings. You can learn few of them so the process will be faster.

On that tab you will put the equal sign before any function. So it will be like this:

Excel String compare case sensitive: =EXACT

E.g. Let’s say C1 is ‘watermelon’ and C5 is ‘Watermelon’.

The function to perform the exact Excel string compare will be:

Exact case sensitive Excel string compare : =EXACT(C1,C5)

How to properly use Excel String Compare function? : Exact Excel string compare with function EXACT returns false for different cases
How to properly use Excel String Compare function? : Exact Excel string compare with function EXACT returns false for different cases

On the cell you chose to get the result, Exact will turn into TRUE or FALSE, depending on what you want to compare.

In our case it will be a FALSE result, because the case is different, and the function EXACT is case sensitive. If you want to compare ‘Green’ and ‘Green’, the software will know that the strings are the same and you will get a TRUE result.

How to properly use Excel String Compare function? : Exact Excel string compare with function EXACT returns false for similar case
How to properly use Excel String Compare function? : Exact Excel string compare with function EXACT returns false for similar case

Either way, you don’t have to worry about the result because the Excel software will always get it right. Just take care you use the function you need for the process that you want to perform, in our case an exact Excel string compare between two cells.

#2 Compare two strings with personalized return value

You can even customize the answers you will get on that cell. Instead of getting TRUE or FLASE, you can get YES or NO. But for that you need an additional function, which is the IF function.

Compare two string with custom return value: =IF(EXACT(C1,C5), YES, NO )
How to properly use Excel String Compare function? : Compare two string with custom return value using function EXACT
How to properly use Excel String Compare function? : Compare two string with custom return value using function EXACT

Also, don’t forget to use the quotation marks when you are not using a function or cells numbers.

#3 How to compare two strings case insensitive in Excel?

However, the EXACT function is a case sensitive and it exists a much simple way. Forgetting about this function you can also use the equal sign as a pure function.

Excel string compare case insensitive: =C1=C5
How to properly use Excel String Compare function? : Excel string compare case insensitive using operator equal
How to properly use Excel String Compare function? : Excel string compare case insensitive using operator equal

It is not hard to compare cells between them without paying attention to lowercase or uppercase. It doesn’t matter if you are writing WaTErmelon or simply watermelon because this MS tool will verify the content of the string and it will get the result right.

In short, how to perform a perfect Excel String compare

Of course, there are many ways to compare two strings in MS Excel. But it does require to know a little bit of coding. And not anybody has time to learn the coding way when using Excel for work. So, in the end, this is a proper way to get a proper result for your needs.

Excel string compare case sensitive: =EXACT(C1,C5)
Excel string compare case insensitive: =C1=C5

Go even further with MSExcel string operations like count number of occurrences , find the position of a character in a string , count digits in cell , or count characters in cell now that you master the string comparison in your favourite spreadsheet program, MSExcel.

How to properly use Excel String Compare function? : Excel string compare case insensitive
How to properly use Excel String Compare function? : Excel string compare case insensitive

 

  • How to count number of cells and count characters in a cell in Excel?
  • An introduction to Google Cloud in simple terms

Affiliate Disclaimer

Please note that some of the links on our site are affiliate links, which means that if you click on one of the links and purchase an item, we may receive a commission.
JavaScript, DevOps, JAVA, and .NET developers ready to work remotely on your projects immediately!
JavaScript, DevOps, JAVA, and .NET developers ready to work remotely on your projects immediately!
Trainings and certifications for your IT projects: SAP, office, project management, and more skills
Trainings and certifications for your IT projects: SAP, office, project management, and more skills

Recent Posts

  • 20 Best WordPress Plugins for Your eCommerce Business
  • How to Use Your Smartphone as a Productivity Tool?
  • Boost Your Projects with a DevOps Expert
  • What Are the Best Digital Marketing Certifications in 2024?
  • Evaluating the Effectiveness of Your RMF: Metrics and KPIs for Measuring Success

Useful links

Website optimization
Hotel booking

Hotel booking
Hotel booking

Flight, hotel, car comparison and booking
Flight, hotel, car comparison and booking

Find local activities
Find local activities

Transfer money
Transfer money

Archives

  • April 2025 (1)
  • March 2025 (1)
  • February 2025 (1)
  • September 2024 (1)
  • July 2024 (2)
  • June 2024 (1)
  • April 2024 (1)
  • March 2024 (9)
  • February 2024 (3)
  • October 2023 (1)
  • September 2023 (1)
  • April 2023 (1)
  • March 2021 (1)
  • April 2020 (16)
  • March 2020 (9)
  • February 2020 (20)
  • January 2020 (11)
  • December 2019 (4)
  • November 2019 (20)
  • October 2019 (23)
  • September 2019 (15)
  • August 2019 (5)
  • June 2019 (3)
  • May 2019 (23)
  • April 2019 (17)
  • March 2019 (16)
  • February 2019 (20)
  • January 2019 (16)
  • December 2018 (21)
  • November 2018 (18)
  • October 2018 (2)
  • September 2018 (13)
  • August 2018 (4)
  • July 2018 (2)
  • June 2018 (3)
  • May 2018 (3)
  • April 2018 (1)
  • March 2018 (1)
  • February 2018 (1)
  • January 2018 (2)
  • September 2017 (2)
  • August 2017 (7)
  • July 2017 (10)
  • June 2017 (2)
  • April 2017 (8)
  • March 2017 (7)
  • February 2017 (5)
  • January 2017 (8)
  • December 2016 (26)
  • November 2016 (14)
  • October 2016 (10)
  • September 2016 (8)
  • August 2016 (3)
  • July 2016 (2)
  • June 2016 (1)
  • December 2015 (1)
  • August 2015 (5)
  • July 2015 (1)
  • April 2015 (1)
  • March 2015 (1)
  • October 2013 (1)
  • July 2013 (2)
  • April 2013 (1)
  • November 2012 (1)
  • October 2012 (1)
  • September 2012 (1)
  • April 2012 (1)
  • February 2012 (1)
  • December 2011 (1)
  • August 2011 (2)
  • May 2011 (2)
  • April 2011 (4)
  • March 2011 (1)
Copyright © 2025 YB.Digital. All rights reserved.
Theme: ColorMag by ThemeGrill. Powered by WordPress.