Highlight all cells with only 1 letter/number

attv

New Member
Joined
Mar 10, 2021
Messages
35
Office Version
  1. 2019
Platform
  1. Windows
As in topic: how to highlight in conditional formatting all cells with only 1 letter/number in it?

Basically, I have a lit of names and sometimes I have only the first letter of the surname present like: L,P, D,

I want to highlight those to manually fix the names
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
MrExcelPlayground.xlsm
I
2carrot
3potato
4bean
5a
6bean
76
8carrot
9c
10bean
Sheet46
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I2:I10Expression=LEN(I2)=1textNO
 
Upvote 0
Sure. Pick whatever range you are interested in. Use conditional formatting, then "Use a formula to determine which cells to format", then put the formula:
=len(b2)=1
assuming b2 is the first cell in the range.
then set the formatting as desired.
 
Upvote 0
Solution
Thank you very much! I've just entered the formula and indeed it marked all the letters.

Problem was some of the single letters like D, E - had also space after them, so I needed to change the value to =2 - but it works just fine as it also highlighted some weird names like CJ
 
Upvote 0
Try James formula this way to account for those cells with single characters and spaces...

=LEN(TRIM(B2))=1
 
Upvote 0

Forum statistics

Threads
1,215,024
Messages
6,122,729
Members
449,093
Latest member
Mnur

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