How to Use the EXACT Function in Excel

Below is a comprehensive guide on utilizing the EXACT function in Microsoft Excel and Google Sheets.

Introduction

The EXACT function is utilized to compare two text strings in Excel and Google Sheets, determining whether they match precisely.

Syntax

The syntax for the EXACT function is consistent across both Excel and Google Sheets:

=EXACT(text1, text2)
  • text1: The first text string you want to compare.
  • text2: The second text string you want to compare.

Examples of Usage

Example 1: Basic Usage

Let’s compare two text strings to see if they are identical.

Text 1 Text 2 Result
Apple Apple =EXACT(A2, B2)

The formula in the “Result” column will return TRUE, indicating that both text strings are exactly the same.

Example 2: Case Sensitivity

It’s important to note that the EXACT function is case-sensitive. This means it distinguishes between uppercase and lowercase letters.

Text 1 Text 2 Result
Excel excel =EXACT(A2, B2)

The formula in the “Result” column will return FALSE because the text strings differ in case, thereby not matching exactly.

Example 3: Using in Conditional Formatting

The EXACT function can also be employed in conditional formatting to visually highlight cells where text strings match exactly.

  • Select the range of cells you wish to format.
  • Access “Format” or “Conditional formatting” from the toolbar.
  • Select “Custom formula is” from the drop-down menu.
  • Input the EXACT function with the appropriate text references.
  • Configure your preferred formatting options.

With these examples and instructions, you should now have a clearer understanding of how to utilize the EXACT function in Excel and Google Sheets for text string comparisons.

More information: https://support.microsoft.com/en-us/office/exact-function-d3087698-fc15-4a15-9631-12575cf29926

Other functions
Returns an array of text values from any specified range
Changes full-width (double-byte) English letters or katakana within a character string to half-width (single-byte) characters
Converts a number to text, using the ß (baht) currency format
Returns the character specified by the code number
Removes all nonprintable characters from text
Returns a numeric code for the first character in a text string
Combines the text from multiple ranges and/or strings, but it doesn't provide the delimiter or IgnoreEmpty arguments
Joins several text items into one text item
Changes half-width (single-byte) English letters or katakana within a character string to full-width (double-byte) characters
Converts a number to text, using the $ (dollar) currency format
Finds one text value within another (case-sensitive)
Formats a number as text with a fixed number of decimals
Changes half-width (single-byte) characters within a string to full-width (double-byte) characters
Returns the leftmost characters from a text value
Returns the number of characters in a text string
Converts text to lowercase
Returns a specific number of characters from a text string starting at the position you specify
Converts text to number in a locale-independent manner
Extracts the phonetic (furigana) characters from a text string
Capitalizes the first letter in each word of a text value
Replaces characters within text
Repeats text a given number of times
Returns the rightmost characters from a text value
Finds one text value within another (not case-sensitive)
Substitutes new text for old text in a text string
Converts its arguments to text
Formats a number and converts it to text
Combines the text from multiple ranges and/or strings, and includes a delimiter you specify between each text value that will be combined If the delimiter is an empty text string, this function will effectively concatenate the ranges
Removes spaces from text
Returns the Unicode character that is references by the given numeric value
Returns the number (code point) that corresponds to the first character of the text
Converts text to uppercase
Converts a text argument to a number
Returns text from any specified value