=LEN(C25)-LEN(SUBSTITUTE(C25,".",""))
=LEN(C25)-LEN(SUBSTITUTE(C25,".",""))=0
=LEN(C25)-LEN(SUBSTITUTE(C25,".",""))=1
=LEN(C25)-LEN(SUBSTITUTE(C25,".",""))=2
MrExcelPlayground15.xlsx | ||||
---|---|---|---|---|
C | D | |||
25 | 1 | Thing | ||
26 | 1.1 | Subthing | ||
27 | 1.2 | Subthing | ||
28 | 1.2.1 | Double Subthing | ||
29 | 2 | Thing | ||
30 | 2.1 | Subthing | ||
31 | 2.1.1 | Double Subthing | ||
Sheet29 |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
C25:D31 | Expression | =LEN($C25)-LEN(SUBSTITUTE($C25,".",""))=2 | text | NO |
C25:D31 | Expression | =LEN($C25)-LEN(SUBSTITUTE($C25,".",""))=1 | text | NO |
C25:D31 | Expression | =LEN($C25)-LEN(SUBSTITUTE($C25,".",""))=0 | text | NO |