{"id":8045,"date":"2021-09-28T11:47:26","date_gmt":"2021-09-28T11:47:26","guid":{"rendered":"https:\/\/officetuts.net\/excel\/?p=8045"},"modified":"2024-02-19T14:52:29","modified_gmt":"2024-02-19T14:52:29","slug":"change-month-from-text-to-number","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/","title":{"rendered":"How to Change Month from Text to Number in Excel"},"content":{"rendered":"\n
Change-Month-from-Text-to-Number<\/a>Download File<\/a><\/div>\n\n\n\n

Excel has many helpful tips and tricks that people are usually not aware of. One of them is to convert the name of the months into numbers.<\/p>\n\n\n\n

Although you might think that this issue could be formatting-related, it is actually a matter of using the correct formula. We will show that in the example below.<\/p>\n\n\n\n

Change Months from Text to Numbers<\/h2>\n\n\n\n

For our example, we will use the table with months that are not ordered chronologically:<\/p>\n\n\n\n

\"Text,<\/figure>\n\n\n\n

Now, we will put the following formula into cell B2<\/strong>:<\/p>\n\n\n\n

=MONTH(DATEVALUE(A2&\"1\"))<\/code><\/pre>\n\n\n\n

To explain how this works, we have to explain formulas separately:<\/p>\n\n\n\n

DATEVALUE<\/strong> is a function that returns a serial number from a date that is in text format.<\/p>\n\n\n\n

We have to use the \u201e&\u201c<\/strong> symbol and any number to make Excel convert the text into a number.<\/p>\n\n\n\n

MONTH<\/strong> function returns the value of the month from 1 to 12.<\/p>\n\n\n\n

So, with our formula, we make Excel recognize the number of our month and then return this number to our cell.<\/p>\n\n\n\n

When we drag the formula to the end of our range, our table will look like this:<\/p>\n\n\n\n

\"A<\/figure>\n\n\n\n

You will notice that this formula returned the proper values for every month in our table.<\/p>\n\n\n\n

If we had the whole date, to find out the serial number of the date, we can use the MONTH<\/strong> formula as a standalone one, like in the example below:<\/p>\n\n\n\n

=MONTH(D2)<\/code><\/pre>\n\n\n\n
\"Timeline\n\nDescription<\/figure>\n","protected":false},"excerpt":{"rendered":"

Excel has many helpful tips and tricks that people are usually not aware of. One of them is to convert the name of…<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[170],"yoast_head":"\nHow to Change Month from Text to Number in Excel<\/title>\n<meta name=\"description\" content=\"Learn how to convert month names to numbers in #Excel using the correct formula. Download the example file now. #MicrosoftOffice #Spreadsheets\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Change Month from Text to Number in Excel\" \/>\n<meta property=\"og:description\" content=\"Learn how to convert month names to numbers in #Excel using the correct formula. Download the example file now. #MicrosoftOffice #Spreadsheets\" \/>\n<meta property=\"og:url\" content=\"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-28T11:47:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-19T14:52:29+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/09\/text-table-description-automatically-generated.png\" \/>\n<meta name=\"author\" content=\"Harun Spahic\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Harun Spahic\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/\"},\"author\":{\"name\":\"Harun Spahic\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/694491c70f776081acdac4ae41f222a2\"},\"headline\":\"How to Change Month from Text to Number in Excel\",\"datePublished\":\"2021-09-28T11:47:26+00:00\",\"dateModified\":\"2024-02-19T14:52:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/\"},\"wordCount\":240,\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/09\/text-table-description-automatically-generated.png\",\"keywords\":[\"file\"],\"articleSection\":[\"formulas\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/\",\"url\":\"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/\",\"name\":\"How to Change Month from Text to Number in Excel\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/09\/text-table-description-automatically-generated.png\",\"datePublished\":\"2021-09-28T11:47:26+00:00\",\"dateModified\":\"2024-02-19T14:52:29+00:00\",\"description\":\"Learn how to convert month names to numbers in #Excel using the correct formula. Download the example file now. #MicrosoftOffice #Spreadsheets\",\"breadcrumb\":{\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/#primaryimage\",\"url\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/09\/text-table-description-automatically-generated.png\",\"contentUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/09\/text-table-description-automatically-generated.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/officetuts.net\/excel\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Change Month from Text to Number in Excel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/officetuts.net\/excel\/#website\",\"url\":\"https:\/\/officetuts.net\/excel\/\",\"name\":\"\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/officetuts.net\/excel\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\",\"name\":\"Tomasz Decker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"caption\":\"Tomasz Decker\"},\"logo\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\"},\"description\":\"Spreadsheet and Python enthusiast.\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/694491c70f776081acdac4ae41f222a2\",\"name\":\"Harun Spahic\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b7b887a2249679182be5550a4421a7a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b7b887a2249679182be5550a4421a7a9?s=96&d=mm&r=g\",\"caption\":\"Harun Spahic\"},\"sameAs\":[\"http:\/\/human.bsru.ac.th\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Change Month from Text to Number in Excel","description":"Learn how to convert month names to numbers in #Excel using the correct formula. Download the example file now. #MicrosoftOffice #Spreadsheets","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/","og_locale":"en_US","og_type":"article","og_title":"How to Change Month from Text to Number in Excel","og_description":"Learn how to convert month names to numbers in #Excel using the correct formula. Download the example file now. #MicrosoftOffice #Spreadsheets","og_url":"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/","article_published_time":"2021-09-28T11:47:26+00:00","article_modified_time":"2024-02-19T14:52:29+00:00","og_image":[{"url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/09\/text-table-description-automatically-generated.png"}],"author":"Harun Spahic","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Harun Spahic","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/#article","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/"},"author":{"name":"Harun Spahic","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/694491c70f776081acdac4ae41f222a2"},"headline":"How to Change Month from Text to Number in Excel","datePublished":"2021-09-28T11:47:26+00:00","dateModified":"2024-02-19T14:52:29+00:00","mainEntityOfPage":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/"},"wordCount":240,"publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"image":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/09\/text-table-description-automatically-generated.png","keywords":["file"],"articleSection":["formulas"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/","url":"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/","name":"How to Change Month from Text to Number in Excel","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/#website"},"primaryImageOfPage":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/#primaryimage"},"image":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/09\/text-table-description-automatically-generated.png","datePublished":"2021-09-28T11:47:26+00:00","dateModified":"2024-02-19T14:52:29+00:00","description":"Learn how to convert month names to numbers in #Excel using the correct formula. Download the example file now. #MicrosoftOffice #Spreadsheets","breadcrumb":{"@id":"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/#primaryimage","url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/09\/text-table-description-automatically-generated.png","contentUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2021\/09\/text-table-description-automatically-generated.png"},{"@type":"BreadcrumbList","@id":"https:\/\/officetuts.net\/excel\/formulas\/change-month-from-text-to-number\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/officetuts.net\/excel\/"},{"@type":"ListItem","position":2,"name":"How to Change Month from Text to Number in Excel"}]},{"@type":"WebSite","@id":"https:\/\/officetuts.net\/excel\/#website","url":"https:\/\/officetuts.net\/excel\/","name":"","description":"","publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/officetuts.net\/excel\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42","name":"Tomasz Decker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","caption":"Tomasz Decker"},"logo":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/"},"description":"Spreadsheet and Python enthusiast."},{"@type":"Person","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/694491c70f776081acdac4ae41f222a2","name":"Harun Spahic","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b7b887a2249679182be5550a4421a7a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b7b887a2249679182be5550a4421a7a9?s=96&d=mm&r=g","caption":"Harun Spahic"},"sameAs":["http:\/\/human.bsru.ac.th\/"]}]}},"_links":{"self":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/8045"}],"collection":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/comments?post=8045"}],"version-history":[{"count":4,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/8045\/revisions"}],"predecessor-version":[{"id":13688,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/8045\/revisions\/13688"}],"wp:attachment":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/media?parent=8045"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/categories?post=8045"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/tags?post=8045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}