绘制一周内发生的日期

时间:2016-07-29 14:25:55

标签: excel excel-formula

这是我的挑战,不知道如何继续 我有一个日期列表,这些日期发生在我要跟踪的几周内。我想最终绘制一周内这些日期的出现。这是一个例子。 让我想跟踪

需要3周
Week of June 20th - June 20 2016 - June 25 2016 (5 day work week)
Week of June 27th - June 27 2016 - July 1 2016
Week of July 4th - July 4 2016 - July 8 2016

我想跟踪每个星期内的9个事件总数。

Event #1 occurs June 21
Events 2 through 4 occurs June 25
Event 5 occurs June 28
Event 6 occurs July 1
Events 7 and 8 occurs July 4
Event 9 occurs July 8

其他代表方式是,我有这些具体日期

6/21/2016
6/25/2016
6/25/2016
6/25/2016
6/28/2016
7/1/2016
7/4/2016
7/4/2016
7/8/2016

在图表的x轴上,我想把第1周放到第6周。 Y轴 - 我想绘制活动计数。 对于第1周,我希望看到4的数量(因为有6次出现1次,6次出现3次),对于第2周,我希望看到2次,因为我有一次出现6/28和1次发生7/1。 感谢

1 个答案:

答案 0 :(得分:2)

我也不太确定结果应该是什么样子,但您可以像这样使用WEEKNUM函数

           A          B
 1    Date         Week
 2    6/21/2016    ="Week " & WEEKNUM(A2)-weeknum($A$2)+1

然后插入图表或插入数据透视表