serge
Well-known Member
- Joined
- Oct 8, 2008
- Messages
- 1,446
- Office Version
- 2007
- Platform
- Windows
Hi everyone,
I need a CF formula to highlight the number in the previous column, and if the new number to highlight is greater than the previous one it should be in red and if not it should be in green.
my starting column is in A1:A20.
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20.
B1:B2.
10,1,2,3,4,5,6,7,8,9,11,12,13,14,15,16,17,18,19,20.
So the number 10 in B1 is the number to find in A1:A20 and should be in red because is higher than 1 in A1.
Then if I have 5 in C1 int should highlight the number 5 in green in column B1:B20. and if 18 in D1 then the number 18 in C1:C20 should be in red, Etc...
<table width="104" border="0" cellpadding="0" cellspacing="0"><col style="width: 20pt;" width="26" span="4"> <tbody><tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt; width: 20pt;" width="26" height="17">1</td> <td class="xl66" style="width: 20pt;" width="26">10</td> <td class="xl66" style="width: 20pt;" width="26">5</td> <td class="xl65" style="width: 20pt;" width="26">18</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">2</td> <td class="xl67">1</td> <td class="xl67">10</td> <td class="xl67">5</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">3</td> <td class="xl67">2</td> <td class="xl67">1</td> <td class="xl67">10</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">4</td> <td class="xl67">3</td> <td class="xl67">2</td> <td class="xl67">1</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">5</td> <td class="xl67">4</td> <td class="xl67">3</td> <td class="xl67">2</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">6</td> <td class="xl67">5</td> <td class="xl67">4</td> <td class="xl67">3</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">7</td> <td class="xl67">6</td> <td class="xl67">6</td> <td class="xl67">4</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">8</td> <td class="xl67">7</td> <td class="xl67">7</td> <td class="xl67">6</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">9</td> <td class="xl67">8</td> <td class="xl67">8</td> <td class="xl67">7</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl68" style="height: 12.75pt;" height="17">10</td> <td class="xl67">9</td> <td class="xl67">9</td> <td class="xl67">8</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">11</td> <td class="xl67">11</td> <td class="xl67">11</td> <td class="xl67">9</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">12</td> <td class="xl67">12</td> <td class="xl67">12</td> <td class="xl67">11</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">13</td> <td class="xl67">13</td> <td class="xl67">13</td> <td class="xl67">12</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">14</td> <td class="xl67">14</td> <td class="xl67">14</td> <td class="xl67">13</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">15</td> <td class="xl67">15</td> <td class="xl67">15</td> <td class="xl67">14</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">16</td> <td class="xl67">16</td> <td class="xl67">16</td> <td class="xl67">15</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">17</td> <td class="xl67">17</td> <td class="xl67">17</td> <td class="xl67">16</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">18</td> <td class="xl67">18</td> <td class="xl67">18</td> <td class="xl67">17</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">19</td> <td class="xl67">19</td> <td class="xl67">19</td> <td class="xl67">19</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">20</td> <td class="xl67">20</td> <td class="xl67">20</td> <td class="xl67">20</td> </tr> </tbody></table>
Thank you all for any help. Serge.
I need a CF formula to highlight the number in the previous column, and if the new number to highlight is greater than the previous one it should be in red and if not it should be in green.
my starting column is in A1:A20.
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20.
B1:B2.
10,1,2,3,4,5,6,7,8,9,11,12,13,14,15,16,17,18,19,20.
So the number 10 in B1 is the number to find in A1:A20 and should be in red because is higher than 1 in A1.
Then if I have 5 in C1 int should highlight the number 5 in green in column B1:B20. and if 18 in D1 then the number 18 in C1:C20 should be in red, Etc...
<table width="104" border="0" cellpadding="0" cellspacing="0"><col style="width: 20pt;" width="26" span="4"> <tbody><tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt; width: 20pt;" width="26" height="17">1</td> <td class="xl66" style="width: 20pt;" width="26">10</td> <td class="xl66" style="width: 20pt;" width="26">5</td> <td class="xl65" style="width: 20pt;" width="26">18</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">2</td> <td class="xl67">1</td> <td class="xl67">10</td> <td class="xl67">5</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">3</td> <td class="xl67">2</td> <td class="xl67">1</td> <td class="xl67">10</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">4</td> <td class="xl67">3</td> <td class="xl67">2</td> <td class="xl67">1</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">5</td> <td class="xl67">4</td> <td class="xl67">3</td> <td class="xl67">2</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">6</td> <td class="xl67">5</td> <td class="xl67">4</td> <td class="xl67">3</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">7</td> <td class="xl67">6</td> <td class="xl67">6</td> <td class="xl67">4</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">8</td> <td class="xl67">7</td> <td class="xl67">7</td> <td class="xl67">6</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">9</td> <td class="xl67">8</td> <td class="xl67">8</td> <td class="xl67">7</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl68" style="height: 12.75pt;" height="17">10</td> <td class="xl67">9</td> <td class="xl67">9</td> <td class="xl67">8</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">11</td> <td class="xl67">11</td> <td class="xl67">11</td> <td class="xl67">9</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">12</td> <td class="xl67">12</td> <td class="xl67">12</td> <td class="xl67">11</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">13</td> <td class="xl67">13</td> <td class="xl67">13</td> <td class="xl67">12</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">14</td> <td class="xl67">14</td> <td class="xl67">14</td> <td class="xl67">13</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">15</td> <td class="xl67">15</td> <td class="xl67">15</td> <td class="xl67">14</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">16</td> <td class="xl67">16</td> <td class="xl67">16</td> <td class="xl67">15</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">17</td> <td class="xl67">17</td> <td class="xl67">17</td> <td class="xl67">16</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">18</td> <td class="xl67">18</td> <td class="xl67">18</td> <td class="xl67">17</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">19</td> <td class="xl67">19</td> <td class="xl67">19</td> <td class="xl67">19</td> </tr> <tr style="height: 12.75pt;" height="17"> <td class="xl66" style="height: 12.75pt;" height="17">20</td> <td class="xl67">20</td> <td class="xl67">20</td> <td class="xl67">20</td> </tr> </tbody></table>
Thank you all for any help. Serge.