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.
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
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
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
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...![[tongue] tongue](https://www.tipmaster.com/images/tongue.gif)
Because, if I'm gonna BE impotent, I want to LOOK impotent!