{"id":4472,"date":"2023-07-10T20:26:07","date_gmt":"2023-07-10T20:26:07","guid":{"rendered":"https:\/\/statorials.org\/de\/vba-anzahl-grosser-als-datum\/"},"modified":"2023-07-10T20:26:07","modified_gmt":"2023-07-10T20:26:07","slug":"vba-anzahl-grosser-als-datum","status":"publish","type":"post","link":"https:\/\/statorials.org\/de\/vba-anzahl-grosser-als-datum\/","title":{"rendered":"Vba: zahl gr\u00f6\u00dfer als datum"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">Sie k\u00f6nnen die folgende grundlegende Syntax in VBA verwenden, um die Anzahl der Daten zu z\u00e4hlen, die gr\u00f6\u00dfer als ein bestimmtes Datum sind:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #0000ff;\">Sub<\/span> CountifGreaterDate()\nRange(\" <span style=\"color: #ff0000;\">D2<\/span> \") = WorksheetFunction.CountIf(Range(\" <span style=\"color: #ff0000;\">A2:A10<\/span> \"), \"&gt;\" &amp; Range(\" <span style=\"color: #ff0000;\">C2<\/span> \"))\n<span style=\"color: #0000ff;\">End Sub<\/span><\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">In diesem speziellen Beispiel wird die Anzahl der Daten im Bereich <strong>A2:A10<\/strong> gez\u00e4hlt, die gr\u00f6\u00dfer als das Datum in Zelle <strong>C2<\/strong> sind.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Das Ergebnis wird dann der Zelle <strong>D2<\/strong> zugewiesen.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Das folgende Beispiel zeigt, wie diese Syntax in der Praxis verwendet wird.<\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>Beispiel: Z\u00e4hlen Sie mit VBA gr\u00f6\u00dfer als das Datum<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">Angenommen, wir haben die folgende Datumsliste in Excel und m\u00f6chten wissen, wie viele Daten gr\u00f6\u00dfer als <strong>der 25.04.2023<\/strong> sind:<\/span> <\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-34992 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/gdate1.png\" alt=\"\" width=\"526\" height=\"396\" srcset=\"\" sizes=\"\"><\/p>\n<p> <span style=\"color: #000000;\">Dazu k\u00f6nnen wir das folgende Makro erstellen:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #0000ff;\">Sub<\/span> CountifGreaterDate()\nRange(\" <span style=\"color: #ff0000;\">D2<\/span> \") = WorksheetFunction.CountIf(Range(\" <span style=\"color: #ff0000;\">A2:A10<\/span> \"), \"&gt;\" &amp; Range(\" <span style=\"color: #ff0000;\">C2<\/span> \"))\n<span style=\"color: #0000ff;\">End Sub<\/span><\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">Wenn wir dieses Makro ausf\u00fchren, erhalten wir die folgende Ausgabe:<\/span> <\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-34993\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/cdate1.png\" alt=\"VBA-Nummer, wenn gr\u00f6\u00dfer als das Datum\" width=\"511\" height=\"388\" srcset=\"\" sizes=\"\"><\/p>\n<p> <span style=\"color: #000000;\">Zelle <strong>D2<\/strong> sagt uns, dass es <strong>6<\/strong> Daten im Bereich <strong>A2:A10<\/strong> gibt, die gr\u00f6\u00dfer als der <strong>25.04.2023<\/strong> sind.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Beachten Sie, dass wir den Wert in Zelle <strong>C2<\/strong> \u00e4ndern und das Makro erneut ausf\u00fchren k\u00f6nnen, um die Anzahl der Daten zu z\u00e4hlen, die gr\u00f6\u00dfer als ein anderes bestimmtes Datum sind.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Angenommen, wir \u00e4ndern das Datum in Zelle <strong>C2<\/strong> auf den <strong>01.10.2023<\/strong> und f\u00fchren das Makro erneut aus:<\/span> <\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-34994 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/cdate2.png\" alt=\"\" width=\"533\" height=\"402\" srcset=\"\" sizes=\"\"><\/p>\n<p> <span style=\"color: #000000;\">Wir sehen, dass es <strong>drei<\/strong> Daten gibt, die nach dem <strong>01.10.2023<\/strong> liegen.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Hinweis:<\/strong> Wenn Sie die Anzahl der Daten z\u00e4hlen m\u00f6chten <em>, die gr\u00f6\u00dfer oder gleich<\/em> einem bestimmten Datum sind, ersetzen Sie einfach das <strong>\u201e&gt;\u201c<\/strong> in der <strong>CountIf-<\/strong> Funktion durch <strong>\u201e&gt;=\u201c<\/strong> .<\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>Zus\u00e4tzliche Ressourcen<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">In den folgenden Tutorials wird erl\u00e4utert, wie Sie andere h\u00e4ufige Aufgaben in VBA ausf\u00fchren:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><a href=\"https:\/\/statorials.org\/de\/vba-nach-datum-sortieren\/\" target=\"_blank\" rel=\"noopener\">So sortieren Sie in VBA nach Datum<\/a><br \/> <a href=\"https:\/\/statorials.org\/de\/vba-sumif-zwischen-zwei-daten\/\" target=\"_blank\" rel=\"noopener\">So f\u00fcgen Sie \u201eif\u201c zwischen zwei Daten in VBA hinzu<\/a><br \/> <a href=\"https:\/\/statorials.org\/de\/vba-fugt-tage-zum-datum-hinzu\/\" target=\"_blank\" rel=\"noopener\">So f\u00fcgen Sie in VBA aktuelle Tage hinzu<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sie k\u00f6nnen die folgende grundlegende Syntax in VBA verwenden, um die Anzahl der Daten zu z\u00e4hlen, die gr\u00f6\u00dfer als ein bestimmtes Datum sind: Sub CountifGreaterDate() Range(&#8220; D2 &#8222;) = WorksheetFunction.CountIf(Range(&#8220; A2:A10 &#8222;), &#8222;&gt;&#8220; &amp; Range(&#8220; C2 &#8222;)) End Sub In diesem speziellen Beispiel wird die Anzahl der Daten im Bereich A2:A10 gez\u00e4hlt, die gr\u00f6\u00dfer als [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>VBA: Zahl gr\u00f6\u00dfer als Datum \u2013 Statorials<\/title>\n<meta name=\"description\" content=\"In diesem Tutorial wird anhand eines Beispiels erkl\u00e4rt, wie man mithilfe von VBA Zeilen z\u00e4hlt, die \u00fcber einem bestimmten Datum liegen.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/de\/vba-anzahl-grosser-als-datum\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"VBA: Zahl gr\u00f6\u00dfer als Datum \u2013 Statorials\" \/>\n<meta property=\"og:description\" content=\"In diesem Tutorial wird anhand eines Beispiels erkl\u00e4rt, wie man mithilfe von VBA Zeilen z\u00e4hlt, die \u00fcber einem bestimmten Datum liegen.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/de\/vba-anzahl-grosser-als-datum\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-10T20:26:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/gdate1.png\" \/>\n<meta name=\"author\" content=\"Dr. Benjamin Anderson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dr. Benjamin Anderson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/de\/vba-anzahl-grosser-als-datum\/\",\"url\":\"https:\/\/statorials.org\/de\/vba-anzahl-grosser-als-datum\/\",\"name\":\"VBA: Zahl gr\u00f6\u00dfer als Datum \u2013 Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/de\/#website\"},\"datePublished\":\"2023-07-10T20:26:07+00:00\",\"dateModified\":\"2023-07-10T20:26:07+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0\"},\"description\":\"In diesem Tutorial wird anhand eines Beispiels erkl\u00e4rt, wie man mithilfe von VBA Zeilen z\u00e4hlt, die \u00fcber einem bestimmten Datum liegen.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/de\/vba-anzahl-grosser-als-datum\/#breadcrumb\"},\"inLanguage\":\"de-DE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/de\/vba-anzahl-grosser-als-datum\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/de\/vba-anzahl-grosser-als-datum\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Heim\",\"item\":\"https:\/\/statorials.org\/de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Vba: zahl gr\u00f6\u00dfer als datum\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/de\/#website\",\"url\":\"https:\/\/statorials.org\/de\/\",\"name\":\"Statorials\",\"description\":\"Ihr Leitfaden f\u00fcr statistische Kompetenz !\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/de\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"de-DE\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0\",\"name\":\"Dr. Benjamin Anderson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de-DE\",\"@id\":\"https:\/\/statorials.org\/de\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg\",\"caption\":\"Dr. Benjamin Anderson\"},\"description\":\"Hallo, ich bin Benjamin, ein pensionierter Statistikprofessor, der sich zum engagierten Statorials-Lehrer entwickelt hat. Mit umfassender Erfahrung und Fachwissen auf dem Gebiet der Statistik bin ich bestrebt, mein Wissen zu teilen, um Studenten durch Statorials zu bef\u00e4higen. Mehr wissen\",\"sameAs\":[\"https:\/\/statorials.org\/de\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"VBA: Zahl gr\u00f6\u00dfer als Datum \u2013 Statorials","description":"In diesem Tutorial wird anhand eines Beispiels erkl\u00e4rt, wie man mithilfe von VBA Zeilen z\u00e4hlt, die \u00fcber einem bestimmten Datum liegen.","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:\/\/statorials.org\/de\/vba-anzahl-grosser-als-datum\/","og_locale":"de_DE","og_type":"article","og_title":"VBA: Zahl gr\u00f6\u00dfer als Datum \u2013 Statorials","og_description":"In diesem Tutorial wird anhand eines Beispiels erkl\u00e4rt, wie man mithilfe von VBA Zeilen z\u00e4hlt, die \u00fcber einem bestimmten Datum liegen.","og_url":"https:\/\/statorials.org\/de\/vba-anzahl-grosser-als-datum\/","og_site_name":"Statorials","article_published_time":"2023-07-10T20:26:07+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/gdate1.png"}],"author":"Dr. Benjamin Anderson","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"Dr. Benjamin Anderson","Gesch\u00e4tzte Lesezeit":"2 Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/de\/vba-anzahl-grosser-als-datum\/","url":"https:\/\/statorials.org\/de\/vba-anzahl-grosser-als-datum\/","name":"VBA: Zahl gr\u00f6\u00dfer als Datum \u2013 Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/de\/#website"},"datePublished":"2023-07-10T20:26:07+00:00","dateModified":"2023-07-10T20:26:07+00:00","author":{"@id":"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0"},"description":"In diesem Tutorial wird anhand eines Beispiels erkl\u00e4rt, wie man mithilfe von VBA Zeilen z\u00e4hlt, die \u00fcber einem bestimmten Datum liegen.","breadcrumb":{"@id":"https:\/\/statorials.org\/de\/vba-anzahl-grosser-als-datum\/#breadcrumb"},"inLanguage":"de-DE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/de\/vba-anzahl-grosser-als-datum\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/de\/vba-anzahl-grosser-als-datum\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Heim","item":"https:\/\/statorials.org\/de\/"},{"@type":"ListItem","position":2,"name":"Vba: zahl gr\u00f6\u00dfer als datum"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/de\/#website","url":"https:\/\/statorials.org\/de\/","name":"Statorials","description":"Ihr Leitfaden f\u00fcr statistische Kompetenz !","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/de\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"de-DE"},{"@type":"Person","@id":"https:\/\/statorials.org\/de\/#\/schema\/person\/ec75c4d6365f2708f8a0ad3a42121aa0","name":"Dr. Benjamin Anderson","image":{"@type":"ImageObject","inLanguage":"de-DE","@id":"https:\/\/statorials.org\/de\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/de\/wp-content\/uploads\/2023\/11\/Benjamin-Anderson-96x96.jpg","caption":"Dr. Benjamin Anderson"},"description":"Hallo, ich bin Benjamin, ein pensionierter Statistikprofessor, der sich zum engagierten Statorials-Lehrer entwickelt hat. Mit umfassender Erfahrung und Fachwissen auf dem Gebiet der Statistik bin ich bestrebt, mein Wissen zu teilen, um Studenten durch Statorials zu bef\u00e4higen. Mehr wissen","sameAs":["https:\/\/statorials.org\/de"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/posts\/4472"}],"collection":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/comments?post=4472"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/posts\/4472\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/media?parent=4472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/categories?post=4472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/de\/wp-json\/wp\/v2\/tags?post=4472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}