Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I need to format the week of the year as 200617 (YYYYWW). Any Ideas?
I tried using the custom format under Format but it dispays as 2006ww. Is there a way to format as 200617 (Year 2006 & Week 17)? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You can use a formula to get that result, but not a format.
The formula below concatenates the current year from a date, and the current week from the date: =Year(a1)&Weeknum(a1) So if A1 had the date of 05/01/2006 and you put the formula in B1 the result would be 200618 -- Kevin Backmann "Terri" wrote: I need to format the week of the year as 200617 (YYYYWW). Any Ideas? I tried using the custom format under Format but it dispays as 2006ww. Is there a way to format as 200617 (Year 2006 & Week 17)? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You might want to do the formula as year(a1)&right("0"&weeknum(a1),2)
which will give you a result that is always six digits. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Conditional Formatting using Formulas and WEEKNUM | Excel Discussion (Misc queries) | |||
difficulty with conditional formatting | Excel Discussion (Misc queries) | |||
conditional formatting question | Excel Discussion (Misc queries) | |||
Copy conditional formatting across multiple rows? | Excel Discussion (Misc queries) | |||
Conditional formatting not available in Excel | Excel Discussion (Misc queries) |