Theza
Theza

Reputation: 613

Google Sheet comparative uppercase and lowercase

I need to check the contents of a cell to make sure that all characters in it are uppercase, but comparative "=" (=UPPER(cell)=cell, doesn't work.

"Abc" = "ABC" => TRUE

"abc" = "ABC" => TRUE

Upvotes: 1

Views: 611

Answers (2)

player0
player0

Reputation: 1

regex is case sensitive too. try:

=ARRAYFORMULA(IF(B:B="",,REGEXMATCH(A:A&"", B:B&"")))

0

or use:

=ARRAYFORMULA(IF(B:B="",,EXACT(A:A, B:B)))

0

Upvotes: 1

shrivallabha.redij
shrivallabha.redij

Reputation: 5902

You can use

=EXACT(A1,B1)

which will compare the case as well.

Upvotes: 3

Related Questions