Change Date to Just Month

  • Thread starter Michael J. Malinsky
  • Start date
M

Michael J. Malinsky

Something like:

Mnth = Month(Now)
MsgBox Mnth

Will return 3 for March

--
Michael J. Malinsky
Pittsburgh, PA

"I was gratified to be able to answer promptly,
and I did. I said I didn't know." -- Mark Twain
 
M

Michael

I want to change a date to just the month. How can I do this and get rid of
the underlying date value?
 
R

Ron Rosenfeld

I want to change a date to just the month. How can I do this and get rid of
the underlying date value?

What exactly to you mean by the above?

If you want to have the date as the text value for the month, you can use this
formula:

=TEXT(A1,"mmmm")

where the date is in A1.

If you want to change it in place to a text value, you will need to use a VBA
routine.


--ron
 
J

JE McGimpsey

What format do you want the "month" in?


If a number from 1 to 12: =MONTH(A1)

If a word, like "March": =TEXT(A1,"mmmm")

To replace the value, copy one of the above and choose Edit/Paste
Special/Values.
 

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

Top