×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Excel - Convert a full date into just a month

Excel - Convert a full date into just a month

(OP)
I need to pull a series of dates into days, months and years: ie. 25/01/03 into 25, 01, 2003 in 3 columns. I can get 25/01/03 to display as "January" by choosing a custom format (mmmm), but the underlying value is unchanged. If I "paste value" I get 37646. Is there a robust way of turning that 37646 into an actual value of 1 that really changes it, not just the way that it is displayed?

Thanks

p.s. I need to do it this way because I am merging the single-date data with some data that displays dates in 3 columns.

RE: Excel - Convert a full date into just a month

try yourcell = Month(date)

Never knock on Death's door: ring the bell and run away! Death really hates that!

RE: Excel - Convert a full date into just a month

Also see DAY and YEAR for your other columns.

Cheers, Glenn.

Did you hear about the literalist show-jumper?  He broke his nose jumping against the clock.

RE: Excel - Convert a full date into just a month

This is not going to change the date value but I find it useful:
date in A1: CellB1: =A1, and format the column as "mm" it will give you your number.

Yuri

RE: Excel - Convert a full date into just a month

You can also uset the TEXT function...

=TEXT(A1,"m")
=TEXT(A1,"mm")
=TEXT(A1,"mmm")
=TEXT(A1,"mmmm")

for various results.

I almost ALWAYS prefer to KEEP the date.  If you can live with the first of the month, then...

=DATE(Year(A1),MONTH(A1),1)

and then FORMAT to show whatever you want.  But a REAL DATE has soooooooo many advanatages over any kind of STRING.

Skip,

I'll be dressed to the nines this week, as I go to have my prostatectomy...
Because, if I'm gonna BE impotent, I want to LOOK impotent!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!