使用条件格式化行 [英] formating rows using condition
问题描述
我正在准备Excel工作表,但我对某些要求有疑问.
在sheet1中,我有一些列和行.在第1行中,我具有2011年1月1日和月份,在第3行中,我具有colm1,colm2,colm3等.日期,名称,值是列值.
这是我需要的:在第一列中,我会给出一些日期,例如2011年1月1日,在第二列中,我会给出一些日期,2011年8月30日.我需要一个条件,如果列日期超过6个月,则应锁定整行,并且背景色应为红色,并且应禁用该行以编辑formatimg等.
I am preparing excel sheet and I''m having a problem with some requirements.
In sheet1 I have some columns and rows. In Row1 I have month and year 1/1/2011, and in 3row colm1, colm2, colm3 and etc. Date, Name, value are the column values.
Here what I need: in column1 I''ll give some date, say 1-Jan-2011, and in column2 some date 30-Aug-2011. I need a condition that if the column date is more than 6 months old the entire row should be locked and the background colour should be red, and that row should be disabled for editing formatimg etc.
Any advice?
推荐答案
是的,请使用以下方法: ^ ].
—SA
Yes, use this: Time Difference Calculation in Asp.net[^].
—SA
这篇关于使用条件格式化行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!