[英]How do I check if a cell with a number equals to the day on a date on other cell?
Basically, I'm doing a calendar with school assignments with dates.基本上,我正在做一个带有日期的学校作业的日历。
I made a mini calendar on the left side (one day for each cell) and on the right side I have a list of assignments and the corresponding delivery dates.我在左侧制作了一个迷你日历(每个单元格一天),在右侧我有一份作业清单和相应的交货日期。
I wanted to, each time I add a date to that list, the corresponding day on the mini calendar gets color-filled with Conditional Formatting.我想,每次我向该列表添加日期时,迷你日历上的相应日期都会用条件格式填充颜色。 How do I do that?我怎么做?
Please clear formatting from and select A6:G10, Format - Conditional formatting..., Custom formula is and:请清除格式并选择 A6:G10,格式 - 条件格式...,自定义公式是和:
=match(date(2018,3,A6),$I:$I,0)
Select formatting of choice and Done .选择选择的格式和Done 。
I have assumed:我已经假设:
a) when days of the week cause numbers to 'head' for outside the range they will be wrapped back to the start of the range. a) 当一周中的几天导致数字“朝向”超出范围时,它们将被回绕到范围的开头。
b) you will replace 2018
and 3
to the relevant year/month, preferably via cell references. b) 您将2018
和3
替换为相关的年/月,最好通过单元格引用。
c) Your dates are true date indices. c) 您的日期是真实的日期索引。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.