EXACT

    Text

    Compares two text strings and returns TRUE if they are exactly the same (case-sensitive).

    Translations
    EnglishEXACT
    FrenchEXACT
    SpanishIGUAL
    GermanIDENTISCH
    ItalianIDENTICO
    PortugueseEXATO
    DutchGELIJK
    PolishPORÓWNAJ
    RussianСОВПАД
    TurkishÖZDEŞ
    CzechSTEJNÉ
    HungarianAZONOS
    SwedishEXAKT
    DanishLANSEN
    FinnishVERTAA
    Syntax
    EXACT(text1, text2)

    Arguments

    • text1First text string
    • text2Second text string
    Examples
    =EXACT("Hello","hello")
    FALSE

    Case sensitive comparison

    =EXACT(A1,B1)
    TRUE/FALSE

    Compares two cells exactly

    =EXACT("Test","Test")
    TRUE

    Identical strings

    Tips & Best Practices
    • Case-sensitive unlike = operator
    • Useful for password validation
    • Returns TRUE or FALSE
    Common Mistakes
    • Using = to compare text thinking it's case-sensitive - the = operator ignores case, EXACT is the only one that respects it
    • Forgetting EXACT also compares extra spaces - two strings that look identical but have a stray extra space return FALSE
    • Using EXACT to compare numbers or dates when it's built for text and converts everything to a string first
    Related Functions
    TRIMStrips extra spaces before an EXACT comparison, to avoid a false FALSE.
    UPPERCan be applied to both sides if you actually want to ignore case while still comparing strictly otherwise.
    SUBSTITUTEUseful for cleaning up formatting differences before comparing with EXACT.
    Frequently Asked Questions

    What's the difference between EXACT and the = operator?

    The = operator ignores case, so "Hello"="hello" returns TRUE. EXACT is case-sensitive and would return FALSE for the same comparison.

    Does EXACT ignore extra spaces?

    No, EXACT compares character by character, including spaces. Run TRIM on both values first if spacing shouldn't count.

    Why use EXACT to validate a password?

    Because case matters for a password - "Password1" and "password1" need to be treated as different, which only EXACT guarantees against a normal case-insensitive comparison.

    Need to translate a formula using EXACT?

    Use our translator to convert your complete formula