Need help on Date (Urgent)

smartbuilder2k

New Member
Joined
Jan 18, 2005
Messages
44
hi All,

this is an urgent requirement.I got list of more than 5000 rows.
i have to convert the date in text.
suppose if the cell contains "2005-11-01 18:07:40" then how can i show "NOV" adjacent to this cell.
Similiarly if cell contains "2005-10-28 14:08:05" then how can i show "OCT" adjacent to this cell.
I need this for every month.

Pls reply to it very urgent

Thanx & Regards,
 

Some videos you may like

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

BrianB

Well-known Member
Joined
Feb 17, 2003
Messages
8,127
Put your new column with the formula =A1 or whatever and custom format it with "mmm"
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
47,497
Office Version
  1. 365
Platform
  1. Windows
smartbuilder2k

Spelling it out in more detail. Suppose your data is in A1. In cell B1 put the formula =A1. Now select cell B1 and go Format|Cells. Select the Number tab, choose Custom in the Category field and type mmm in the Type box and click OK.

I expect that this will not produce the result that you expect because you mentioned that the date was in fact text. All you should have to do now is change the formula in B1 to =DATEVALUE(A1)
 

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825

ADVERTISEMENT

...or if your date is in A2 in another cell, e.g. B2 use

=TEXT(A2,"mmm")

and fill down column
 

smartbuilder2k

New Member
Joined
Jan 18, 2005
Messages
44
Sorry Guys none of the solution works.
If i tries peters or Brians solution it gives same value whatever is there in A1.
Pls suggest some more.
 

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825

ADVERTISEMENT

Try this

=TEXT(DATE(1,MID(A2,6,2),1),"mmm")

where your data is in cell A2
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
47,497
Office Version
  1. 365
Platform
  1. Windows
smartbuilder2k

I think there must be something else on your sheet that we don't know about. Below is a sheet showing the results with three of the suggestions offered so far. They all work.

What about starting with a new sheet, formatting A2 as text, typing 2005-11-01 18:07:40 into it and trying the suggested formulas/formatting. If they work on this new sheet, then it will be a matter of trying to track down what is different on your original sheet.
Mr Excel.xls
ABCD
1Date (text)Month
22005-11-01 18:07:40Nov=TEXT(A2,"mmm")
3Nov=TEXT(DATE(1,MID(A2,6,2),1),"mmm")
4Nov=DATEVALUE(A2)
5Cell B4 formatted as custom date: mmm
6
Extract Month
 

Watch MrExcel Video

Forum statistics

Threads
1,118,799
Messages
5,574,377
Members
412,589
Latest member
ArtBOM
Top