convert day abbreviation (Mon,tue,wed.....) To date using Week Number

Luke1690

Board Regular
Joined
Jul 26, 2022
Messages
125
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
hi,

I have two lots of data week number in column (A) and the Day in column D shown as Mon, Tues, wed, Thu and Fri.
is there an easy way to convert the Day to a date using the Week number and the abbreviation of the Day?

Thanks In advance
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Seems to work for the current year.

Excel
ABC
7WeekNumDOWDate
830Wed7/24/2024
Sheet1
Cell Formulas
RangeFormula
C8C8=DATE(2024,1,1)+((A8-1)*7)+XMATCH(B8,{"Sun","Mon","Tue","Wed","Thu","Fri","Sat"},0)-2
 
Upvote 0
Solution
How about:

Cell Formulas
RangeFormula
B2:B10B2=WEEKNUM(A2)
C2:C10C2=TEXT(A2, "ddd")
D2:D10D2=LET(sy, SEQUENCE(8,, DATE(2024,1,1)), wn, WEEKNUM(sy), startOfWeeksCount, SUM(sy*(wn=2)*(WEEKDAY(sy)=1))-7, days, {"Sun";"Mon";"Tue";"Wed";"Thu";"Fri";"Sat"}, daysToAdd, MATCH(C2, days, 0)-1, startOfWeeksCount + (B2-1)*7 + daysToAdd )
A3:A10A3=A2+8


Im assuming that it is for the year 2024. You could change the value of 2024 in the formula to anything you like. YEAR(TODAY()) or something.
 
Upvote 0
Seems to work for the current year.

Excel
ABC
7WeekNumDOWDate
830Wed7/24/2024
Sheet1
Cell Formulas
RangeFormula
C8C8=DATE(2024,1,1)+((A8-1)*7)+XMATCH(B8,{"Sun","Mon","Tue","Wed","Thu","Fri","Sat"},0)-2
This is exactly what i required thank you for your help and speedy response :)
 
Upvote 0

Forum statistics

Threads
1,225,739
Messages
6,186,746
Members
453,370
Latest member
juliewar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top