date conversion

petemoss

New Member
Joined
Nov 29, 2002
Messages
17
I have a list of 4000 dates that are formatted like this (i think in text)

1998-7

I want to convert to month 1st of month and year to look like this

July 1, 1998

please help. Thanks.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Select the column/list of dates, goto Data>Text to columns... and on the 3rd(?) step choose YMD from the dropdown.
 
Upvote 0
It worked for me.

What exactly do you have in the column and where did the data come from?

PS You did choose the right option YMD. I sometimes get that wrong - picking the format I want the date in rather than the one it's currently in.
 
Upvote 0
ok-you were right i picked wrong format but now i have jul-98 (originally 1998-7) but i need it to add the 1st of the month to each year and month to look like this

July 1, 1998

Any suggestions?
 
Upvote 0
I have a list of 4000 dates that are formatted like this (i think in text)

1998-7

I want to convert to month 1st of month and year to look like this

July 1, 1998

please help. Thanks.
One way is to use a formula in a helper column.

A2 = 1998-7

Entered in B2:

=--(A2&"-1")

Format as Date

Then, you can convert the formulas to constants...
  • Select the formulas
  • Right click>Copy
  • Right Click>Paste Special>Values>OK
Then, you can delete the original data if desired.
 
Upvote 0
Pete

You've actually got the date you want - take a look in the formula bar.

All you need to do is format it as you want.
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,908
Members
452,949
Latest member
beartooth91

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