convert date (YYYYMMDD) to weeknumber

G

Guest

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
 
N

Niek Otten

=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

| 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top