parsing a date field

  • Thread starter Thread starter carriex3
  • Start date Start date
C

carriex3

I have data that was imported from another system (don't know what
system). The date field shows as 01-01-2005. I need to split the
field so that the month is one cell and the year in another (don't need
day). I tried the usual right(a1,2) type command, but I get 53
returned. I tried to first convert the date to text, but then I get
the full five digit date.

I'm sure that there is an easy solution to this, but I don't know what
it is and couldn't locate it in the board archives.

Thank you!!

Carrie
 
Assuming 01-01-2005 in A1

In B1 enter =MONTH(A1)

In C1 enter =YEAR(A1)

Copy and paste special>values then delete column A


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top