Home / Formula Types / Text / Exact

Formula generator for EXACT FUNCTION function

The EXACT function is used to test whether two strings are identical. It returns TRUE if the strings are exactly the same, including case, and FALSE otherwise.

Formula generator

Spreadsheet AI is the #1 AI for generating and comprehending Excel and Google Sheets formulas. With its advanced capabilities, it goes beyond the basics by providing support for VBA and custom tasks. Streamline your spreadsheet with Spreadshee AI

Product Demo

How to generate an EXACT FUNCTION formula using AI.

To obtain information on the ARRAY_CONSTRAIN formula, you could ask the AI chatbot the following question: “To obtain the EXACT formula for comparing two text values in Excel, you could ask the AI chatbot: "How can I compare two text values in Excel to check if they are exactly the same?"

EXACT FUNCTION formula syntax

The EXACT function in Excel checks if two text values are exactly the same. Its syntax is: EXACT(text1, text2) - text1: The first text value or reference to compare. - text2: The second text value or reference to compare. The function returns TRUE if both text values are identical, including capitalization, spacing, and special characters. It returns FALSE if the text values are not exactly the same. For example, if you want to compare if "apple" and "Apple" are the same, you can use the formula =EXACT("apple", "Apple"). This will return FALSE because the capitalization is different.

Use Cases & Examples

Comparing Names


Checks if two names are identical.



Validating Passwords


Verifies if two password inputs match.



Checking Email Addresses


Compares two email addresses to see if they are the same.



AI tips

Enhance Your Excel Efficiency with AI Tips: Discover our innovative Excel add-in feature, ‘AI Tips.’ Streamline your workflow and boost productivity as AI-powered suggestions offer real-time insights for optimal spreadsheet organization, data analysis, and visualization. Elevate your Excel experience with intelligent recommendations tailored to your unique needs, helping you work smarter and achieve more.

Provide Clear Context

When describing your requirements to the AI, provide clear and concise context about the data you have, the specific task you want to accomplish, and any relevant constraints or conditions. This helps the AI understand the problem accurately.

Include Key Details

Include important details such as column names, data ranges, and specific criteria that need to be considered in the formula. The more precise and specific you are, the better the AI can generate an appropriate formula.

Use Examples

If possible, provide examples or sample data to illustrate the desired outcome. This can help the AI better understand the pattern or logic you are looking for in the formula.

Mention Desired Functionality

Clearly articulate the functionality you want the formula to achieve. Specify if you are looking for lookups, calculations, aggregations, or any other specific operations.


Frequently Asked Questions

  • The EXACT function is used to compare two text strings and determine if they are exactly the same. It returns TRUE if the strings are identical, and FALSE otherwise.
  • To use the EXACT function, you need to provide two text strings as arguments. For example, =EXACT(A1, B1) compares the values in cells A1 and B1 and returns TRUE if they are exactly the same.
  • Yes, the EXACT function is case-sensitive. It considers uppercase and lowercase letters as different characters. For example, 'apple' and 'Apple' would be considered different strings.
  • No, the EXACT function is specifically designed for comparing text strings. If you want to compare numbers, you should use other functions such as =A1=B1.
  • Yes, there are a few things to keep in mind when using the EXACT function. It is sensitive to leading or trailing spaces, so 'apple' and ' apple ' would be considered different strings. Additionally, the EXACT function only works with text strings up to 255 characters in length.