Getting a date from week number and year

jonybandana

New Member
Joined
Dec 16, 2022
Messages
32
Office Version
  1. 365
Platform
  1. Windows
Hi, I have a table as follows:
WeekYear
1223
0423
2323
4123
4423
5123

I would like to turn those numbers into dates in a third column, using the DATE Function, but I can´t, because I don´t have a week number to input.

How can I do this? I would like the date to represent the last day of that week.

Thank you!

PD: I would only like to "Reverse" The ISOWEEKNUM Formula, because all the dates are within the same year anyways.
 
Last edited:

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Give this a try:
MrExcel_20230607.xlsx
ABC
1WeekYearEnd of Week
212233/26/2023
34231/29/2023
423236/11/2023
5412310/15/2023
6442311/5/2023
7512312/24/2023
Sheet12
Cell Formulas
RangeFormula
C2:C7C2=WORKDAY.INTL(("1-"&2000+B2)-1,1,"1110111")+3+7*(A2-1)

ISOWEEKNUM weeks begin on Monday, so last day of week is Sunday, and week 1 is assigned to the first week containing Thursday. Formula finds the 1st Thursday of the year (note 2000 is added to your shorthand year description--23 in these examples), and then 3 days are added to find the end of the 1st ISO week. Then the number of days for week number -1 is added to find the date for the desired end of the week.
 
Upvote 0
=DATE(B1,1,A1*7-(DAY(DATE(B1,1,1)+7-WEEKDAY(DATE(B1,1,1),2)))+1)

A1 = Week number
B1 = Year
 
Upvote 0

Forum statistics

Threads
1,215,176
Messages
6,123,470
Members
449,100
Latest member
sktz

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