简体   繁体   中英

Case sensitive IF formula in Excel

I have an excel formula that dells me if I have a duplicate record.

=IF(Cell1=Cell2,"Duplicate","Not")

My Problem is that i need the operation to be case aware

For Example, My code would produce "Duplicate" for:

Bird = bird
deKalb=Dekalb
aBcDeFg=ABCDEFG

I want it to return "Not"

you want exact(X, x) = (false)

"EXACT is case-sensitive but ignores formatting differences."

http://office.microsoft.com/en-us/excel-help/check-if-a-cell-contains-text-case-sensitive-HP010079177.aspx

so:

if(exact(cell1, cell2), "dup", "not")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM