{"id":5997,"date":"2017-02-28T22:16:49","date_gmt":"2017-02-28T21:16:49","guid":{"rendered":"https:\/\/www.myexcelonline.com\/?p=5997"},"modified":"2023-11-30T20:57:00","modified_gmt":"2023-11-30T19:57:00","slug":"getting-the-length-of-text-with-excels-len-formula","status":"publish","type":"post","link":"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/getting-the-length-of-text-with-excels-len-formula\/","title":{"rendered":"Getting the length of text with Excel&#8217;s LEN Formula"},"content":{"rendered":"<p><em><strong>What does it do?<\/strong><\/em><\/p>\n<p>Gives you the number of characters of the text<\/p>\n<p><em><strong>Formula breakdown:<\/strong><\/em><\/p>\n<p>=LEN(<span style=\"color: #ff0000;\"><span style=\"color: #339966;\"><span style=\"color: #0000ff;\">text<\/span><\/span><\/span>)<\/p>\n<p><em><strong>What it means:<\/strong><\/em><\/p>\n<p>=LEN(<span style=\"color: #0000ff;\">text that you want to get the number of characters<\/span>)<\/p>\n<hr \/>\n<p>There are times when you need to get the number of characters within\u00a0a cell in Excel. \u00a0Thankfully this is very easy to do with Excel&#8217;s\u00a0<strong>LEN (Length) formula!<\/strong><\/p>\n<p>You can use the LEN function in Excel to <strong>count<\/strong> <strong>all characters<\/strong> in a cell, including letters, numbers, special characters, and all spaces.<\/p>\n<p>The LEN function can be used as a data cleansing technique to find leading or trailing spaces or can be nested with other <a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/count-text-occurrences-excels-substitute-formula\/\" target=\"_blank\" rel=\"noopener noreferrer\">TEXT functions<\/a>.<\/p>\n<p>I explain how you can do this below:<\/p>\n<div class=\"after-post-box\">\n<p><iframe src=\"https:\/\/www.youtube.com\/embed\/Kw5WESfewJA?rel=0 \" width=\"800\" height=\"400\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe><a href=\"https:\/\/www.youtube.com\/c\/MyExcelOnlinecomtutorials?sub_confirmation=1\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img loading=\"lazy\" decoding=\"async\" class=\"alignmiddle wp-image-111468 size-full\" style=\"vertical-align: middle;\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/04\/1.yt_.png\" alt=\"\" title=\"\"><\/a><\/p>\n<p class=\"line-two\"><a class=\"IRPP_minimalist icon-download button small\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/02\/LEN-FORMULA.xlsx\" target=\"_blank\" rel=\"noopener noreferrer\" data-leadbox=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/02\/LEN-FORMULA.xlsx\" data-leadbox-id=\"147284833f72a2:12f08263ab46dc\"><span class=\"ctaText px-3 text-capitalize\">Download excel workbook<i class=\"fa fa-download\"><\/i><\/span><span class=\"postTitle px-3\">LEN-FORMULA.xlsx<\/span><\/a><\/p>\n<p class=\"line-two\">\n<\/div>\n<p><span style=\"color: #ff0000;\"><strong>STEP 1:<\/strong> <\/span>We need to <strong>enter the <em>LEN<\/em><i>\u00a0<\/i>function <\/strong>next to the cell that we want to get the number of characters\u00a0from:<\/p>\n<h2 style=\"text-align: center;\"><span style=\"color: #0000ff;\">=LEN(<\/span><\/h2>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/02\/LEN-FORMULA-01.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Getting the length of text with Excel&#039;s LEN Formula\"  class=\"alignnone size-full wp-image-6001\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/02\/LEN-FORMULA-01.jpg\" alt=\"Getting the length of text with Excel&#039;s LEN Formula\" width=\"485\" height=\"160\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/02\/LEN-FORMULA-01.jpg 485w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/02\/LEN-FORMULA-01-300x99.jpg 300w\" sizes=\"(max-width: 485px) 100vw, 485px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 2:<\/strong><\/span>\u00a0The LEN arguments:<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_57_1 counter-flat ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li><a href=\"#\" class=\"scroll-to-download\">Free Practice Workbook<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/getting-the-length-of-text-with-excels-len-formula\/#text\" title=\"text\">text<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"text\"><\/span><em><strong><span style=\"color: #0000ff;\">text<\/span><\/strong><\/em><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>Which text do we want to get the number of characters from?<\/strong><\/p>\n<p><em>Reference the cell that contains the text string:<\/em><\/p>\n<h2 style=\"text-align: center;\"><span style=\"color: #000000;\">=LEN<\/span><span style=\"color: #0000ff;\">(C9)<\/span><\/h2>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/02\/LEN-FORMULA-02.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Getting the length of text with Excel&#039;s LEN Formula\"  class=\"alignnone size-full wp-image-6002\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/02\/LEN-FORMULA-02.jpg\" alt=\"Getting the length of text with Excel&#039;s LEN Formula\" width=\"489\" height=\"164\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/02\/LEN-FORMULA-02.jpg 489w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/02\/LEN-FORMULA-02-300x101.jpg 300w\" sizes=\"(max-width: 489px) 100vw, 489px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 3:<\/strong> <\/span>Do the same for the rest of the cells by dragging the <strong>LEN<\/strong><b>\u00a0<\/b>formula all the way down using the left mouse button.<\/p>\n<p>Note that you are able to get the number of characters for each name. My name has 16 characters!<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/02\/LEN-FORMULA-03.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Getting the length of text with Excel&#039;s LEN Formula\"  class=\"alignnone size-full wp-image-6003\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/02\/LEN-FORMULA-03.jpg\" alt=\"Getting the length of text with Excel&#039;s LEN Formula\" width=\"520\" height=\"187\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/02\/LEN-FORMULA-03.jpg 520w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/02\/LEN-FORMULA-03-300x108.jpg 300w\" sizes=\"(max-width: 520px) 100vw, 520px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What does it do? Gives you the number of characters of the text Formula breakdown: =LEN(text) What it means: =LEN(text that you want to get the number of characters) There are times when you need to get the number of characters within\u00a0a cell in Excel. \u00a0Thankfully this is very easy to do with Excel&#8217;s\u00a0LEN (Length) [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":17644,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cos_headline_score":0,"cos_seo_score":0,"cos_headline_text":"","cos_headline_has_been_analyzed":false,"cos_last_analyzed_headline":[],"om_disable_all_campaigns":false},"categories":[3,302,14],"tags":[43,232,234],"acf":[],"_links":{"self":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/5997"}],"collection":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/comments?post=5997"}],"version-history":[{"count":0,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/5997\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media\/17644"}],"wp:attachment":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media?parent=5997"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/categories?post=5997"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/tags?post=5997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}