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,
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Put your new column with the formula =A1 or whatever and custom format it with "mmm"
 
Upvote 0
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)
 
Upvote 0
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.
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,383
Members
448,956
Latest member
JPav

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top