Hi again,
Is it possible to get the date from knowing the week number, day and year. I have a report that will give me data that shows me the following (except the last 2 columns that I am trying to work out):
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]2017[/TD]
[TD]2018[/TD]
[TD]TY[/TD]
[TD]LY[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]Monday[/TD]
[TD]3242[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]Tuesday[/TD]
[TD]9873[/TD]
[TD]2342[/TD]
[TD]1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]Wednesday[/TD]
[TD]7639[/TD]
[TD]6720[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]Thursday[/TD]
[TD]1348[/TD]
[TD]2348[/TD]
[TD]3[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]Friday[/TD]
[TD]3148[/TD]
[TD]1349[/TD]
[TD]4[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]Saturday[/TD]
[TD]1264[/TD]
[TD]1320[/TD]
[TD]5[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]Sunday[/TD]
[TD]4563[/TD]
[TD]6346[/TD]
[TD]6[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]Monday[/TD]
[TD]3245[/TD]
[TD]2354[/TD]
[TD]7[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]Tuesday[/TD]
[TD]2345[/TD]
[TD]7345[/TD]
[TD]8[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]Wednesday[/TD]
[TD]1247[/TD]
[TD]2356[/TD]
[TD]9[/TD]
[TD]10[/TD]
[/TR]
</tbody>[/TABLE]
What I need to populate is columns TY and LY which would essentially show me the day date (so May is week 18, this year we didnt have a Monday so its 0, last year it was the 1st). I am trying to compare same selling days (so mon vs mon, tue vs tue) regardless of what date that was.
Can this be done?
Thanks in advance.
Is it possible to get the date from knowing the week number, day and year. I have a report that will give me data that shows me the following (except the last 2 columns that I am trying to work out):
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]2017[/TD]
[TD]2018[/TD]
[TD]TY[/TD]
[TD]LY[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]Monday[/TD]
[TD]3242[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]Tuesday[/TD]
[TD]9873[/TD]
[TD]2342[/TD]
[TD]1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]Wednesday[/TD]
[TD]7639[/TD]
[TD]6720[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]Thursday[/TD]
[TD]1348[/TD]
[TD]2348[/TD]
[TD]3[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]Friday[/TD]
[TD]3148[/TD]
[TD]1349[/TD]
[TD]4[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]18[/TD]
[TD]Saturday[/TD]
[TD]1264[/TD]
[TD]1320[/TD]
[TD]5[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]Sunday[/TD]
[TD]4563[/TD]
[TD]6346[/TD]
[TD]6[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]Monday[/TD]
[TD]3245[/TD]
[TD]2354[/TD]
[TD]7[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]Tuesday[/TD]
[TD]2345[/TD]
[TD]7345[/TD]
[TD]8[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]19[/TD]
[TD]Wednesday[/TD]
[TD]1247[/TD]
[TD]2356[/TD]
[TD]9[/TD]
[TD]10[/TD]
[/TR]
</tbody>[/TABLE]
What I need to populate is columns TY and LY which would essentially show me the day date (so May is week 18, this year we didnt have a Monday so its 0, last year it was the 1st). I am trying to compare same selling days (so mon vs mon, tue vs tue) regardless of what date that was.
Can this be done?
Thanks in advance.