Hi, I need a formula to get the month name.

pedie

Well-known Member
Joined
Apr 28, 2010
Messages
3,875
Hi,

I need a formula to get the month name from date and time for example - ("Aug 25th, 2010 08:48 AM").

When i try =text(A1,"mmmm") it gives the whole date and time together...Is there a way to solve this and get the name of the month only???

Thanks Pedie.

Any suggestion would be great and highly appriciated...;)
 

Michael M

Well-known Member
Joined
Oct 27, 2005
Messages
18,166
Office Version
2013
Platform
Windows
Hi Pedie
One "m" too many
Code:
=TEXT(A1,"mmm")
 

pedie

Well-known Member
Joined
Apr 28, 2010
Messages
3,875
Code:
=TEXT(A1,"mmm")

I have tried this too but won't give the month name only...The result is the date and time.

Oh i think it is because the format is "Sep 28th, 2010 09:05 PM" this way.
Could be funny for you but I have pulled all my thread here in Mrexcel and trying to get the month in 1 col so that I can filter and check month wise...:biggrin:

Now i will need something to get the month from 'Sep 28th, 2010 09:05 PM' format ( this is in general format and even if i change the format to date it doesnt change.....). May be trim/ something....;)

Thanks again Mike
 

Haseeb Avarakkan

Well-known Member
Joined
Sep 28, 2010
Messages
901
Looks like you have a text entry instead of a date & time format.

Try this,

=LEFT(A1,3)
 

jeffreybrown

Well-known Member
Joined
Jul 28, 2004
Messages
5,143
But if you have Sept 25th this might work...

=TEXT(LEFT(A1,FIND(",",A1)-3),"mmm")
 

pedie

Well-known Member
Joined
Apr 28, 2010
Messages
3,875
Great, did work now. thanks alot!
Todays post shows Tod, and Yesterdays Yes.....

Thanks again:)
 

Forum statistics

Threads
1,081,798
Messages
5,361,366
Members
400,628
Latest member
teresajm

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top