[英]Color a few cells according to 1 cell's value
I have a hourly plan where time of employees' meetings automatically appears from an other sheet.我有一个每小时计划,员工会议的时间会自动从另一张纸上显示出来。 I need it to be marked with specific color according to meeting's lenght.我需要根据会议的长度用特定颜色标记它。 Ex.前任。
"
A1=0,5 then A1 is blue if A1=1 then A1 and A2 is blue if A1=1,5 then A1, A2, A3 is blue and etc. "
"
A1=0,5 那么 A1 是蓝色的 如果 A1=1 那么 A1 和 A2 是蓝色的 如果 A1=1,5 那么 A1, A2, A3 是蓝色的等等。 "
I only find info how to mark specific cell using conditional formating or VBA, but don't know how to apply formula to the whole table我只找到有关如何使用条件格式或 VBA 标记特定单元格的信息,但不知道如何将公式应用于整个表格
Select the range where you want this applied, eg A1:A10
, or A1:J10
if you want this to work in the other columns, too. Select 您希望应用它的范围,例如A1:A10
或A1:J10
如果您希望它也适用于其他列。
On the Home
tab select Conditional Formatting > New Rule
.在Home
选项卡上 select Conditional Formatting > New Rule
。 In the New Formatting
window select Use formula to determine which cells to format .在New Formatting
中 window select使用公式确定要设置格式的单元格。 In the text box below enter this formula:在下面的文本框中输入此公式:
=A$1/0.5>=ROW()
Press the Format
button below and in the Format Cells
window select the Fill
tab.按下面的Format
按钮,然后在Format Cells
格格式 window select 中的Fill
选项卡。 Select a color and press Ok
3 times. Select 一种颜色,然后按Ok
3 次。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.