Hi
I'm trying to list the dates that represent the begining of each week of the year but, when a week has two months, I would like to split it.
I do not want to use vba to do that, just a single formula.
The bold+underline cell in the table below is the starting date.
In the second line and below, the following formula is typed:
=IF(WEEKDAY(R[-1]C,2)=1,R[-1]C+7,R[-1]C-WEEKDAY(R[-1]C)+9)
Although I've tried few options, I wasn't able to add in the above formula the part that is needed to return the cells in bold only.
Does anyone know how to do that?
Thank you very much in advance for your help.
Shiro.
[TABLE="class: grid, width: 500"]
<tbody>[TABLE="width: 500, align: left"]
<colgroup><col span="3"><col><col></colgroup><tbody>[TR]
[TD="align: right"]Tuesday
[/TD]
[TD="align: right"]01 Aug 13[/TD]
[TD][/TD]
[TD="align: right"]Tuesday[/TD]
[TD="align: right"]01 Aug 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday
[/TD]
[TD]07 Aug 13
[/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]07 Aug 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]14 Aug 13
[/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]14 Aug 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]21 Aug 13[/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]21 Aug 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]28 Aug 13[/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]28 Aug 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]04 Sep 13[/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]04 Sep 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]11 Sep 13[/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]11 Sep 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]18 Sep 13[/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]18 Sep 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]25 Sep 13[/TD]
[TD]➡[/TD]
[TD="align: right"]Monday[/TD]
[TD]25 Sep 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]02 Oct 13[/TD]
[TD][/TD]
[TD]Sunday
[/TD]
[TD="align: right"]1 Oct 13
[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]09 Oct 13[/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]02 Oct 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]16 Oct 13[/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]09 Oct 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]23 Oct 13[/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]16 Oct 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]30 Oct 13[/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]23 Oct 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]06 Nov 13[/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]30 Oct 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]13 Nov 13[/TD]
[TD][/TD]
[TD]Wednesday
[/TD]
[TD="align: right"]1 Nov 2013
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]06 Nov 13[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]13 Nov 13[/TD]
[/TR]
</tbody>[/TABLE]
</tbody>[/TABLE]
I'm trying to list the dates that represent the begining of each week of the year but, when a week has two months, I would like to split it.
I do not want to use vba to do that, just a single formula.
The bold+underline cell in the table below is the starting date.
In the second line and below, the following formula is typed:
=IF(WEEKDAY(R[-1]C,2)=1,R[-1]C+7,R[-1]C-WEEKDAY(R[-1]C)+9)
Although I've tried few options, I wasn't able to add in the above formula the part that is needed to return the cells in bold only.
Does anyone know how to do that?
Thank you very much in advance for your help.
Shiro.
[TABLE="class: grid, width: 500"]
<tbody>[TABLE="width: 500, align: left"]
<colgroup><col span="3"><col><col></colgroup><tbody>[TR]
[TD="align: right"]Tuesday
[/TD]
[TD="align: right"]01 Aug 13[/TD]
[TD][/TD]
[TD="align: right"]Tuesday[/TD]
[TD="align: right"]01 Aug 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday
[/TD]
[TD]07 Aug 13
[/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]07 Aug 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]14 Aug 13
[/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]14 Aug 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]21 Aug 13[/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]21 Aug 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]28 Aug 13[/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]28 Aug 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]04 Sep 13[/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]04 Sep 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]11 Sep 13[/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]11 Sep 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]18 Sep 13[/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]18 Sep 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]25 Sep 13[/TD]
[TD]➡[/TD]
[TD="align: right"]Monday[/TD]
[TD]25 Sep 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]02 Oct 13[/TD]
[TD][/TD]
[TD]Sunday
[/TD]
[TD="align: right"]1 Oct 13
[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]09 Oct 13[/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]02 Oct 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]16 Oct 13[/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]09 Oct 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]23 Oct 13[/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]16 Oct 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]30 Oct 13[/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]23 Oct 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]06 Nov 13[/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]30 Oct 13[/TD]
[/TR]
[TR]
[TD="align: right"]Monday[/TD]
[TD]13 Nov 13[/TD]
[TD][/TD]
[TD]Wednesday
[/TD]
[TD="align: right"]1 Nov 2013
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]06 Nov 13[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]Monday[/TD]
[TD]13 Nov 13[/TD]
[/TR]
</tbody>[/TABLE]
</tbody>[/TABLE]