Bonjour
Voici une fonction qui donne la semaine
Function NOSEM(d As Date, Optional an, Optional tiret) 'As Long
If IsMissing(tiret) Then tiret = ""
Application.Volatile
d = Int(d)
NOAN = Year(d + (8 - Weekday(d, vbSunday)) Mod 7 - 3)
NOSEM = DateSerial(Year(d + (8 - Weekday(d, vbSunday)) Mod 7 - 3), 1, 1)
NOSEM = ((d - NOSEM - 3 + (Weekday(NOSEM, vbSunday) + 1) Mod 7)) \ 7 + 1
NOSEM = Format(NOSEM, "00")
If IsMissing(an) = False Then
NOSEM = Mid(CStr(NOAN), 3) & tiret & NOSEM
End If
End Function
dans ta cellule tu mets =nosem(aujourdhui())
en option tu peux ajouter l'année
=nosem(aujourdhui();an;"_") qui donnera 09_01 semaine 1 de l'année 2009