Is it possible to explain further how I should enter the formula in the CF, and is it possible to have the abiilty in the formula to allow me to have one colour for the 5s, and another for the 4s?
Sure. For the layout below ..
1. Select from C2 down to the end
2. Home ribbon tab - Conditional Formatting - Clear Rules - Clear Rules from selected cells (This is just to ensure anything that you tried before is cleared out)
3. Home ribbon tab - Conditional Formatting - New rule ... - Use a formula to determine which cells to format (You were doing this already I believe) - In the 'Format values where this formula is true:' box enter
only the formula (I have highlighted it red this time) - Format... - Fill tab - Choose colour - OK -OK
4. Repeat for the second condition/colour
<b>Risk Period (2)</b><br /><br /><table border="1" cellspacing="0" cellpadding="0" style="font-family:Arial,Arial; font-size:8pt; background-color:#ffffff; padding-left:2pt; padding-right:2pt; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:84px;" /><col style="width:84px;" /><col style="width:161px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >B</td><td >C</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td style="font-size:10pt; text-align:right; ">Some Date</td><td style="font-size:10pt; text-align:right; ">Risk period</td><td style="font-size:10pt; text-align:right; ">Risk period End/Start</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td style="font-size:10pt; text-align:right; ">14-Apr-20</td><td style="font-size:10pt; text-align:center; ">4</td><td style="background-color:#ffc000; font-size:10pt; text-align:right; ">14-Jun-20</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td style="font-size:10pt; text-align:right; ">09-Jun-20</td><td style="font-size:10pt; text-align:center; ">3</td><td style="font-size:10pt; text-align:right; ">09-Sep-20</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td style="font-size:10pt; text-align:right; ">10-Jan-21</td><td style="font-size:10pt; text-align:center; ">1</td><td style="font-size:10pt; text-align:right; ">11-Jul-21</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >5</td><td style="font-size:10pt; text-align:right; ">18-Mar-20</td><td style="font-size:10pt; text-align:center; ">5</td><td style="background-color:#00b0f0; font-size:10pt; text-align:right; ">18-Apr-20</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >6</td><td style="font-size:10pt; "> </td><td style="font-size:10pt; text-align:center; ">4</td><td style="font-size:10pt; ">Enter Date Raised</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >7</td><td style="font-size:10pt; text-align:right; ">07-Oct-20</td><td style="font-size:10pt; text-align:center; ">1</td><td style="font-size:10pt; text-align:right; ">08-Apr-21</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >8</td><td style="font-size:10pt; text-align:right; ">10-Feb-21</td><td style="font-size:10pt; text-align:center; ">4</td><td style="background-color:#ffc000; font-size:10pt; text-align:right; ">10-Apr-21</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >9</td><td style="font-size:10pt; text-align:right; ">26-Apr-21</td><td style="font-size:10pt; text-align:center; ">4</td><td style="background-color:#ffc000; font-size:10pt; text-align:right; ">26-Jun-21</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >10</td><td style="font-size:10pt; text-align:right; ">24-Dec-20</td><td style="font-size:10pt; text-align:center; ">2</td><td style="font-size:10pt; text-align:right; ">24-Jun-21</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >11</td><td style="font-size:10pt; "> </td><td style="font-size:10pt; text-align:center; ">5</td><td style="font-size:10pt; ">Enter Date Raised</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >12</td><td style="font-size:10pt; text-align:right; ">09-Mar-21</td><td style="font-size:10pt; text-align:center; ">1</td><td style="font-size:10pt; text-align:right; ">10-Sep-21</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >13</td><td style="font-size:10pt; text-align:right; ">04-Jan-20</td><td style="font-size:10pt; text-align:center; ">3</td><td style="font-size:10pt; text-align:right; ">04-Apr-20</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >14</td><td style="font-size:10pt; "> </td><td style="font-size:10pt; text-align:center; ">1</td><td style="font-size:10pt; ">Enter Date Raised</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >15</td><td style="font-size:10pt; text-align:right; ">22-Jul-20</td><td style="font-size:10pt; text-align:center; ">1</td><td style="font-size:10pt; text-align:right; ">23-Jan-21</td></tr><tr style="height:21px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >16</td><td style="font-size:10pt; text-align:right; ">08-Jan-20</td><td style="font-size:10pt; text-align:center; ">4</td><td style="background-color:#ffc000; font-size:10pt; text-align:right; ">08-Mar-20</td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b>Spreadsheet Formulas</b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Formula</td></tr><tr><td >C2</td><td >=IF(A2="","Enter Date Raised",EDATE<span style=' color:008000; '>(A2,CHOOSE<span style=' color:#0000ff; '>(B2,6,6,3,2,1)</span>)</span>+<span style=' color:008000; '>(B2=1)</span>)</td></tr></table></td></tr></table><br /><table style="font-family:Arial; font-size:10pt; background-color:#fffcf9; border-style: groove ;border-color:#ff0000"><tr><td ><b>Conditional formatting </b></td></tr><tr><td ><table border="1" cellspacing="0" cellpadding="0" style="font-family:Arial; font-size:10pt; padding-left:2pt; padding-right:2pt; "><tr><td >Cell</td><td >Nr.: / Condition</td><td >Format</td></tr><tr><td >C2</td><td >1. / Formula is
=AND(A2<>"",B2=5)</td><td style="background-color:#00b0f0; ">Abc</td></tr><tr><td >C2</td><td >2. / Formula is
=AND(A2<>"",B2=4)</td><td style="background-color:#ffc000; ">Abc</td></tr></table></td></tr></table>