ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   convert date (YYYYMMDD) to weeknumber (https://www.excelbanter.com/excel-worksheet-functions/132501-convert-date-yyyymmdd-weeknumber.html)

mark paul

convert date (YYYYMMDD) to weeknumber
 
Hello, from a database query I have production dates in format YYYYMMDD (e.g.
20070227) I would like to convert this to a weeknumber. How can I do this?

your help is very much appreciated

Niek Otten

convert date (YYYYMMDD) to weeknumber
 
=WEEKNUM(DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2)))

Bur if you need ISO week numbers, read this first

http://www.cpearson.com/excel/weeknum.htm

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"mark paul" <mark wrote in message ...
| Hello, from a database query I have production dates in format YYYYMMDD (e.g.
| 20070227) I would like to convert this to a weeknumber. How can I do this?
|
| your help is very much appreciated




All times are GMT +1. The time now is 12:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com