{"id":1767,"date":"2023-11-06T00:52:32","date_gmt":"2023-11-06T00:52:32","guid":{"rendered":"https:\/\/exceladvisor.org\/nl\/alleen-cijfers-eruit-halen\/"},"modified":"2023-12-06T05:55:22","modified_gmt":"2023-12-06T05:55:22","slug":"alleen-cijfers-eruit-halen","status":"publish","type":"page","link":"https:\/\/exceladvisor.org\/nl\/alleen-cijfers-eruit-halen\/","title":{"rendered":"Alleen cijfers uit tekst extraheren (tekenreeks)"},"content":{"rendered":"<div class=\"excel-voor-de-inhoud\" id=\"excel-260793111\"><script type=\"text\/javascript\">\r\n\tatOptions = {\r\n\t\t'key' : 'c1158f160081d6540a8409e6925dab94',\r\n\t\t'format' : 'iframe',\r\n\t\t'height' : 250,\r\n\t\t'width' : 300,\r\n\t\t'params' : {}\r\n\t};\r\n<\/script>\r\n<script type=\"text\/javascript\" src=\"\/\/www.highperformanceformat.com\/c1158f160081d6540a8409e6925dab94\/invoke.js\"><\/script><\/div> <p>In Excel kunt u formules gebruiken om het getal uit een waarde te extraheren met tekst en getallen gecombineerd. In het volgende voorbeeld hebben we een formule gebruikt om 1984 te verkrijgen uit de waarde &#8220;TPS1984&#8221;. <\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-85933\" src=\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-extraire-uniquement-des-chiffres.png\" sizes=\"auto, \" srcset=\"\" alt=\"alleen cijfers eruit halen\" width=\"706\" height=\"284\"><\/figure><\/div><h2 class=\"wp-block-heading\"> Formule om getallen uit tekst te extraheren<\/h2><pre class=\"wp-block-code\"> <code class=\"language-excel-formula\" lang=\"excel-formula\">=TEXTJOIN(\"\",TRUE,IFERROR((MID(A1,ROW(INDIRECT(\"1:\"&amp;LEN(A1))),1)*1),\"\"))<\/code><\/pre><p> In deze tutorial zullen we deze formule in detail begrijpen. En om het te begrijpen, moeten we het in verschillende delen verdelen:<\/p><ol><li> Ten eerste hebben we de LEN-functie om het aantal tekens in de waarde te verkrijgen. <br><img loading=\"lazy\" decoding=\"async\" title=\"2 formules om getallen uit een string te extraheren\" src=\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/2-formules-pour-extraire-des-nombres-dune-chaine.png\" sizes=\"auto, \" srcset=\"\" alt=\"formula-to-extract-numbers-from-a-string\" width=\"486\" height=\"209\"><\/li><li> Daarna gebruikt INDIRECT een celverwijzing met behulp van de 1 en 7 (geretourneerd door de LEN). <br><img loading=\"lazy\" decoding=\"async\" title=\"3-indirect-gebruik-van-een-celreferentie\" src=\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/3-utilisations-indirectes-dune-reference-de-cellule.png\" sizes=\"auto, \" srcset=\"\" alt=\"indirect-uses-a-cell-reference\" width=\"548\" height=\"80\"><\/li><li> Vervolgens gebruikt de RIJ-functie INDIRECT en retourneert een reeks getallen beginnend met 1 en eindigend met 7. <br><img loading=\"lazy\" decoding=\"async\" title=\"Functie met 4 rijen retourneert array\" src=\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/La-fonction-a-4-lignes-renvoie-le-tableau.png\" sizes=\"auto, \" srcset=\"\" alt=\"row-function-returns-the-array\" width=\"505\" height=\"192\"><\/li><li> Nu zal MID deze array gebruiken en een nieuwe retourneren met de waarden van de cel waarnaar u verwees. <br><img loading=\"lazy\" decoding=\"async\" title=\"5-retouren-betekent-nieuw-met-waarde\" src=\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/5-mid-renvoie-un-nouveau-avec-valeur.png\" sizes=\"auto, \" srcset=\"\" alt=\"mid-returns-new-one-with-value\" width=\"474\" height=\"203\"><\/li><li> Vervolgens hebben we een eenvoudige vermenigvuldigingsformule om de array met 1 te vermenigvuldigen. Met deze eenvoudige vermenigvuldiging krijg je een nieuwe array waarin je <a href=\"https:\/\/exceladvisor.org\/nl\/waarde-fout\/\">#WAARDE! De fout<\/a> voor tekstwaarden en getallen blijft intact. <br><img loading=\"lazy\" decoding=\"async\" title=\"6-vermenigvuldig-de-array\" src=\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/6-multiplier-le-tableau.png\" sizes=\"auto, \" srcset=\"\" alt=\"multiply-the-array\" width=\"479\" height=\"241\"><\/li><li> Vanaf hier converteert de IFERROR-functie de foutwaarden naar lege waarden. <br><img loading=\"lazy\" decoding=\"async\" title=\"7-ferror-om-omzetten-fouten-naar-vacu\u00fcm\" src=\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/7-iferror-pour-convertir-les-erreurs-en-blanc.png\" sizes=\"auto, \" srcset=\"\" alt=\"iferror-to-convert-errors-into-blank\" width=\"500\" height=\"181\"><\/li><li> En aan het einde combineert TEXTJOIN de waarden, en het resultaat bevat alleen cijfers. <br><img loading=\"lazy\" decoding=\"async\" title=\"8-uittreksels-van-nummers-in-oude-versies-van-Excel\" src=\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/8-numeros-dextraction-dans-les-anciennes-versions-dExcel.png\" sizes=\"auto, \" srcset=\"\" alt=\"extract-numbers-in-older-excel-versions\" width=\"489\" height=\"125\"><\/li><\/ol><p> De bovenstaande formule werkt alleen voor Excel 2019-versie en hoger. Dit komt omdat we TEXTJOIN gebruiken, niet beschikbaar in eerdere versies.<\/p><p class=\"tip-box\"> Als u een waarde voor een deel van de formule wilt, selecteert u dat deel en drukt u op de sneltoets F9.<\/p><p class=\"alert-box\"> TEXTJOIN is een vluchtige functie die van waarde verandert wanneer u een cel in het werkblad bijwerkt. Dit kan uw werkmap een beetje traag maken.<\/p><h2 class=\"wp-block-heading\"> Maar wat als ik een eerdere versie gebruik (2007, 2010, 2013, 2016)<\/h2><p> Als u eerdere versies gebruikt, moet u een andere formule gebruiken. Een formule als deze:<\/p><pre class=\"wp-block-code\"> <code class=\"language-excel-formula\" lang=\"excel-formula\">=IF(SUM(LEN(A1)-LEN(SUBSTITUTE(A1, {\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\"}, \"\")))&gt;0, SUMPRODUCT(MID(0&amp;A1, LARGE(INDEX(ISNUMBER(--MID(A1,ROW(INDIRECT(\"$1:$\"&amp;LEN(A1))),1))* ROW(INDIRECT(\"$1:$\"&amp;LEN(A1))),0), ROW(INDIRECT(\"$1:$\"&amp;LEN(A1))))+1,1) * 10^ROW(INDIRECT(\"$1:$\"&amp;LEN(A1)))\/10),\"\")<\/code><\/pre><pre class=\"wp-block-code\"> <code class=\"language-excel-formula\" lang=\"excel-formula\">=SUMPRODUCT(MID(0&amp;A1,LARGE(INDEX(ISNUMBER(--MID(A1,ROW(INDIRECT(\"1:\"&amp;LEN(A1))),1))*ROW(INDIRECT(\"1:\"&amp;LEN(A1))),0),ROW(INDIRECT(\"1:\"&amp;LEN(A1))))+1,1)*10^ROW(INDIRECT(\"1:\"&amp;LEN(A1)))\/10)<\/code><\/pre><p> De twee bovenstaande formules werken goed met verschillende soorten waarden. Ik heb het op de volgende manier getest. <\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-85941\" src=\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/image9.png\" sizes=\"auto, \" srcset=\"\" alt=\"formules-met-verschillende-waarden\" width=\"640\" height=\"108\"><\/figure><\/div><p> In cel A1 hierboven hebben we een complexe waarde die bestaat uit tekst, cijfers en symbolen en we hebben alleen cijfers in het resultaat. <\/p><div class=\"gb-container gb-container-52dfcee1 gb-container-sample-file\"><h2 class=\"gb-headline gb-headline-e289c143 gb-headline-text gb-headline-4f7959c2\"> Haal het Excel-bestand op<\/h2> <a class=\"gb-button gb-button-e88d6bee gb-button-text gb-button-button1\" href=\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/extraire-des-numeros.xlsx\" rel=\"nofollow\">Downloaden<\/a><\/div><div class=\"gb-container gb-container-0df56012 gb-container-mt\"> <a class=\"gb-button gb-button-f9f432f4 gb-button-text gb-button-mt-button\" href=\"https:\/\/exceladvisor.org\/nl\/formules\/\">Lijst met Excel-formules<\/a><h2 class=\"gb-headline gb-headline-233444e8 gb-headline-text gb-headline-mt-heading\"> Gerelateerde formules <\/h2><div class=\"gb-grid-wrapper gb-grid-wrapper-a16fa65c gb-grid-wrapper-mt-grid\"><div class=\"gb-grid-column gb-grid-column-50d07e0d\"><div class=\"gb-container gb-container-50d07e0d\"><ul><li> <a href=\"https:\/\/exceladvisor.org\/nl\/horizontaal-filter\/\">Maak een horizontaal filter in Excel<\/a><\/li><li> <a href=\"https:\/\/exceladvisor.org\/nl\/sterrenwaardering\/\">Maak een sterrenbeoordelingssjabloon in Excel<\/a><\/li><li> <a href=\"https:\/\/exceladvisor.org\/nl\/bestandsnaam-ophalen\/\">Bestandsnaam ophalen in Excel<\/a><\/li><li> <a href=\"https:\/\/exceladvisor.org\/nl\/bladnaam-ophalen\/\">Haal de bladnaam op in Excel<\/a><\/li><li> <a href=\"https:\/\/exceladvisor.org\/nl\/willekeurige-letters-genereren\/\">Genereer snel willekeurige letters in Excel<\/a><\/li><\/ul><\/div><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"ub_ctt_via":"","footnotes":""},"class_list":["post-1767","page","type-page","status-publish","hentry"],"featured_image_src":null,"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Alleen cijfers uit een tekst (tekenreeks) extraheren<\/title>\n<meta name=\"description\" content=\"In deze zelfstudie leert u hoe u een Excel-formule schrijft om alleen getallen uit tekst te extraheren. Laten we dit controleren...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/exceladvisor.org\/nl\/alleen-cijfers-eruit-halen\/\" \/>\n<meta property=\"og:locale\" content=\"nl_NL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Alleen cijfers uit een tekst (tekenreeks) extraheren\" \/>\n<meta property=\"og:description\" content=\"In deze zelfstudie leert u hoe u een Excel-formule schrijft om alleen getallen uit tekst te extraheren. Laten we dit controleren...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/exceladvisor.org\/nl\/alleen-cijfers-eruit-halen\/\" \/>\n<meta property=\"og:site_name\" content=\"Excel Advisor\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-06T05:55:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-extraire-uniquement-des-chiffres.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Geschatte leestijd\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/exceladvisor.org\/nl\/alleen-cijfers-eruit-halen\/\",\"url\":\"https:\/\/exceladvisor.org\/nl\/alleen-cijfers-eruit-halen\/\",\"name\":\"Alleen cijfers uit een tekst (tekenreeks) extraheren\",\"isPartOf\":{\"@id\":\"https:\/\/exceladvisor.org\/nl\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/exceladvisor.org\/nl\/alleen-cijfers-eruit-halen\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/exceladvisor.org\/nl\/alleen-cijfers-eruit-halen\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-extraire-uniquement-des-chiffres.png\",\"datePublished\":\"2023-11-06T00:52:32+00:00\",\"dateModified\":\"2023-12-06T05:55:22+00:00\",\"description\":\"In deze zelfstudie leert u hoe u een Excel-formule schrijft om alleen getallen uit tekst te extraheren. Laten we dit controleren...\",\"breadcrumb\":{\"@id\":\"https:\/\/exceladvisor.org\/nl\/alleen-cijfers-eruit-halen\/#breadcrumb\"},\"inLanguage\":\"nl-NL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/exceladvisor.org\/nl\/alleen-cijfers-eruit-halen\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"nl-NL\",\"@id\":\"https:\/\/exceladvisor.org\/nl\/alleen-cijfers-eruit-halen\/#primaryimage\",\"url\":\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-extraire-uniquement-des-chiffres.png\",\"contentUrl\":\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-extraire-uniquement-des-chiffres.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/exceladvisor.org\/nl\/alleen-cijfers-eruit-halen\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Thuis\",\"item\":\"https:\/\/exceladvisor.org\/nl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Alleen cijfers uit tekst extraheren (tekenreeks)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/exceladvisor.org\/nl\/#website\",\"url\":\"https:\/\/exceladvisor.org\/nl\/\",\"name\":\"Excel Advisor\",\"description\":\"Uw gids voor datadominantie\",\"publisher\":{\"@id\":\"https:\/\/exceladvisor.org\/nl\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/exceladvisor.org\/nl\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"nl-NL\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/exceladvisor.org\/nl\/#organization\",\"name\":\"Excel Advisor\",\"url\":\"https:\/\/exceladvisor.org\/nl\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"nl-NL\",\"@id\":\"https:\/\/exceladvisor.org\/nl\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/exceladvisor.org\/nl\/wp-content\/uploads\/2023\/12\/exceladvisor.org_.png\",\"contentUrl\":\"https:\/\/exceladvisor.org\/nl\/wp-content\/uploads\/2023\/12\/exceladvisor.org_.png\",\"width\":105,\"height\":36,\"caption\":\"Excel Advisor\"},\"image\":{\"@id\":\"https:\/\/exceladvisor.org\/nl\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Alleen cijfers uit een tekst (tekenreeks) extraheren","description":"In deze zelfstudie leert u hoe u een Excel-formule schrijft om alleen getallen uit tekst te extraheren. Laten we dit controleren...","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:\/\/exceladvisor.org\/nl\/alleen-cijfers-eruit-halen\/","og_locale":"nl_NL","og_type":"article","og_title":"Alleen cijfers uit een tekst (tekenreeks) extraheren","og_description":"In deze zelfstudie leert u hoe u een Excel-formule schrijft om alleen getallen uit tekst te extraheren. Laten we dit controleren...","og_url":"https:\/\/exceladvisor.org\/nl\/alleen-cijfers-eruit-halen\/","og_site_name":"Excel Advisor","article_modified_time":"2023-12-06T05:55:22+00:00","og_image":[{"url":"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-extraire-uniquement-des-chiffres.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Geschatte leestijd":"2 minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/exceladvisor.org\/nl\/alleen-cijfers-eruit-halen\/","url":"https:\/\/exceladvisor.org\/nl\/alleen-cijfers-eruit-halen\/","name":"Alleen cijfers uit een tekst (tekenreeks) extraheren","isPartOf":{"@id":"https:\/\/exceladvisor.org\/nl\/#website"},"primaryImageOfPage":{"@id":"https:\/\/exceladvisor.org\/nl\/alleen-cijfers-eruit-halen\/#primaryimage"},"image":{"@id":"https:\/\/exceladvisor.org\/nl\/alleen-cijfers-eruit-halen\/#primaryimage"},"thumbnailUrl":"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-extraire-uniquement-des-chiffres.png","datePublished":"2023-11-06T00:52:32+00:00","dateModified":"2023-12-06T05:55:22+00:00","description":"In deze zelfstudie leert u hoe u een Excel-formule schrijft om alleen getallen uit tekst te extraheren. Laten we dit controleren...","breadcrumb":{"@id":"https:\/\/exceladvisor.org\/nl\/alleen-cijfers-eruit-halen\/#breadcrumb"},"inLanguage":"nl-NL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/exceladvisor.org\/nl\/alleen-cijfers-eruit-halen\/"]}]},{"@type":"ImageObject","inLanguage":"nl-NL","@id":"https:\/\/exceladvisor.org\/nl\/alleen-cijfers-eruit-halen\/#primaryimage","url":"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-extraire-uniquement-des-chiffres.png","contentUrl":"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/1-extraire-uniquement-des-chiffres.png"},{"@type":"BreadcrumbList","@id":"https:\/\/exceladvisor.org\/nl\/alleen-cijfers-eruit-halen\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Thuis","item":"https:\/\/exceladvisor.org\/nl\/"},{"@type":"ListItem","position":2,"name":"Alleen cijfers uit tekst extraheren (tekenreeks)"}]},{"@type":"WebSite","@id":"https:\/\/exceladvisor.org\/nl\/#website","url":"https:\/\/exceladvisor.org\/nl\/","name":"Excel Advisor","description":"Uw gids voor datadominantie","publisher":{"@id":"https:\/\/exceladvisor.org\/nl\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/exceladvisor.org\/nl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"nl-NL"},{"@type":"Organization","@id":"https:\/\/exceladvisor.org\/nl\/#organization","name":"Excel Advisor","url":"https:\/\/exceladvisor.org\/nl\/","logo":{"@type":"ImageObject","inLanguage":"nl-NL","@id":"https:\/\/exceladvisor.org\/nl\/#\/schema\/logo\/image\/","url":"https:\/\/exceladvisor.org\/nl\/wp-content\/uploads\/2023\/12\/exceladvisor.org_.png","contentUrl":"https:\/\/exceladvisor.org\/nl\/wp-content\/uploads\/2023\/12\/exceladvisor.org_.png","width":105,"height":36,"caption":"Excel Advisor"},"image":{"@id":"https:\/\/exceladvisor.org\/nl\/#\/schema\/logo\/image\/"}}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/exceladvisor.org\/nl\/wp-json\/wp\/v2\/pages\/1767","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/exceladvisor.org\/nl\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/exceladvisor.org\/nl\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/exceladvisor.org\/nl\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/exceladvisor.org\/nl\/wp-json\/wp\/v2\/comments?post=1767"}],"version-history":[{"count":2,"href":"https:\/\/exceladvisor.org\/nl\/wp-json\/wp\/v2\/pages\/1767\/revisions"}],"predecessor-version":[{"id":2982,"href":"https:\/\/exceladvisor.org\/nl\/wp-json\/wp\/v2\/pages\/1767\/revisions\/2982"}],"wp:attachment":[{"href":"https:\/\/exceladvisor.org\/nl\/wp-json\/wp\/v2\/media?parent=1767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}