shadow12345
Well-known Member
- Joined
- May 10, 2004
- Messages
- 1,238
Morning all,
Can anyone tell me what I need to do in conditional formating to check the below table. If the settlement price is outside of the bid or offer I would like a red box around the bid or offer. (these can be negative or positive numbers).
In the below it should highlight L9 if that helps.
<table border = "1" cellspacing = "0" bordercolor="#999999">
<tr><td bgcolor="#C0C0C0"> </td>
<td align="center" bgcolor="#C0C0C0"><b>K</b></td><td align="center" bgcolor="#C0C0C0"><b>L</b></td><td align="center" bgcolor="#C0C0C0"><b>M</b></td></tr>
<tr><td align = "center" bgcolor="#C0C0C0"><b>6</b></td><td rowspan="1" colspan="1" width="138" height="30" align = "left" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">Bid </font></td><td rowspan="1" colspan="1" width="108" height="30" align = "left" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">Offer </font></td><td rowspan="1" colspan="1" width="168" height="30" align = "left" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">Settlement Price </font></td></tr>
<tr><td align = "center" bgcolor="#C0C0C0"><b>7</b></td><td rowspan="1" colspan="1" width="138" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-15 </font></td><td rowspan="1" colspan="1" width="108" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-4 </font></td><td rowspan="1" colspan="1" width="168" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-14 </font></td></tr>
<tr><td align = "center" bgcolor="#C0C0C0"><b>8</b></td><td rowspan="1" colspan="1" width="138" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-51 </font></td><td rowspan="1" colspan="1" width="108" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-39 </font></td><td rowspan="1" colspan="1" width="168" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-49 </font></td></tr>
<tr><td align = "center" bgcolor="#C0C0C0"><b>9</b></td><td rowspan="1" colspan="1" width="138" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-71 </font></td><td rowspan="1" colspan="1" width="108" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-70 </font></td><td rowspan="1" colspan="1" width="168" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-69 </font></td></tr>
<tr><td align = "center" bgcolor="#C0C0C0"><b>10</b></td><td rowspan="1" colspan="1" width="138" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-65 </font></td><td rowspan="1" colspan="1" width="108" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">10 </font></td><td rowspan="1" colspan="1" width="168" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-64 </font></td></tr>
<tr><td align = "center" bgcolor="#C0C0C0"><b>11</b></td><td rowspan="1" colspan="1" width="138" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-90 </font></td><td rowspan="1" colspan="1" width="108" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-60 </font></td><td rowspan="1" colspan="1" width="168" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-70 </font></td></tr>
</table>
Can anyone tell me what I need to do in conditional formating to check the below table. If the settlement price is outside of the bid or offer I would like a red box around the bid or offer. (these can be negative or positive numbers).
In the below it should highlight L9 if that helps.
<table border = "1" cellspacing = "0" bordercolor="#999999">
<tr><td bgcolor="#C0C0C0"> </td>
<td align="center" bgcolor="#C0C0C0"><b>K</b></td><td align="center" bgcolor="#C0C0C0"><b>L</b></td><td align="center" bgcolor="#C0C0C0"><b>M</b></td></tr>
<tr><td align = "center" bgcolor="#C0C0C0"><b>6</b></td><td rowspan="1" colspan="1" width="138" height="30" align = "left" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">Bid </font></td><td rowspan="1" colspan="1" width="108" height="30" align = "left" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">Offer </font></td><td rowspan="1" colspan="1" width="168" height="30" align = "left" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">Settlement Price </font></td></tr>
<tr><td align = "center" bgcolor="#C0C0C0"><b>7</b></td><td rowspan="1" colspan="1" width="138" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-15 </font></td><td rowspan="1" colspan="1" width="108" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-4 </font></td><td rowspan="1" colspan="1" width="168" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-14 </font></td></tr>
<tr><td align = "center" bgcolor="#C0C0C0"><b>8</b></td><td rowspan="1" colspan="1" width="138" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-51 </font></td><td rowspan="1" colspan="1" width="108" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-39 </font></td><td rowspan="1" colspan="1" width="168" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-49 </font></td></tr>
<tr><td align = "center" bgcolor="#C0C0C0"><b>9</b></td><td rowspan="1" colspan="1" width="138" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-71 </font></td><td rowspan="1" colspan="1" width="108" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-70 </font></td><td rowspan="1" colspan="1" width="168" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-69 </font></td></tr>
<tr><td align = "center" bgcolor="#C0C0C0"><b>10</b></td><td rowspan="1" colspan="1" width="138" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-65 </font></td><td rowspan="1" colspan="1" width="108" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">10 </font></td><td rowspan="1" colspan="1" width="168" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-64 </font></td></tr>
<tr><td align = "center" bgcolor="#C0C0C0"><b>11</b></td><td rowspan="1" colspan="1" width="138" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-90 </font></td><td rowspan="1" colspan="1" width="108" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-60 </font></td><td rowspan="1" colspan="1" width="168" height="30" align = "right" valign = "bottom" bgcolor ="#FFFFFF"><font color="#000000">-70 </font></td></tr>
</table>