CF Shading Cell With Red

muhammad susanto

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

how to highlighted cell with red if :
if in name contains first word "s"---so highlighted with red in adjacent cell (in col.cf)


<tbody>
[TD="bgcolor: #FFFFFF"] name [/TD]
[TD="bgcolor: #FFFFFF"] cf [/TD]

[TD="bgcolor: #FFFFFF"] saluran terbuka [/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FF0000]#FF0000[/URL] , align: right"] [/TD]

[TD="bgcolor: #FFFFFF"] saluran tertutup [/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FF0000]#FF0000[/URL] , align: right"] [/TD]

</tbody>


m.susanto
 
Last edited:

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
i hope this make clear :

<style type="text/css">
table.tableizer-table {
font-size: 12px;
border: 1px solid #CCC ;
font-family: Arial, Helvetica, sans-serif;
}
.tableizer-table td {
padding: 4px;
margin: 3px;
border: 1px solid #CCC ;
}
.tableizer-table th {
background-color: #104E8B ;
color: #FFF ;
font-weight: bold;
}
</style><!-- Please do not remove this header -->
<!-- Table easily created from Excel with ASAP Utilities (http://www.asap-utilities.com) -->
<table border="1" bordercolor="#C0C0C0" bordercolordark="#FFFFFF" cellspacing="0" cellpadding="2">
<tr>
<td bgcolor="#FFFFFF" valign="bottom" style="white-space: nowrap"><font face="Tahoma" size="2" color="#000000">name</font></td>
<td bgcolor="#FFFFFF" valign="bottom" style="white-space: nowrap"><font face="Tahoma" size="2" color="#000000">cf</font></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" valign="bottom" style="white-space: nowrap"><font face="Tahoma" size="2" color="#000000">saluran terbuka</font></td>
<td bgcolor="#FF0000" valign="bottom" style="white-space: nowrap"><font face="Tahoma" size="2" color="#000000">xxx</font></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" valign="bottom" style="white-space: nowrap"><font face="Tahoma" size="2" color="#000000">saluran tertutup</font></td>
<td bgcolor="#FF0000" valign="bottom" style="white-space: nowrap"><font face="Tahoma" size="2" color="#000000">xxxxx</font></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" valign="bottom" style="white-space: nowrap"><font face="Tahoma" size="2" color="#000000">BOX CLUVERT</font></td>
<td bgcolor="#FFFFFF" valign="bottom" style="white-space: nowrap"><font face="Tahoma" size="2" color="#000000">dadad</font></td>
</tr>
</table>





[TABLE="class: tableizer-table"]
<thead>[TR="class: tableizer-firstrow"]
[TH][/TH]
[TH][/TH]
[/TR]
</thead><tbody>[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:
Upvote 0
Excel Workbook
AB
1namecf
2saluran terbukaxxx
3saluran tertutupxxxxx
4BOX CLUVERTdadad
CF
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B21. / Formula is =LEFT(A2,1)="s"Abc
 
Upvote 0
hi peter...thank you but i miss it, should be 2 criteria
contains first word "s" AND contains word "LAND" in cell B2
i mean in cell A2 = contains first "s" and cell B2=contains exactly"LAND", then shading Red in cell B2
 
Upvote 0
hi peter...thank you but i miss it, should be 2 criteria
contains first word "s" AND contains word "LAND" in cell B2
i mean in cell A2 = contains first "s" and cell B2=contains exactly"LAND", then shading Red in cell B2
Nothing like that mentioned in the original post?
Any realistic sample data and expected results?
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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