Simple Conditional Formatting formula.

Sir Vili

Board Regular
Joined
Jul 11, 2002
Messages
148
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
3AdamAdam
4AnthonyAnthony
5AutoAuto
6BerettaBeretta
7BrandyBrandy
8BrazilBrazil
9CeciliaCecilia
10CelsiusCelsius
11CyprusCyprus
12
1


Sir Vili.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
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".
 

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
Select range A3:A11. Conditional formatting formula is:

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

Sir Vili

Board Regular
Joined
Jul 11, 2002
Messages
148
Hi Andrew.

Your formula made it just as I wanted. Thank You.

Hi Aladin.

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.
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209

ADVERTISEMENT

Hi Aladin.

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
 

Ian Mac

MrExcel MVP
Joined
Feb 20, 2002
Messages
1,174
On 2002-10-02 09:46, Aladin Akyurek wrote:
Hi Aladin.

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)))
3AdamAdamAdamTRUEFALSE
4AnthonyAnthonyAnthonyTRUEFALSE
5AutoAutoAutoTRUETRUE
6BerettaBerettaBerettaTRUEFALSE
7BrandyBrandyBrandyTRUEFALSE
8BrazilBrazilBrazilTRUETRUE
9CeciliaCeciliaCeciliaTRUEFALSE
10CelsiusCelsiusCelsiusTRUEFALSE
11CyprusCyprusCyprusTRUEFALSE
Sheet3
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
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
 

Forum statistics

Threads
1,143,614
Messages
5,719,719
Members
422,242
Latest member
hishamkhatri

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
Top