Direkt zum Inhalt

Wie extrahiere ich alle Datensätze zwischen zwei Daten in Excel?

Hier ist eine Reihe von Daten in Excel. In diesem Fall möchte ich alle Zeilendatensätze zwischen zwei Daten extrahieren, wie im folgenden Screenshot gezeigt. Haben Sie Ideen, wie Sie diesen Job schnell erledigen können, ohne nach Daten zu suchen und sie einzeln manuell zu extrahieren?

Dokument extrahieren Datensatz zwischen Datum 1 Schuss Pfeil rechts Dokument extrahieren Datensatz zwischen Datum 2

Extrahieren Sie alle Datensätze zwischen zwei Daten nach Formeln

Extrahieren Sie alle Datensätze zwischen zwei Daten mit Kutools for Excelgute Idee3


Extrahieren Sie alle Datensätze zwischen zwei Daten nach Formeln

Um alle Datensätze zwischen zwei Daten in Excel zu extrahieren, müssen Sie folgende Schritte ausführen:

1. Erstellen Sie ein neues Blatt, Sheet2, und geben Sie das Start- und Enddatum in zwei Zellen ein, z. B. A1 und B1. Siehe Screenshot:
Dokument extrahieren Datensatz zwischen Datum 3

2. Geben Sie in C1 in Blatt 2 diese Formel ein: =SUMPRODUCT((Sheet1!$A$2:$A$22>=A2)*(Sheet1!$A$2:$A$22<=B2)), Drücken Sie Enter Taste zum Zählen der Gesamtzahl der übereinstimmenden Zeilen. Siehe Screenshot:
Dokument extrahieren Datensatz zwischen Datum 4

Hinweis: In der Formel ist Sheet1 das Blatt, das die Originaldaten enthält, aus denen Sie extrahieren möchten. $ A $ 2: $ A $ 22 ist der Datenbereich, A2 und B2 sind das Start- und Enddatum.

3. Wählen Sie eine leere Zelle aus, in der Sie die extrahierten Daten platzieren möchten, und geben Sie diese Formel ein =IF(ROWS(A$5:A5)>$C$2,"",INDEX(Sheet1!A$2:A$22,SMALL(IF((Sheet1!$A$2:$A$22>=$A$2)*(Sheet1!$A$2:$A$22<=$B$2),ROW(Sheet1!A$2:A$22)-ROW(Sheet1!$A$2)+1),ROWS(A$5:A5)))), Drücken Sie Umschalt + Strg + Eingabetaste Ziehen Sie den Handle zum automatischen Füllen über Spalten und Zeilen, um alle Daten zu extrahieren, bis leere Zellen oder Nullwerte angezeigt werden. Siehe Screenshot:
Dokument extrahieren Datensatz zwischen Datum 5

4. Entfernen Sie die Nullen und wählen Sie die Daten aus, die als 5-stellige Zahlen angezeigt werden. Gehen Sie zu Home Registerkarte und wählen Sie Kurzes Date in der Dropdown-Liste Allgemein, um sie in Datumsformatierung zu formatieren. Siehe Screenshot:
Dokument extrahieren Datensatz zwischen Datum 6


Extrahieren Sie alle Datensätze zwischen zwei Daten mit Kutools for Excel

Wenn Sie diesen Job einfacher erledigen möchten, können Sie die Funktion "Spezifische Zellen auswählen" von Kutools for Excel ausprobieren.

Kutools for Excel, mit mehr als 300 praktische Funktionen erleichtern Ihre Arbeit. 

Nach der Installation Kutools für Excel, bitte gehen Sie wie folgt vor:(Kutools für Excel jetzt kostenlos herunterladen!)

1. Wählen Sie die Daten aus, aus denen Sie extrahieren möchten, und klicken Sie auf Kutoolen > Auswählen > Wählen Sie Bestimmte Zellen aus. Siehe Screenshot:
Dokument extrahieren Datensatz zwischen Datum 7

2. In dem Wählen Sie Bestimmte Zellen aus Dialog, überprüfen Ganze Reihe Option, und wählen Sie Größer als und Weniger als Geben Sie in den Dropdown-Listen das Start- und Enddatum in die Textfelder ein. Denken Sie daran, dies zu überprüfen Und. Siehe Screenshot:
Dokument extrahieren Datensatz zwischen Datum 8

3 Klicken Ok > OK. Und die Zeilen, die mit den Daten übereinstimmen, wurden ausgewählt. Drücken Sie Ctrl + C Um die Zeilen zu kopieren, wählen Sie eine leere Zelle aus und drücken Sie Strg + V Zum Einfügen siehe Screenshot:
Dokument extrahieren Datensatz zwischen Datum 9

Beste Office-Produktivitätstools

🤖 Kutools KI-Assistent: Revolutionieren Sie die Datenanalyse basierend auf: Intelligente Ausführung   |  Code generieren  |  Erstellen Sie benutzerdefinierte Formeln  |  Analysieren Sie Daten und erstellen Sie Diagramme  |  Rufen Sie Kutools-Funktionen auf...
Beliebte Funktionen: Suchen, markieren oder identifizieren Sie Duplikate   |  Leere Zeilen löschen   |  Kombinieren Sie Spalten oder Zellen, ohne Daten zu verlieren   |   Runde ohne Formel ...
Super-Lookup: VLookup mit mehreren Kriterien    VLookup mit mehreren Werten  |   VLookup über mehrere Blätter hinweg   |   Unscharfe Suche ....
Erweiterte Dropdown-Liste: Erstellen Sie schnell eine Dropdown-Liste   |  Abhängige Dropdown-Liste   |  Mehrfachauswahl Dropdown-Liste ....
Spaltenmanager: Fügen Sie eine bestimmte Anzahl von Spalten hinzu  |  Spalten verschieben  |  Schalten Sie den Sichtbarkeitsstatus ausgeblendeter Spalten um  |  Vergleichen Sie Bereiche und Spalten ...
Ausgewählte Funktionen: Rasterfokus   |  Designansicht   |   Große Formelleiste    Arbeitsmappen- und Blattmanager   |  Ressourcen (Autotext)   |  Datumsauswahl   |  Arbeitsblätter kombinieren   |  Zellen verschlüsseln/entschlüsseln    Senden Sie E-Mails nach Liste   |  Superfilter   |   Spezialfilter (Filter fett/kursiv/durchgestrichen...) ...
Top 15 Toolsets12 Text Tools (Text hinzufügen, Zeichen entfernen, ...)   |   50+ Chart Typen (Gantt-Diagramm, ...)   |   40+ Praktisch Formeln (Berechnen Sie das Alter basierend auf dem Geburtstag, ...)   |   19 Einfügen Tools (QR-Code einfügen, Bild aus Pfad einfügen, ...)   |   12 Umwandlung (Conversion) Tools (Zahlen zu Wörtern, Currency Conversion, ...)   |   7 Zusammenführen & Teilen Tools (Erweiterte Zeilen kombinieren, Zellen teilen, ...)   |   ... und mehr

Verbessern Sie Ihre Excel-Kenntnisse mit Kutools für Excel und erleben Sie Effizienz wie nie zuvor. Kutools für Excel bietet über 300 erweiterte Funktionen, um die Produktivität zu steigern und Zeit zu sparen.  Klicken Sie hier, um die Funktion zu erhalten, die Sie am meisten benötigen ...

Beschreibung


Office Tab Bringt die Oberfläche mit Registerkarten in Office und erleichtert Ihnen die Arbeit erheblich

  • Aktivieren Sie das Bearbeiten und Lesen von Registerkarten in Word, Excel und PowerPoint, Publisher, Access, Visio und Project.
  • Öffnen und erstellen Sie mehrere Dokumente in neuen Registerkarten desselben Fensters und nicht in neuen Fenstern.
  • Steigert Ihre Produktivität um 50 % und reduziert jeden Tag Hunderte von Mausklicks für Sie!
Comments (19)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi, this formula worked ok, except it only returned one data set for each date in the range. Is there an adjustment to allow for multiple entries with the dame date value?
This comment was minimized by the moderator on the site
This formula works awesome thanks, I need some extra help though. I have 200 employees, each with certification that expires on different dates. The heading for each certification is at the top with their expiry dates below. I want to extract the rows that with all info if there is an expiry reached and throw them into a new sheet. Exactly like the example above just dated from multiple columns.
This comment was minimized by the moderator on the site
Hi, Christiaan82, could you upload the a screenshot about you workhsheet, or give me more details about the information of sheet format, only with your description, I do not get it clearly.
This comment was minimized by the moderator on the site
All sorted. Instead of trying to retrieve the rows from multiple columns, I added a new hidden sheet where all the info populates the info on top of each other. So the information only needs to be retrieved from one column, as per your example above.
Thank you Sunny
This comment was minimized by the moderator on the site
"drag Auto fill handle over columns and rows to extract all data until blank cells or zero values appear."
This doesn't seem to be working for me. The first row gives me the dates but the same gets repeated in the next two rows.
This comment was minimized by the moderator on the site
Hi, Neha, could you check if your auto calculate is turn on? Click Formulas > Calcuations Options > Automatic.
This comment was minimized by the moderator on the site
it worked well for single sheet. can u pls help me to get the same from multiple sheets of similar data. first 4 sheets contain similar data. i need all records of same 'date' in sheet5.
This comment was minimized by the moderator on the site
Can you extend the formula to check for dates that encompass more than one day? For example, using the same start and end dates from 1/1/15-12/31/16, but the data in sheet 1 have start and end dates too rather than just existing for a singular date.
This comment was minimized by the moderator on the site
This formula worked brilliantly. I was concerned as I have multiple date duplicates and there was no mention of how it handles those; no issues. It returned all relevant data.
Stoked.
This comment was minimized by the moderator on the site
Thanks for your support, you can combined the duplicate dates cells after extracting.
This comment was minimized by the moderator on the site
The trouble I am having because I need to find dates that run through the date range specified. So I want anything that runs through something like 1/2016 to 12/2017, however it needs to include start dates that may be before the range so I can identify the records I need to look at.
This comment was minimized by the moderator on the site
I used this code and it is pulling up dates outside of the window... how do I fix it?
This comment was minimized by the moderator on the site
Which code Kayla? Do you mean the formula?
This comment was minimized by the moderator on the site
I recreated this example in Excel 2010, and the result was that the first row of data would show up, but everything underneath had a number error.
This comment was minimized by the moderator on the site
Same thing happens to me n Excel 2010. Something in the formula doesn't work correctly.
This comment was minimized by the moderator on the site
Have you pressed Shift + Ctrl + Enter keys?
This comment was minimized by the moderator on the site
I see what's wrong. You have to press the shift + CTRL + Enter keys while still in edit mode.
I was hitting those keys after entering the formula and hitting ENTER.
I wish it would have been clearer.
This comment was minimized by the moderator on the site
Yes, brian, after typing the formula and still in edit mode, directly press Shift + Ctrl + Enter keys (the keys instead of Enter key), to get the correct result.
This comment was minimized by the moderator on the site
Still doesnt work for me? I am doing exactly as above and still returning the NUM error? Any other ideas?
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations