Conditional formatting (bottom & top border)

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,105
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hello all,

i hope you could help me about conditional formatting border (top & bottom), for this below :

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]seq number (col.a)
[/TD]
[TD]data (col.b)
[/TD]
[/TR]
[TR]
[TD]1.
[/TD]
[TD]george
[/TD]
[/TR]
[TR]
[TD]2.
[/TD]
[TD]mike
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3.
[/TD]
[TD]evan
[/TD]
[/TR]
[TR]
[TD]4.
[/TD]
[TD]john
[/TD]
[/TR]
[TR]
[TD]etc..
[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

how to add border with condition ;
for number 1.---------put border top & bottom
2.---------put border bottom
3.---------put border top & bottom
4.---------put border bottom

it's possible??

thanks!!
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Hello,

Assuming the number 1 is in cell A2, enter this formula in the conditional formatting formula box:

=AND(A1<>"",A2<>"")

Copy the formatting down as fars as you would like.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,226,739
Messages
6,192,739
Members
453,754
Latest member
milestogo

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