Home » PostsCompare two stringsTo compare two text strings in Excel to determine if they're equal, you can use the EXACT function. In the example shown, the formula in D5 is: =EXACT(B5,C5)April 14, 2025 · 1 min · 5 words · Lauren MillsTable of ContentsExplanationExplanation#By default, Excel isnotcase-sensitive.