{"id":5673,"date":"2025-07-15T13:34:44","date_gmt":"2025-07-15T13:34:44","guid":{"rendered":"https:\/\/functiontranslator.com\/delka-a-lenb\/"},"modified":"2021-02-26T09:58:51","modified_gmt":"2021-02-26T09:58:51","slug":"len-lenbs","status":"publish","type":"post","link":"https:\/\/functiontranslator.com\/cs\/len-lenbs\/","title":{"rendered":"D\u00c9LKA a LENB"},"content":{"rendered":"<h2>P\u0159ehled a syntaxe funkc\u00ed pro po\u010d\u00edt\u00e1n\u00ed znak\u016f<\/h2>\n<p>Funkce <strong>D\u00c9LKA<\/strong> v Microsoft Excel a Google Sheets slou\u017e\u00ed k zji\u0161t\u011bn\u00ed po\u010dtu znak\u016f v textov\u00fdch \u0159et\u011bzc\u00edch. Na druhou stranu funkce <strong>LENB<\/strong>, kter\u00e1 je k dispozici pouze v Excelu, po\u010d\u00edt\u00e1 po\u010det byt\u016f pot\u0159ebn\u00fdch k reprezentaci znak\u016f. Toto je obzvl\u00e1\u0161t\u011b d\u016fle\u017eit\u00e9 ve v\u00edcebytov\u00fdch k\u00f3dovac\u00edch syst\u00e9mech, jako je UTF-8.<\/p>\n<p>Syntaxe funkce <code>D\u00c9LKA<\/code> je:<\/p>\n<pre><code>=D\u00c9LKA(text)<\/code><\/pre>\n<p>Syntaxe funkce <code>LENB<\/code>, kter\u00e1 se zam\u011b\u0159uje na byty m\u00edsto znak\u016f, je velmi podobn\u00e1:<\/p>\n<pre><code>=LENB(text)<\/code><\/pre>\n<p>Argument <strong>text<\/strong> v obou p\u0159\u00edpadech ozna\u010duje textov\u00fd \u0159et\u011bzec, jeho\u017e d\u00e9lku chceme zjistit.<\/p>\n<h2>Praktick\u00e9 p\u0159\u00edklady pou\u017eit\u00ed<\/h2>\n<p>Zde jsou uk\u00e1zky, jak mohou b\u00fdt tyto funkce vyu\u017eity v praxi.<\/p>\n<h2>Detekce pr\u00e1zdn\u00fdch \u0159et\u011bzc\u016f<\/h2>\n<p>Funkce <code>D\u00c9LKA<\/code> m\u016f\u017ee b\u00fdt efektivn\u011b vyu\u017eita k identifikaci pr\u00e1zdn\u00fdch textov\u00fdch \u0159et\u011bzc\u016f v datov\u00e9m souboru. Pr\u00e1zdn\u00fd \u0159et\u011bzec m\u00e1 d\u00e9lku 0, a proto lze pomoc\u00ed t\u00e9to funkce snadno rozpoznat a zpracovat pr\u00e1zdn\u00e1 pole.<\/p>\n<pre><code>=IF(D\u00c9LKA(A1)=0, \"Pr\u00e1zdn\u00fd \u0159et\u011bzec\", \"Obsahuje text\")<\/code><\/pre>\n<p>Tento vzorec m\u016f\u017eete aplikovat ve sloupci Excelu nebo Google Sheets, aby zjistil, zda jsou ur\u010dit\u00e1 pole pr\u00e1zdn\u00e1. V na\u0161em p\u0159\u00edkladu se zjist\u00ed, zda bu\u0148ka A1 obsahuje text. Pokud ne, vr\u00e1t\u00ed &#8222;Pr\u00e1zdn\u00fd \u0159et\u011bzec&#8220;, v opa\u010dn\u00e9m p\u0159\u00edpad\u011b &#8222;Obsahuje text&#8220;.<\/p>\n<h2>Anal\u00fdza d\u00e9lky textov\u00fdch pol\u00ed<\/h2>\n<p>Funkce <code>D\u00c9LKA<\/code> a <code>LENB<\/code> mohou b\u00fdt pou\u017eity k zaji\u0161t\u011bn\u00ed, \u017ee d\u00e9lky textov\u00fdch dat ve formul\u00e1\u0159\u00edch nebo datab\u00e1z\u00edch spl\u0148uj\u00ed specifick\u00e9 po\u017eadavky.<\/p>\n<table>\n<tr>\n<th>Bu\u0148ka<\/th>\n<th>Text<\/th>\n<th>D\u00e9lka<\/th>\n<th>Byte<\/th>\n<\/tr>\n<tr>\n<td>A1<\/td>\n<td>Hello<\/td>\n<td><code>=D\u00c9LKA(A1)<\/code><\/td>\n<td><code>=LENB(A1)<\/code><\/td>\n<\/tr>\n<tr>\n<td>A2<\/td>\n<td>\u041f\u0440\u0438\u0432\u0435\u0442<\/td>\n<td><code>=D\u00c9LKA(A2)<\/code><\/td>\n<td><code>=LENB(A2)<\/code><\/td>\n<\/tr>\n<\/table>\n<p>Text &#8222;Hello&#8220; v bu\u0148ce <code>A1<\/code> m\u00e1 d\u00e9lku 5 v obou funkc\u00edch. Naopak rusk\u00e9 slovo &#8222;\u041f\u0440\u0438\u0432\u0435\u0442&#8220; v bu\u0148ce <code>A2<\/code> m\u00e1 d\u00e9lku 6 znak\u016f, ale kv\u016fli v\u00edcebytov\u00e9mu k\u00f3dov\u00e1n\u00ed UTF-8 m\u016f\u017ee funkce <code>LENB<\/code> uk\u00e1zat vy\u0161\u0161\u00ed hodnotu, nap\u0159\u00edklad 12 byt\u016f.<\/p>\n<p>Funkce <code>LENB<\/code> je zvl\u00e1\u0161\u0165 u\u017eite\u010dn\u00e1, kdy\u017e je t\u0159eba zajistit dodr\u017een\u00ed technick\u00fdch limit\u016f ulo\u017een\u00fdch dat podle bytov\u00e9 d\u00e9lky znak\u016f.<\/p>\n<p>Pravideln\u00e9 vyu\u017e\u00edv\u00e1n\u00ed t\u011bchto funkc\u00ed m\u016f\u017ee zp\u0159ehlednit pr\u00e1ci s textov\u00fdmi daty v tabulkov\u00fdch aplikac\u00edch a usnadnit procesy jako jsou audit nebo implementace kontroln\u00edch mechanism\u016f v formul\u00e1\u0159\u00edch \u010di datab\u00e1z\u00edch.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Vr\u00e1t\u00ed po\u010det znak\u016f textov\u00e9ho \u0159et\u011bzce<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[286],"tags":[],"class_list":["post-5673","post","type-post","status-publish","format-standard","hentry","category-textove"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Funkce LEN, LENBs (D\u00c9LKA a LENB) v Excelu: jak funguje, primjeri kori\u0161tenja formule<\/title>\n<meta name=\"description\" content=\"Opis funkcije LEN, LENBs (D\u00c9LKA a LENB) u Excelu i Google tablicama. Sintaksa, parametri funkcije te prakti\u010dni primjeri.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/functiontranslator.com\/cs\/len-lenbs\/\" \/>\n<meta property=\"og:locale\" content=\"cs_CZ\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Funkce LEN, LENBs (D\u00c9LKA a LENB) v Excelu: jak funguje, primjeri kori\u0161tenja formule\" \/>\n<meta property=\"og:description\" content=\"Opis funkcije LEN, LENBs (D\u00c9LKA a LENB) u Excelu i Google tablicama. Sintaksa, parametri funkcije te prakti\u010dni primjeri.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/functiontranslator.com\/cs\/len-lenbs\/\" \/>\n<meta property=\"og:site_name\" content=\"Function Translator\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-15T13:34:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-26T09:58:51+00:00\" \/>\n<meta name=\"author\" content=\"glavadmin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Funkce LEN, LENBs (D\u00c9LKA a LENB) v Excelu: jak funguje, primjeri kori\u0161tenja formule\" \/>\n<meta name=\"twitter:label1\" content=\"Napsal(a)\" \/>\n\t<meta name=\"twitter:data1\" content=\"glavadmin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Odhadovan\u00e1 doba \u010dten\u00ed\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minuty\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/functiontranslator.com\/cs\/len-lenbs\/\",\"url\":\"https:\/\/functiontranslator.com\/cs\/len-lenbs\/\",\"name\":\"Funkce LEN, LENBs (D\u00c9LKA a LENB) v Excelu: jak funguje, primjeri kori\u0161tenja formule\",\"isPartOf\":{\"@id\":\"https:\/\/functiontranslator.com\/no\/#website\"},\"datePublished\":\"2025-07-15T13:34:44+00:00\",\"dateModified\":\"2021-02-26T09:58:51+00:00\",\"author\":{\"@id\":\"https:\/\/functiontranslator.com\/no\/#\/schema\/person\/87663eece497ca58643166ecb09f1389\"},\"description\":\"Opis funkcije LEN, LENBs (D\u00c9LKA a LENB) u Excelu i Google tablicama. Sintaksa, parametri funkcije te prakti\u010dni primjeri.\",\"breadcrumb\":{\"@id\":\"https:\/\/functiontranslator.com\/cs\/len-lenbs\/#breadcrumb\"},\"inLanguage\":\"cs\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/functiontranslator.com\/cs\/len-lenbs\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/functiontranslator.com\/cs\/len-lenbs\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Funkce aplikace Excel\",\"item\":\"https:\/\/functiontranslator.com\/cs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Textov\u00e9\",\"item\":\"https:\/\/functiontranslator.com\/cs\/textove\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"D\u00c9LKA a LENB\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/functiontranslator.com\/no\/#website\",\"url\":\"https:\/\/functiontranslator.com\/no\/\",\"name\":\"Function Translator\",\"description\":\"Excel function translator\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/functiontranslator.com\/no\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"cs\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/functiontranslator.com\/no\/#\/schema\/person\/87663eece497ca58643166ecb09f1389\",\"name\":\"glavadmin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"cs\",\"@id\":\"https:\/\/functiontranslator.com\/no\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/03ccd9347c5339db75deede5a8c5b2bf1d40e0bce26a5251fcaac6331d381db8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/03ccd9347c5339db75deede5a8c5b2bf1d40e0bce26a5251fcaac6331d381db8?s=96&d=mm&r=g\",\"caption\":\"glavadmin\"},\"sameAs\":[\"https:\/\/functiontranslator.com\"],\"url\":\"https:\/\/functiontranslator.com\/cs\/author\/glavadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Funkce LEN, LENBs (D\u00c9LKA a LENB) v Excelu: jak funguje, primjeri kori\u0161tenja formule","description":"Opis funkcije LEN, LENBs (D\u00c9LKA a LENB) u Excelu i Google tablicama. Sintaksa, parametri funkcije te prakti\u010dni primjeri.","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:\/\/functiontranslator.com\/cs\/len-lenbs\/","og_locale":"cs_CZ","og_type":"article","og_title":"Funkce LEN, LENBs (D\u00c9LKA a LENB) v Excelu: jak funguje, primjeri kori\u0161tenja formule","og_description":"Opis funkcije LEN, LENBs (D\u00c9LKA a LENB) u Excelu i Google tablicama. Sintaksa, parametri funkcije te prakti\u010dni primjeri.","og_url":"https:\/\/functiontranslator.com\/cs\/len-lenbs\/","og_site_name":"Function Translator","article_published_time":"2025-07-15T13:34:44+00:00","article_modified_time":"2021-02-26T09:58:51+00:00","author":"glavadmin","twitter_card":"summary_large_image","twitter_title":"Funkce LEN, LENBs (D\u00c9LKA a LENB) v Excelu: jak funguje, primjeri kori\u0161tenja formule","twitter_misc":{"Napsal(a)":"glavadmin","Odhadovan\u00e1 doba \u010dten\u00ed":"2 minuty"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/functiontranslator.com\/cs\/len-lenbs\/","url":"https:\/\/functiontranslator.com\/cs\/len-lenbs\/","name":"Funkce LEN, LENBs (D\u00c9LKA a LENB) v Excelu: jak funguje, primjeri kori\u0161tenja formule","isPartOf":{"@id":"https:\/\/functiontranslator.com\/no\/#website"},"datePublished":"2025-07-15T13:34:44+00:00","dateModified":"2021-02-26T09:58:51+00:00","author":{"@id":"https:\/\/functiontranslator.com\/no\/#\/schema\/person\/87663eece497ca58643166ecb09f1389"},"description":"Opis funkcije LEN, LENBs (D\u00c9LKA a LENB) u Excelu i Google tablicama. Sintaksa, parametri funkcije te prakti\u010dni primjeri.","breadcrumb":{"@id":"https:\/\/functiontranslator.com\/cs\/len-lenbs\/#breadcrumb"},"inLanguage":"cs","potentialAction":[{"@type":"ReadAction","target":["https:\/\/functiontranslator.com\/cs\/len-lenbs\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/functiontranslator.com\/cs\/len-lenbs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Funkce aplikace Excel","item":"https:\/\/functiontranslator.com\/cs\/"},{"@type":"ListItem","position":2,"name":"Textov\u00e9","item":"https:\/\/functiontranslator.com\/cs\/textove\/"},{"@type":"ListItem","position":3,"name":"D\u00c9LKA a LENB"}]},{"@type":"WebSite","@id":"https:\/\/functiontranslator.com\/no\/#website","url":"https:\/\/functiontranslator.com\/no\/","name":"Function Translator","description":"Excel function translator","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/functiontranslator.com\/no\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"cs"},{"@type":"Person","@id":"https:\/\/functiontranslator.com\/no\/#\/schema\/person\/87663eece497ca58643166ecb09f1389","name":"glavadmin","image":{"@type":"ImageObject","inLanguage":"cs","@id":"https:\/\/functiontranslator.com\/no\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/03ccd9347c5339db75deede5a8c5b2bf1d40e0bce26a5251fcaac6331d381db8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/03ccd9347c5339db75deede5a8c5b2bf1d40e0bce26a5251fcaac6331d381db8?s=96&d=mm&r=g","caption":"glavadmin"},"sameAs":["https:\/\/functiontranslator.com"],"url":"https:\/\/functiontranslator.com\/cs\/author\/glavadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/functiontranslator.com\/cs\/wp-json\/wp\/v2\/posts\/5673","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/functiontranslator.com\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/functiontranslator.com\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/functiontranslator.com\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/functiontranslator.com\/cs\/wp-json\/wp\/v2\/comments?post=5673"}],"version-history":[{"count":2,"href":"https:\/\/functiontranslator.com\/cs\/wp-json\/wp\/v2\/posts\/5673\/revisions"}],"predecessor-version":[{"id":30811,"href":"https:\/\/functiontranslator.com\/cs\/wp-json\/wp\/v2\/posts\/5673\/revisions\/30811"}],"wp:attachment":[{"href":"https:\/\/functiontranslator.com\/cs\/wp-json\/wp\/v2\/media?parent=5673"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/functiontranslator.com\/cs\/wp-json\/wp\/v2\/categories?post=5673"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/functiontranslator.com\/cs\/wp-json\/wp\/v2\/tags?post=5673"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}