Excel Workbook | |||
---|---|---|---|
A | |||
1 | 1 | ||
2 | 2 | ||
3 | 3 | ||
4 | 4 | ||
5 | 5 | ||
6 | 6 | ||
7 | 7 | ||
8 | 8 | ||
9 | 9 | ||
10 | 10 | ||
Sheet2 |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
A1 | 1. / Formula is =A1 = 1 | Abc | ||
A1 | 2. / Formula is =AND(A1>=2,A1<=3) | Abc | ||
A1 | 3. / Formula is =AND(A1>=4,A1<=5) | Abc | ||
A1 | 4. / Formula is =A1=6 | Abc | ||
A2 | 1. / Formula is =A1 = 1 | Abc | ||
A2 | 2. / Formula is =AND(A1>=2,A1<=3) | Abc | ||
A2 | 3. / Formula is =AND(A1>=4,A1<=5) | Abc | ||
A2 | 4. / Formula is =A1=6 | Abc | ||
A3 | 1. / Formula is =A1 = 1 | Abc | ||
A3 | 2. / Formula is =AND(A1>=2,A1<=3) | Abc | ||
A3 | 3. / Formula is =AND(A1>=4,A1<=5) | Abc | ||
A3 | 4. / Formula is =A1=6 | Abc | ||
A4 | 1. / Formula is =A1 = 1 | Abc | ||
A4 | 2. / Formula is =AND(A1>=2,A1<=3) | Abc | ||
A4 | 3. / Formula is =AND(A1>=4,A1<=5) | Abc | ||
A4 | 4. / Formula is =A1=6 | Abc | ||
A5 | 1. / Formula is =A1 = 1 | Abc | ||
A5 | 2. / Formula is =AND(A1>=2,A1<=3) | Abc | ||
A5 | 3. / Formula is =AND(A1>=4,A1<=5) | Abc | ||
A5 | 4. / Formula is =A1=6 | Abc | ||
A6 | 1. / Formula is =A1 = 1 | Abc | ||
A6 | 2. / Formula is =AND(A1>=2,A1<=3) | Abc | ||
A6 | 3. / Formula is =AND(A1>=4,A1<=5) | Abc | ||
A6 | 4. / Formula is =A1=6 | Abc | ||
A7 | 1. / Formula is =A1 = 1 | Abc | ||
A7 | 2. / Formula is =AND(A1>=2,A1<=3) | Abc | ||
A7 | 3. / Formula is =AND(A1>=4,A1<=5) | Abc | ||
A7 | 4. / Formula is =A1=6 | Abc | ||
A8 | 1. / Formula is =A1 = 1 | Abc | ||
A8 | 2. / Formula is =AND(A1>=2,A1<=3) | Abc | ||
A8 | 3. / Formula is =AND(A1>=4,A1<=5) | Abc | ||
A8 | 4. / Formula is =A1=6 | Abc | ||
A9 | 1. / Formula is =A1 = 1 | Abc | ||
A9 | 2. / Formula is =AND(A1>=2,A1<=3) | Abc | ||
A9 | 3. / Formula is =AND(A1>=4,A1<=5) | Abc | ||
A9 | 4. / Formula is =A1=6 | Abc | ||
A10 | 1. / Formula is =A1 = 1 | Abc | ||
A10 | 2. / Formula is =AND(A1>=2,A1<=3) | Abc | ||
A10 | 3. / Formula is =AND(A1>=4,A1<=5) | Abc | ||
A10 | 4. / Formula is =A1=6 | Abc |
Hi Jhippen,
Please use conditional formatting--new rules--Format cell that contains
create all the rules indicating the colours to shade
NB: the secret is to create all the rules regarding the range you want
Cheers
[TABLE="width: 689"]
<tbody>[TR]
[TD="class: xl65, width: 689"]Highlight all the cells that you wish to have formatted. Go to conditional formatting and choose the option to use a formula to determine which cells are formatted.I chose cells A1 to A10 and entered the formula you see.Excel copies the formula internally so I only have to enterthe formula once, but you do have to make a new rule for each color.
Sheet2
A
<colgroup><col style="width: 30px; font-weight: bold;"><col style="width: 64px;"></colgroup><tbody>
[TD="bgcolor: #CACACA, align: center"]1[/TD]
[TD="bgcolor: #FF0000, align: right"]1[/TD]
[TD="bgcolor: #CACACA, align: center"]2[/TD]
[TD="bgcolor: #FFC000, align: right"]2[/TD]
[TD="bgcolor: #CACACA, align: center"]3[/TD]
[TD="bgcolor: #FFC000, align: right"]3[/TD]
[TD="bgcolor: #CACACA, align: center"]4[/TD]
[TD="bgcolor: #FFFF00, align: right"]4[/TD]
[TD="bgcolor: #CACACA, align: center"]5[/TD]
[TD="bgcolor: #FFFF00, align: right"]5[/TD]
[TD="bgcolor: #CACACA, align: center"]6[/TD]
[TD="bgcolor: #00B050, align: right"]6[/TD]
[TD="bgcolor: #CACACA, align: center"]7[/TD]
[TD="align: right"]7[/TD]
[TD="bgcolor: #CACACA, align: center"]8[/TD]
[TD="align: right"]8[/TD]
[TD="bgcolor: #CACACA, align: center"]9[/TD]
[TD="align: right"]9[/TD]
[TD="bgcolor: #CACACA, align: center"]10[/TD]
[TD="align: right"]10[/TD]
</tbody>
Conditional formatting
Cell Nr.: / Condition Format A1 1. / Formula is =A1 = 1
<tbody>
[TD="bgcolor: #FF0000"]Abc
<tbody>[/TD]
A1 2. / Formula is =AND(A1>=2,A1<=3) A1 3. / Formula is =AND(A1>=4,A1<=5) A1 4. / Formula is =A1=6 A2 1. / Formula is =A1 = 1 A2 2. / Formula is =AND(A1>=2,A1<=3) A2 3. / Formula is =AND(A1>=4,A1<=5) A2 4. / Formula is =A1=6 A3 1. / Formula is =A1 = 1 A3 2. / Formula is =AND(A1>=2,A1<=3) A3 3. / Formula is =AND(A1>=4,A1<=5) A3 4. / Formula is =A1=6 A4 1. / Formula is =A1 = 1 A4 2. / Formula is =AND(A1>=2,A1<=3) A4 3. / Formula is =AND(A1>=4,A1<=5) A4 4. / Formula is =A1=6 A5 1. / Formula is =A1 = 1 A5 2. / Formula is =AND(A1>=2,A1<=3) A5 3. / Formula is =AND(A1>=4,A1<=5) A5 4. / Formula is =A1=6 A6 1. / Formula is =A1 = 1 A6 2. / Formula is =AND(A1>=2,A1<=3) A6 3. / Formula is =AND(A1>=4,A1<=5) A6 4. / Formula is =A1=6 A7 1. / Formula is =A1 = 1 A7 2. / Formula is =AND(A1>=2,A1<=3) A7 3. / Formula is =AND(A1>=4,A1<=5) A7 4. / Formula is =A1=6 A8 1. / Formula is =A1 = 1 A8 2. / Formula is =AND(A1>=2,A1<=3) A8 3. / Formula is =AND(A1>=4,A1<=5) A8 4. / Formula is =A1=6 A9 1. / Formula is =A1 = 1 A9 2. / Formula is =AND(A1>=2,A1<=3) A9 3. / Formula is =AND(A1>=4,A1<=5) A9 4. / Formula is =A1=6 A10 1. / Formula is =A1 = 1 A10 2. / Formula is =AND(A1>=2,A1<=3) A10 3. / Formula is =AND(A1>=4,A1<=5) A10 4. / Formula is =A1=6
[TD="bgcolor: #FFC000"]Abc[/TD]
[TD="bgcolor: #FFFF00"]Abc[/TD]
[TD="bgcolor: #00B050"]Abc[/TD]
[TD="bgcolor: #FF0000"]Abc[/TD]
[TD="bgcolor: #FFC000"]Abc[/TD]
[TD="bgcolor: #FFFF00"]Abc[/TD]
[TD="bgcolor: #00B050"]Abc[/TD]
[TD="bgcolor: #FF0000"]Abc[/TD]
[TD="bgcolor: #FFC000"]Abc[/TD]
[TD="bgcolor: #FFFF00"]Abc[/TD]
[TD="bgcolor: #00B050"]Abc[/TD]
[TD="bgcolor: #FF0000"]Abc[/TD]
[TD="bgcolor: #FFC000"]Abc[/TD]
[TD="bgcolor: #FFFF00"]Abc[/TD]
[TD="bgcolor: #00B050"]Abc[/TD]
[TD="bgcolor: #FF0000"]Abc[/TD]
[TD="bgcolor: #FFC000"]Abc[/TD]
[TD="bgcolor: #FFFF00"]Abc[/TD]
[TD="bgcolor: #00B050"]Abc[/TD]
[TD="bgcolor: #FF0000"]Abc[/TD]
[TD="bgcolor: #FFC000"]Abc[/TD]
[TD="bgcolor: #FFFF00"]Abc[/TD]
[TD="bgcolor: #00B050"]Abc[/TD]
[TD="bgcolor: #FF0000"]Abc[/TD]
[TD="bgcolor: #FFC000"]Abc[/TD]
[TD="bgcolor: #FFFF00"]Abc[/TD]
[TD="bgcolor: #00B050"]Abc[/TD]
[TD="bgcolor: #FF0000"]Abc[/TD]
[TD="bgcolor: #FFC000"]Abc[/TD]
[TD="bgcolor: #FFFF00"]Abc[/TD]
[TD="bgcolor: #00B050"]Abc[/TD]
[TD="bgcolor: #FF0000"]Abc[/TD]
[TD="bgcolor: #FFC000"]Abc[/TD]
[TD="bgcolor: #FFFF00"]Abc[/TD]
[TD="bgcolor: #00B050"]Abc[/TD]
[TD="bgcolor: #FF0000"]Abc[/TD]
[TD="bgcolor: #FFC000"]Abc[/TD]
[TD="bgcolor: #FFFF00"]Abc[/TD]
[TD="bgcolor: #00B050"]Abc[/TD]
</tbody>
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4
[/TD]
[/TR]
</tbody>[/TABLE]