Thomas' Tech Tips

Date range from week number in Excel or LibreOffice

19 March 2024 - Thomas Damgaard

Recently, I needed to calculate and print start and end date of a week based on the week number. I am sharing the solution here not so much because it is particularly interesting or difficult. But mostly such that I can find it again myself if I need it :-)

I had to do this in LibreOffice Calc and the solution is tested there. I am fairly sure it works in Excel as well.

The formular assumes that the A column contains the week numbers and the formular is input in the B column.

=TEXT(DATE(2024;1;1)+(A1-1)*7-WEEKDAY(DATE(2024;1;1))+1;"mm/dd/yy") & " - " & TEXT(DATE(2024;1;1)+(A1-1)*7-WEEKDAY(DATE(2024;1;1))+7;"mm/dd/yy")

This particular formular is assuming the year is 2024. Obviously, this can be moved into a separate cell.

Sample output below.

Week number Date range
1 12-31-23 - 01-06-24
2 01-07-24 - 01-13-24
3 01-14-24 - 01-20-24
4 01-21-24 - 01-27-24
11 03-10-24 - 03-16-24
Filed under: calc, calendar, excel, howto, libreoffice, spreadsheet, tips

Back to article list