How change date format.

ovega

New member
Joined
Feb 11, 2013
Messages
5
Reaction score
0
Points
0
How do I change 01.11.2011 to 201145 (see the year and week).
 
you have two choices:
1. You have to check in which format the Date is defined in your Excel (i.e. {mm/dd/yyyy} or {mm.dd.yyyy} etc. ), you can do that by checking the cell format. so if its defined like this mm/dd/yyyy you need to change your date to 01/11/2011.
After you did that and wrote it in the cell, change the cell TYPE to "General".

2. If you want to keep your date in this format
{mm.dd.yyyy} as you write it, then you have to change how the date is defined in your excel (again go to cell format and choose the desired templete in our case {mm.dd.yyyy}.
After you did that and wrote it in the cell, change the cell TYPE to "General".

Hope you understand and it works

 
Hi ovega

Assuming the data is A1,
Opt 1: =YEAR(A1)&WEEKNUM(A1)
Opt 2: =(YEAR(A1)&WEEKNUM(A1))+0

Opt = text value
Opt = Number

Kevin
 
You can use

=YEAR(A2)*100+WEEKNUM(A2)
 
Hi Kevin

Thanks for your help, it works well for me.
What means +0 in your formula ?

Ovega
 
Hi Ovega

It is to coerce the text value to a number.

Kevin
 
Back
Top