CF Shading Cell With Red

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,077
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)

namecf
saluran terbuka
saluran tertutup

<tbody>
</tbody>


m.susanto
 
Last edited:

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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>






<thead>
</thead><tbody>
</tbody>
 
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,216,783
Messages
6,132,690
Members
449,748
Latest member
freestuffman

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