{"id":1774,"date":"2023-11-05T18:30:11","date_gmt":"2023-11-05T18:30:11","guid":{"rendered":"https:\/\/exceladvisor.org\/nl\/als-of-1\/"},"modified":"2023-12-06T05:49:04","modified_gmt":"2023-12-06T05:49:04","slug":"als-of-1","status":"publish","type":"page","link":"https:\/\/exceladvisor.org\/nl\/als-of-1\/","title":{"rendered":"Hoe if- en of-functies in excel te combineren"},"content":{"rendered":"<div class=\"excel-voor-de-inhoud\" id=\"excel-13060024\"><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>De ALS-functie is een van de krachtigste functies in Excel. En het beste is dat je andere functies kunt combineren met IF om de kracht ervan te vergroten.<\/p><p> De combinatie van ALS- en OF-functies is een van de handigste formulecombinaties in Excel. In dit artikel laat ik je zien waarom we ALS- en OF-functies moeten combineren. En waarom het zo nuttig voor u is.<\/p><h2 id=\"1\" class=\"wp-block-heading\"> Snelle introductie<\/h2><p> Ik weet zeker dat je beide functies hebt gebruikt, maar ik zal je een korte introductie geven.<\/p><ul><li> <strong>ALS<\/strong> \u2013 Gebruik deze functie om een toestand te testen. Er wordt een specifieke waarde geretourneerd als deze voorwaarde waar is, of een andere specifieke waarde als deze voorwaarde onwaar is.<\/li><li> <strong>OF<\/strong> \u2013 Meerdere testomstandigheden. Het retourneert waar als een van deze voorwaarden waar is, en onwaar als al deze voorwaarden onwaar zijn.<\/li><\/ul><p> <em>De crux van beide functies is dat de IF-functie slechts \u00e9\u00e9n voorwaarde tegelijk kan testen. En de OR-functie kan meerdere voorwaarden testen, maar retourneert alleen waar\/onwaar. En als we deze twee functies combineren, kunnen we meerdere voorwaarden testen met OR en een specifieke waarde retourneren met IF.<\/em><\/p><h2 id=\"2\" class=\"wp-block-heading\"> Hoe werken de ALS- en OF-functies?<\/h2><p> In de ALS-functiesyntaxis hebben we een logisch testargument dat we gebruiken om een voorwaarde op te geven die we willen testen.<\/p><p> ALS ( <strong>logische_test<\/strong> , waarde_if_true, waarde_if_false)<\/p><p> En vervolgens retourneert het een waarde op basis van het resultaat van die voorwaarde. Als we nu de OR-functie voor dit argument gebruiken en hiervoor verschillende voorwaarden opgeven. <\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9594\" src=\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/comment-combiner-les-fonctions-if-et-or-et-remplacer-largument-logique-par-or-1.png\" sizes=\"auto, \" srcset=\"\" alt=\"hoe je if en of-functies combineert en logische argumenten vervangt door or\" width=\"488\" height=\"139\"><\/figure><\/div><p> Als een van de voorwaarden waar is, retourneert OR waar en retourneert IF de specifieke waarde. En als geen van de voorwaarden waar is OF met als resultaat FALSE, zal IF een andere specifieke waarde retourneren. Op deze manier kunnen we meer dan \u00e9\u00e9n waarde testen met de ALS-functie. Laten we verder gaan met enkele concrete voorbeelden.<\/p><h2 id=\"3\" class=\"wp-block-heading\"> Voorbeelden<\/h2><p> Hier heb ik een tabel met <a href=\"https:\/\/exceladvisor.org\/nl\/voorraadbeheersjabloon-excel-vba-gebruikersformulieren\/\">inventarisgegevens<\/a> van twee magazijnen. Nu wil ik de status in de tabel bijwerken. <\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9595\" src=\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/comment-combiner-les-fonctions-if-et-or-pour-obtenir-le-statut-dans-la-table-des-stocks-1.png\" sizes=\"auto, \" srcset=\"\" alt=\"hoe u if- en of-functies kunt combineren om de status in de voorraadtabel te krijgen\" width=\"502\" height=\"251\"><\/figure><\/div><p> Als er in beide magazijnen geen voorraad is, moet de status &#8220;Niet op voorraad&#8221; zijn. En als er voorraad is in een van de magazijnen, moet de status \u201cOp voorraad\u201d zijn. Hier moet ik dus twee verschillende voorwaarden controleren: \u201cMagazijn-1\u201d en \u201cMagazijn-2\u201d.<br> En de formule zal zijn. <\/p><pre class=\"wp-block-code\"> <code class=\"language-excel-formula\" lang=\"excel-formula\">=IF(OR(B2&gt;0,C2&gt;0),\"In-Stock\",\"Out of Stock\")<\/code><\/pre><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-9596\" src=\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/comment-combiner-les-fonctions-if-et-or-pour-obtenir-le-statut-dans-la-formule-dinsertion-de-la-table-de-stock-1.png\" sizes=\"auto, \" srcset=\"\" alt=\"hoe u if- en of-functies kunt combineren om de status van de invoegformule voor de voorraadtabel te krijgen\" width=\"544\" height=\"297\"><\/figure><\/div><p> Als er in de bovenstaande formule een waarde groter dan nul is in een van de cellen (B2 en C2), retourneert de OR-functie waar en retourneert IF de waarde &#8220;Op voorraad&#8221;. Maar als beide cellen nul hebben, retourneert OR false en retourneert IF de waarde &#8220;Niet op voorraad&#8221;. <\/p><div class=\"gb-container gb-container-bafb25cc gb-container-download-2\"><div class=\"gb-grid-wrapper gb-grid-wrapper-91201309\"><div class=\"gb-grid-column gb-grid-column-15a917ef\"><div class=\"gb-container gb-container-15a917ef\"><h2 class=\"gb-headline gb-headline-f2deb261 gb-headline-text gb-headline-download-2\"> Haal het Excel-bestand op <\/h2><\/div><\/div><div class=\"gb-grid-column gb-grid-column-18357188\"><div class=\"gb-container gb-container-18357188\"><div class=\"gb-container gb-container-76cbe15e\"> <a class=\"gb-button gb-button-cb63d00a gb-button-text gb-button-download-2\" href=\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/11\/comment-combiner-les-fonctions-if-et-or.xlsx\" rel=\"nofollow\">Downloaden<\/a><\/div><\/div><\/div><\/div><\/div><h2 class=\"wp-block-heading\"> Laatste woorden<\/h2><p> Beide functies zijn even nuttig, maar als je ze combineert, kun je ze effectiever gebruiken. Zoals ik je al vertelde, kun je door het combineren van IF- en OR-functies meer dan \u00e9\u00e9n voorwaarde testen. Met deze combinatie van functies kunt u beide problemen oplossen.<\/p><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\/indien-nul-dan-leeg\/\">Controleer IF 0 (nul) en leeg vervolgens in Excel<\/a><\/li><li> <a href=\"https:\/\/exceladvisor.org\/nl\/controleer-of-er-een-waarde-bestaat-in-een-bereik\/\">Controleer of er een waarde bestaat in een bereik in Excel<\/a><\/li><li> <a href=\"https:\/\/exceladvisor.org\/nl\/als-en-1\/\">Combineer ALS- en EN-functies in Excel<\/a><\/li><li> <a href=\"https:\/\/exceladvisor.org\/nl\/als-de-cel-leeg-is\/\">IF Cel is leeg (leeg) met IF + ISBLANK in Excel<\/a><\/li><li> <a href=\"https:\/\/exceladvisor.org\/nl\/indien-negatief-dan-nul\/\">INDIEN negatief, dan nul (0) in Excel<\/a> <\/li><\/ul><\/div><\/div><div class=\"gb-grid-column gb-grid-column-5b4a0cf9\"><div class=\"gb-container gb-container-5b4a0cf9\"><\/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-1774","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>Hoe IF- en OF-functies in Excel te combineren<\/title>\n<meta name=\"description\" content=\"In dit artikel leert u hoe u ALS- en OF-functies combineert. U kunt OR gebruiken om meerdere voorwaarden te testen.\" \/>\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\/als-of-1\/\" \/>\n<meta property=\"og:locale\" content=\"nl_NL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hoe IF- en OF-functies in Excel te combineren\" \/>\n<meta property=\"og:description\" content=\"In dit artikel leert u hoe u ALS- en OF-functies combineert. U kunt OR gebruiken om meerdere voorwaarden te testen.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/exceladvisor.org\/nl\/als-of-1\/\" \/>\n<meta property=\"og:site_name\" content=\"Excel Advisor\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-06T05:49:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/comment-combiner-les-fonctions-if-et-or-et-remplacer-largument-logique-par-or-1.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=\"3 minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/exceladvisor.org\/nl\/als-of-1\/\",\"url\":\"https:\/\/exceladvisor.org\/nl\/als-of-1\/\",\"name\":\"Hoe IF- en OF-functies in Excel te combineren\",\"isPartOf\":{\"@id\":\"https:\/\/exceladvisor.org\/nl\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/exceladvisor.org\/nl\/als-of-1\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/exceladvisor.org\/nl\/als-of-1\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/comment-combiner-les-fonctions-if-et-or-et-remplacer-largument-logique-par-or-1.png\",\"datePublished\":\"2023-11-05T18:30:11+00:00\",\"dateModified\":\"2023-12-06T05:49:04+00:00\",\"description\":\"In dit artikel leert u hoe u ALS- en OF-functies combineert. U kunt OR gebruiken om meerdere voorwaarden te testen.\",\"breadcrumb\":{\"@id\":\"https:\/\/exceladvisor.org\/nl\/als-of-1\/#breadcrumb\"},\"inLanguage\":\"nl-NL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/exceladvisor.org\/nl\/als-of-1\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"nl-NL\",\"@id\":\"https:\/\/exceladvisor.org\/nl\/als-of-1\/#primaryimage\",\"url\":\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/comment-combiner-les-fonctions-if-et-or-et-remplacer-largument-logique-par-or-1.png\",\"contentUrl\":\"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/comment-combiner-les-fonctions-if-et-or-et-remplacer-largument-logique-par-or-1.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/exceladvisor.org\/nl\/als-of-1\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Thuis\",\"item\":\"https:\/\/exceladvisor.org\/nl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hoe if- en of-functies in excel te combineren\"}]},{\"@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":"Hoe IF- en OF-functies in Excel te combineren","description":"In dit artikel leert u hoe u ALS- en OF-functies combineert. U kunt OR gebruiken om meerdere voorwaarden te testen.","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\/als-of-1\/","og_locale":"nl_NL","og_type":"article","og_title":"Hoe IF- en OF-functies in Excel te combineren","og_description":"In dit artikel leert u hoe u ALS- en OF-functies combineert. U kunt OR gebruiken om meerdere voorwaarden te testen.","og_url":"https:\/\/exceladvisor.org\/nl\/als-of-1\/","og_site_name":"Excel Advisor","article_modified_time":"2023-12-06T05:49:04+00:00","og_image":[{"url":"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/comment-combiner-les-fonctions-if-et-or-et-remplacer-largument-logique-par-or-1.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Geschatte leestijd":"3 minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/exceladvisor.org\/nl\/als-of-1\/","url":"https:\/\/exceladvisor.org\/nl\/als-of-1\/","name":"Hoe IF- en OF-functies in Excel te combineren","isPartOf":{"@id":"https:\/\/exceladvisor.org\/nl\/#website"},"primaryImageOfPage":{"@id":"https:\/\/exceladvisor.org\/nl\/als-of-1\/#primaryimage"},"image":{"@id":"https:\/\/exceladvisor.org\/nl\/als-of-1\/#primaryimage"},"thumbnailUrl":"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/comment-combiner-les-fonctions-if-et-or-et-remplacer-largument-logique-par-or-1.png","datePublished":"2023-11-05T18:30:11+00:00","dateModified":"2023-12-06T05:49:04+00:00","description":"In dit artikel leert u hoe u ALS- en OF-functies combineert. U kunt OR gebruiken om meerdere voorwaarden te testen.","breadcrumb":{"@id":"https:\/\/exceladvisor.org\/nl\/als-of-1\/#breadcrumb"},"inLanguage":"nl-NL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/exceladvisor.org\/nl\/als-of-1\/"]}]},{"@type":"ImageObject","inLanguage":"nl-NL","@id":"https:\/\/exceladvisor.org\/nl\/als-of-1\/#primaryimage","url":"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/comment-combiner-les-fonctions-if-et-or-et-remplacer-largument-logique-par-or-1.png","contentUrl":"https:\/\/exceladvisor.org\/wp-content\/uploads\/2023\/08\/comment-combiner-les-fonctions-if-et-or-et-remplacer-largument-logique-par-or-1.png"},{"@type":"BreadcrumbList","@id":"https:\/\/exceladvisor.org\/nl\/als-of-1\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Thuis","item":"https:\/\/exceladvisor.org\/nl\/"},{"@type":"ListItem","position":2,"name":"Hoe if- en of-functies in excel te combineren"}]},{"@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\/1774","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=1774"}],"version-history":[{"count":1,"href":"https:\/\/exceladvisor.org\/nl\/wp-json\/wp\/v2\/pages\/1774\/revisions"}],"predecessor-version":[{"id":2586,"href":"https:\/\/exceladvisor.org\/nl\/wp-json\/wp\/v2\/pages\/1774\/revisions\/2586"}],"wp:attachment":[{"href":"https:\/\/exceladvisor.org\/nl\/wp-json\/wp\/v2\/media?parent=1774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}