Hello!
Simply, I was wondering if anyone had a method for conditional formatting (Font Color) for a row based on whether or not the last four digits of an asset appear in a separate table.
(Table A) I've got a spreadsheet that has a large list of equipment as well as columns with current equipment hours (plausible hours shown) before the next time the equipment is to be serviced. The equipment asset designation is in the first column.
(Table B) I've also got a small table to show which equipment is planned to be serviced in which week.
How would I go about conditionally formatting the hours in each equipment row (columns B through J) in Table A based on the week column in Table B in which the last 4 digits of the asset appears?
Table A:
[TABLE="class: grid, width: 1000"]
<tbody>[TR]
[TD]Asset Number[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 129"]
<tbody>[TR="class: grid"]
[TD]CZ1-1123-RH2200[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]242[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 129"]
<tbody>[TR="class: grid"]
[TD]CZ1-1123-RH2201[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD]100[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 129"]
<tbody>[TR="class: grid"]
[TD]CZ1-1123-RH2202[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD]150[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 129"]
<tbody>[TR="class: grid"]
[TD]CZ1-1123-RH2203[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]53[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 129"]
<tbody>[TR="class: grid"]
[TD]CZ1-1123-RH2204[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]298[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 129"]
<tbody>[TR="class: grid"]
[TD]CZ1-1124-RC2260[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]400[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 129"]
<tbody>[TR="class: grid"]
[TD]CZ1-1123-RH2281[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]380[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 129"]
<tbody>[TR="class: grid"]
[TD]CZ1-1124-RW5515[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]453[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 129"]
<tbody>[TR="class: grid"]
[TD]CZ1-1124-RW5516[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]520[/TD]
[/TR]
</tbody>[/TABLE]
Table B:
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]Week 1[/TD]
[TD]Week 2[/TD]
[TD]Week 3[/TD]
[/TR]
[TR]
[TD]2203[/TD]
[TD]2201[/TD]
[TD]2260[/TD]
[/TR]
[TR]
[TD]2202[/TD]
[TD][/TD]
[TD]5515[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]5516[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance!!!
Simply, I was wondering if anyone had a method for conditional formatting (Font Color) for a row based on whether or not the last four digits of an asset appear in a separate table.
(Table A) I've got a spreadsheet that has a large list of equipment as well as columns with current equipment hours (plausible hours shown) before the next time the equipment is to be serviced. The equipment asset designation is in the first column.
(Table B) I've also got a small table to show which equipment is planned to be serviced in which week.
How would I go about conditionally formatting the hours in each equipment row (columns B through J) in Table A based on the week column in Table B in which the last 4 digits of the asset appears?
Table A:
[TABLE="class: grid, width: 1000"]
<tbody>[TR]
[TD]Asset Number[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 129"]
<tbody>[TR="class: grid"]
[TD]CZ1-1123-RH2200[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]242[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 129"]
<tbody>[TR="class: grid"]
[TD]CZ1-1123-RH2201[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD]100[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 129"]
<tbody>[TR="class: grid"]
[TD]CZ1-1123-RH2202[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD]150[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 129"]
<tbody>[TR="class: grid"]
[TD]CZ1-1123-RH2203[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]53[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 129"]
<tbody>[TR="class: grid"]
[TD]CZ1-1123-RH2204[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]298[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 129"]
<tbody>[TR="class: grid"]
[TD]CZ1-1124-RC2260[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]400[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 129"]
<tbody>[TR="class: grid"]
[TD]CZ1-1123-RH2281[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]380[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 129"]
<tbody>[TR="class: grid"]
[TD]CZ1-1124-RW5515[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]453[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][TABLE="width: 129"]
<tbody>[TR="class: grid"]
[TD]CZ1-1124-RW5516[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]520[/TD]
[/TR]
</tbody>[/TABLE]
Table B:
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]Week 1[/TD]
[TD]Week 2[/TD]
[TD]Week 3[/TD]
[/TR]
[TR]
[TD]2203[/TD]
[TD]2201[/TD]
[TD]2260[/TD]
[/TR]
[TR]
[TD]2202[/TD]
[TD][/TD]
[TD]5515[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]5516[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance!!!
Last edited: