简体   繁体   中英

Excel convert from yyyy-MM-dd'T'HH:mm:ss to MM

I am trying to convert a column from yyyy-MM-dd'T'HH:mm:ss to Months

an actual example is as follows

在此处输入图片说明

The reason is, I would like to gather how many calls have been done every month possibly in a graph

use Mid to pull the month number:

=--MID(E2,6,2)

to get the month name we need to parse the string to an actual date:

=TEXT(LEFT(E2,10),"MMMM")

Here you go:

=TEXT(A1,"M")

Will return a number from 1 to 12. If you want the full month written out use "MMMM".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM