# Simple Conditional Formatting formula.

#### Sir Vili

##### Board Regular
Hi.

When in row which is sorted, how can I get underline to the last word before next row, which starts with new letter.
Cond_Form.xls
ABCD
1Formatthis:Tothis:
2
4AnthonyAnthony
5AutoAuto
6BerettaBeretta
7BrandyBrandy
8BrazilBrazil
9CeciliaCecilia
10CelsiusCelsius
11CyprusCyprus
12
1

Sir Vili.

### Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Let A1 be the first cell of the range of interest.

Use =A1<>A2 as formula in cond format and use the Border tab for "underlining".

Select range A3:A11. Conditional formatting formula is:

=OR(ISBLANK(A4),(LEFT(A4,1) > LEFT(A3,1)))

Hi Andrew.

Your formula made underlines in every row. That was not my Conditoinal Formatting intention. Anyway I thank You for Your attention to my problem and for Your reply.

Regards Sir Vili.

Your formula made underlines in every row. That was not my Conditoinal Formatting intention. Anyway I thank You for Your attention to my problem and for Your reply.

Regards Sir Vili.

I see I forgot applying LEFT... It should have been:

=LEFT(A3)<>LEFT(A4)
This message was edited by Aladin Akyurek on 2002-10-02 09:56

On 2002-10-02 09:46, Aladin Akyurek wrote:

Your formula made underlines in every row. That was not my Conditoinal Formatting intention. Anyway I thank You for Your attention to my problem and for Your reply.

Regards Sir Vili.

No, it doesn't. You should have adjusted the start cell... It should have been...

=A3<>A4

I have to agree with the OP:
Controlling Other Apps.xls
ABCDEF
1Tothis:
2=C3<>C4=OR(ISBLANK(C4),(LEFT(C4,1)>LEFT(C3,1)))
4AnthonyAnthonyAnthonyTRUEFALSE
5AutoAutoAutoTRUETRUE
6BerettaBerettaBerettaTRUEFALSE
7BrandyBrandyBrandyTRUEFALSE
8BrazilBrazilBrazilTRUETRUE
9CeciliaCeciliaCeciliaTRUEFALSE
10CelsiusCelsiusCelsiusTRUEFALSE
11CyprusCyprusCyprusTRUEFALSE
Sheet3

Ian,

I can imagine...

I used letters as data... & forgot adding LEFT to the formula.
This message was edited by Aladin Akyurek on 2002-10-02 10:24

Replies
3
Views
132
Replies
2
Views
230
Replies
2
Views
542
Replies
1
Views
198
Replies
2
Views
176

1,219,005
Messages
6,145,706
Members
450,635
Latest member
Rookie3510

### 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.

### Which adblocker are you using?

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

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