Preskoči na glavno vsebino

Kako v Excelu izvleči vse zapise med dvema datumoma?

Tukaj je vrsta podatkov v Excelu, v tem primeru pa želim izvleči vse zapise vrstic med dvema datumoma, kot je prikazano na spodnji sliki zaslona, ​​ali imate kakšno idejo za hitro obravnavo tega dela, ne da bi iskali podatke in jih ročno ekstrahirali enega za drugim?

zapis izvlečka dokumenta med datumi 1 ustrelil puščico desno zapis izvlečka dokumenta med datumi 2

Izvlecite vse zapise med dvema datumoma po formulah

Kutools za Excel izvleči vse zapise med dvema datumomadobra ideja3


Izvlecite vse zapise med dvema datumoma po formulah

Če želite v Excelu izvleči vse zapise med dvema datumoma, morate storiti naslednje:

1. Ustvarite nov list Sheet2 in v dve celici, na primer A1 in B1, vnesite začetni in končni datum. Oglejte si posnetek zaslona:
zapis izvlečka dokumenta med datumi 3

2. V C1 v Sheet2 vnesite to formulo, =SUMPRODUCT((Sheet1!$A$2:$A$22>=A2)*(Sheet1!$A$2:$A$22<=B2)), pritisnite Vnesite za štetje skupnega števila ujemajočih se vrstic. Oglejte si posnetek zaslona:
zapis izvlečka dokumenta med datumi 4

Opomba: v formuli je Sheet1 list vsebuje izvirne podatke, iz katerih želite izvleči, $ A $ 2: $ A $ 22 je obseg podatkov, A2 in B2 sta začetni in končni datum.

3. Izberite prazno celico, kamor boste namestili ekstrahirane podatke, vnesite to formulo =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)))), pritisnite Shift + Ctrl + Enter tipke in povlecite ročico za samodejno polnjenje čez stolpce in vrstice, da izvlečete vse podatke, dokler se ne pojavijo prazne celice ali nič vrednosti. Oglejte si posnetek zaslona:
zapis izvlečka dokumenta med datumi 5

4. Odstranite ničle in izberite datume, ki so prikazani kot petmestne številke, pojdite na Domov zavihek in izberite Kratek zmenek na spustnem seznamu Splošno, če jih želite formatirati v oblikovanju datuma. Oglejte si posnetek zaslona:
zapis izvlečka dokumenta med datumi 6


Kutools za Excel izvleči vse zapise med dvema datumoma

Če želite to nalogo lažje obvladati, lahko poskusite s funkcijo Select Specific Cells v Kutools for Excel.

Kutools za Excel, z več kot 300 priročne funkcije, vam olajša delo. 

Po namestitvi Kutools za Excel, naredite spodaj:(Brezplačno prenesite Kutools za Excel zdaj!)

1. Izberite podatke, iz katerih želite izvleči, kliknite Kutools > Izberite > Izberite Specific Cells. Oglejte si posnetek zaslona:
zapis izvlečka dokumenta med datumi 7

2. V Ljubljani Izberite Specific Cells pogovorno okno, preverite Cela vrstica in izberite Večji kot in Manj kot s spustnih seznamov vnesite začetni in končni datum v besedilna polja, ne pozabite preveriti in. Oglejte si posnetek zaslona:
zapis izvlečka dokumenta med datumi 8

3. klik Ok > OK. Izbrane so bile vrstice, ki se ujemajo z datumi. Pritisnite Ctrl + C da kopirate vrstice, izberite prazno celico in pritisnite Ctrl + V če ga želite prilepiti, si oglejte posnetek zaslona:
zapis izvlečka dokumenta med datumi 9

Najboljša pisarniška orodja za produktivnost

🤖 Kutools AI Aide: Revolucionirajte analizo podatkov na podlagi: Inteligentna izvedba   |  Ustvari kodo  |  Ustvarite formule po meri  |  Analizirajte podatke in ustvarite grafikone  |  Prikličite funkcije Kutools...
Priljubljene funkcije: Poiščite, označite ali identificirajte dvojnike   |  Izbriši prazne vrstice   |  Združite stolpce ali celice brez izgube podatkov   |   Krog brez formule ...
Super iskanje: Več kriterijev VLookup    Multiple Value VLookup  |   VLookup na več listih   |   Nejasno iskanje ....
Napredni spustni seznam: Hitro ustvarite spustni seznam   |  Odvisni spustni seznam   |  Večkrat izberite spustni seznam ....
Upravitelj stolpcev: Dodajte določeno število stolpcev  |  Premakni stolpce  |  Preklop stanja vidnosti skritih stolpcev  |  Primerjaj obsege in stolpce ...
Predstavljene funkcije: Mrežni fokus   |  Pogled oblikovanja   |   Velika vrstica formule    Upravitelj delovnih zvezkov in listov   |  Knjižnica virov (Samodejno besedilo)   |  Izbirnik datuma   |  Združite delovne liste   |  Šifriranje/dešifriranje celic    Pošljite e-pošto po seznamu   |  Super filter   |   Poseben filter (filter krepko/ležeče/prečrtano ...) ...
15 najboljših kompletov orodij12 Besedilo Orodja (dodajanje besedila, Odstrani znake,...)   |   50 + Graf Vrste (Gantt Chart,...)   |   40+ Praktično Formule (Izračunajte starost glede na rojstni dan,...)   |   19 vstavljanje Orodja (Vstavite kodo QR, Vstavi sliko s poti,...)   |   12 Pretvorba Orodja (Številke v besede, Pretvorba valut,...)   |   7 Spoji in razdeli Orodja (Napredne kombinirane vrstice, Razdeljene celice,...)   |   ... in več

Napolnite svoje Excelove spretnosti s Kutools za Excel in izkusite učinkovitost kot še nikoli prej. Kutools za Excel ponuja več kot 300 naprednih funkcij za povečanje produktivnosti in prihranek časa.  Kliknite tukaj, če želite pridobiti funkcijo, ki jo najbolj potrebujete...

Opis


Kartica Office prinaša vmesnik z zavihki v Office in poenostavi vaše delo

  • Omogočite urejanje in branje z zavihki v Wordu, Excelu, PowerPointu, Publisher, Access, Visio in Project.
  • Odprite in ustvarite več dokumentov v novih zavihkih istega okna in ne v novih oknih.
  • Poveča vašo produktivnost za 50%in vsak dan zmanjša na stotine klikov miške za vas!
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