简体   繁体   English

在Excel中查找提供日期的星期几

[英]Find given day of supplied date's week in Excel

I have some dates in a column, and would like to, using the dates in that column ie I would like to produce the first column, based on what is in the second 我在一列中有一些日期,并且想使用该列中的日期,即我想根据第二列中的内容生成第一列

Week Starting   Date
01/11/2009  01/11/2009
01/11/2009  02/11/2009
01/11/2009  03/11/2009
01/11/2009  04/11/2009
01/11/2009  05/11/2009
01/11/2009  06/11/2009
01/11/2009  07/11/2009
08/11/2009  08/11/2009
08/11/2009  09/11/2009
08/11/2009  10/11/2009
08/11/2009  11/11/2009
08/11/2009  12/11/2009
08/11/2009  13/11/2009
08/11/2009  14/11/2009
15/11/2009  15/11/2009
15/11/2009  16/11/2009
15/11/2009  17/11/2009
15/11/2009  18/11/2009
15/11/2009  19/11/2009
15/11/2009  20/11/2009
15/11/2009  21/11/2009
22/11/2009  22/11/2009
22/11/2009  23/11/2009
22/11/2009  24/11/2009

Is there a formula to do this? 有公式可以做到这一点吗?

Weekday returns an index number for the day of the week, so you can use the following to get the start of the week: Weekday返回星期几的索引号,因此您可以使用以下命令获取星期几:

=B1-(WEEKDAY(B1)-1) = B1-(WEEKDAY(B1)-1)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM