Hi Guys,
I am working on a Monthy time card, with Column B named Day of the week, which is all the weekdays Sunday - Saturday put on seperate rows, similar to the below table:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Day of the week:[/TD]
[TD]Date:[/TD]
[/TR]
[TR]
[TD]Sunday[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Monday[/TD]
[TD]1/1/2018[/TD]
[/TR]
[TR]
[TD]Tuesday[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Wednesday[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Thursday[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Friday[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Saturday[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]This table continues like above for 6 weeks...[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The first day of a month can land on any one of these days depending on the month, so i have a formula in the adjacent "Date" cell to auto-fill the correct weekday with the beginning of the month date.
This is the formula that im using to do this:
=IF(ISNUMBER(SEARCH("Monday",D3)),D2," ") ; Then the cell below this is the same except "Monday" is changed to "Tuesday" etc..
D3=TEXT( D2, "dddd")
D2=First day of the month (example: 1/1/2018, next month would be 2/1/2018, etc)
All of the above works great!
Here is my question, how do i get the rest of the month to autofill below the cell that gets filled in from the above formula? Example: For this month the first day of the month is on a Monday , so 1/1/18 will autofill on the cell as shown in the table. Now i need the rest of the months dates to fill in below that cell until the end of january so thru 1/31/2018. Is there a formula for this? or a code i could run?
Thanks for your help!
I am working on a Monthy time card, with Column B named Day of the week, which is all the weekdays Sunday - Saturday put on seperate rows, similar to the below table:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Day of the week:[/TD]
[TD]Date:[/TD]
[/TR]
[TR]
[TD]Sunday[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Monday[/TD]
[TD]1/1/2018[/TD]
[/TR]
[TR]
[TD]Tuesday[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Wednesday[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Thursday[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Friday[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Saturday[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]This table continues like above for 6 weeks...[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
The first day of a month can land on any one of these days depending on the month, so i have a formula in the adjacent "Date" cell to auto-fill the correct weekday with the beginning of the month date.
This is the formula that im using to do this:
=IF(ISNUMBER(SEARCH("Monday",D3)),D2," ") ; Then the cell below this is the same except "Monday" is changed to "Tuesday" etc..
D3=TEXT( D2, "dddd")
D2=First day of the month (example: 1/1/2018, next month would be 2/1/2018, etc)
All of the above works great!
Here is my question, how do i get the rest of the month to autofill below the cell that gets filled in from the above formula? Example: For this month the first day of the month is on a Monday , so 1/1/18 will autofill on the cell as shown in the table. Now i need the rest of the months dates to fill in below that cell until the end of january so thru 1/31/2018. Is there a formula for this? or a code i could run?
Thanks for your help!