Highlight cells with text in different languages

Lux Aeterna

Board Regular
Joined
Aug 27, 2015
Messages
191
Office Version
  1. 2019
Platform
  1. Windows
Hello everyone!

I've got an excel file that we add names in both Greek and Latin characters. Some of these characters are common in both languages and, sometimes, words are carelessly written half in English half in Greek. This is a problem when we try to find a name in our file.

Is it possible to highlight cells, preferably using conditional formatting, that are written in two different languages?

Thank you in advance!
 
How about with conditional formatting
Fluff.xlsm
N
1
2ΕΧCEL IS AMAZING
3EXCEL IS AMAZING
4ΕΧΨΕΛ ΙΣ ΑΜΑΖΙΝΓ
5ΕΧΨΕΛ ΙΣ ΑΜΑΖΙΝΓ
6
7
8
9
10
Main
Cells with Conditional Formatting
CellConditionCell FormatStop If True
N2:N8Expression=SUM(--(UNICODE(MID(N2,ROW(INDIRECT("1:"&LEN(N2))),1))>122))>0textNO
 
Upvote 0

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
How about with conditional formatting
Fluff.xlsm
N
1
2ΕΧCEL IS AMAZING
3EXCEL IS AMAZING
4ΕΧΨΕΛ ΙΣ ΑΜΑΖΙΝΓ
5ΕΧΨΕΛ ΙΣ ΑΜΑΖΙΝΓ
6
7
8
9
10
Main
Cells with Conditional Formatting
CellConditionCell FormatStop If True
N2:N8Expression=SUM(--(UNICODE(MID(N2,ROW(INDIRECT("1:"&LEN(N2))),1))>122))>0textNO

I substituted N2 with C5 as this is the first cell of my data (it starts fron C5 and ends in C100000). Is that ok? It works for mixed languages, but it it identifies cells that are written only in greek too.
 
Upvote 0
Ok, how about
Excel Formula:
=SUM(--(UNICODE(MID(SUBSTITUTE(C5," ",""),ROW(INDIRECT("1:"&LEN(SUBSTITUTE(C5," ","")))),1))>122))<>LEN(SUBSTITUTE(C5," ",""))
 
Upvote 0
Ok, how about
Excel Formula:
=SUM(--(UNICODE(MID(SUBSTITUTE(C5," ",""),ROW(INDIRECT("1:"&LEN(SUBSTITUTE(C5," ","")))),1))>122))<>LEN(SUBSTITUTE(C5," ",""))
Now it identifies english characters too. Greek and mixed work fine.
 
Upvote 0
Ok, how about
Excel Formula:
=AND(SUM(--(UNICODE(MID(SUBSTITUTE(C3," ",""),ROW(INDIRECT("1:"&LEN(SUBSTITUTE(C3," ","")))),1))>122))<>LEN(SUBSTITUTE(C3," ","")),SUM(--(UNICODE(MID(SUBSTITUTE(C3," ",""),ROW(INDIRECT("1:"&LEN(SUBSTITUTE(C3," ","")))),1))>122))>0)
 
Upvote 0
Solution
=AND(SUM(--(UNICODE(MID(SUBSTITUTE(C3," ",""),ROW(INDIRECT("1:"&LEN(SUBSTITUTE(C3," ","")))),1))>122))<>LEN(SUBSTITUTE(C3," ","")),SUM(--(UNICODE(MID(SUBSTITUTE(C3," ",""),ROW(INDIRECT("1:"&LEN(SUBSTITUTE(C3," ","")))),1))>122))>0)
It seems to be working perfectly! I only had to change C3 to C5!

Thanks a lot! :)

@Anthony47 thank you for your help too!
 
Upvote 0

Forum statistics

Threads
1,215,221
Messages
6,123,699
Members
449,117
Latest member
Aaagu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top