Loncat ke daftar isi utama

Bagaimana cara mengekstrak semua catatan antara dua tanggal di Excel?

Berikut adalah rentang data di Excel, dan dalam hal ini, saya ingin mengekstrak semua catatan baris antara dua tanggal seperti yang ditunjukkan gambar di bawah ini, apakah Anda punya ide untuk menangani pekerjaan ini dengan cepat tanpa mencari data dan mengekstraknya satu per satu secara manual?

doc ekstrak catatan antara tanggal 1 tembakan panah ke kanan doc ekstrak catatan antara tanggal 2

Ekstrak semua rekaman di antara dua tanggal dengan rumus

Ekstrak semua catatan antara dua tanggal oleh Kutools for Excelide bagus3


Ekstrak semua rekaman di antara dua tanggal dengan rumus

Untuk mengekstrak semua catatan antara dua tanggal di Excel, Anda perlu melakukan hal berikut:

1. Buat lembar baru, Sheet2, dan ketik tanggal mulai dan tanggal akhir dalam dua sel, misalnya A1 dan B1. Lihat tangkapan layar:
doc ekstrak catatan antara tanggal 3

2. Di C1 di Sheet2, ketikkan rumus ini, =SUMPRODUCT((Sheet1!$A$2:$A$22>=A2)*(Sheet1!$A$2:$A$22<=B2)), tekan Enter kunci untuk menghitung jumlah baris yang cocok. Lihat tangkapan layar:
doc ekstrak catatan antara tanggal 4

Catatan: dalam rumusnya, Sheet1 adalah sheet yang berisi data asli yang ingin Anda ekstrak, $ A $ 2: $ A $ 22 adalah rentang data, A2 dan B2 adalah tanggal mulai dan tanggal akhir.

3. Pilih sel kosong yang akan Anda tempatkan data yang diekstrak, ketikkan rumus ini =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)))), tekan Shift + Ctrl + Masuk kunci, dan seret gagang isian otomatis ke kolom dan baris untuk mengekstrak semua data hingga sel kosong atau nilai nol muncul. Lihat tangkapan layar:
doc ekstrak catatan antara tanggal 5

4. Hapus angka nol, dan pilih tanggal yang menunjukkan angka 5-digit, pergi ke Beranda tab, dan pilih Kencan singkat dalam daftar drop-down Umum untuk memformatnya dalam format tanggal. Lihat tangkapan layar:
doc ekstrak catatan antara tanggal 6


Ekstrak semua catatan antara dua tanggal oleh Kutools for Excel

Jika Anda ingin lebih mudah menangani pekerjaan ini, Anda dapat mencoba fitur Select Specific Cells dari Kutools for Excel.

Kutools untuk Excel, dengan lebih dari 300 fungsi praktis, membuat pekerjaan Anda lebih mudah. 

Setelah menginstal Kutools for Excel, lakukan seperti di bawah ini:(Unduh Gratis Kutools untuk Excel Sekarang!)

1. Pilih data yang ingin Anda ekstrak, klik Kutools > Pilih > Pilih Sel Spesifik. Lihat tangkapan layar:
doc ekstrak catatan antara tanggal 7

2. Dalam Pilih Sel Spesifik dialog, periksa Seluruh baris pilihan, dan pilih Lebih besar dari dan Kurang dari dari daftar drop-down, ketik tanggal mulai dan tanggal akhir ke dalam kotak teks, jangan lupa untuk mencentangnya Dan. Lihat tangkapan layar:
doc ekstrak catatan antara tanggal 8

3. klik Ok > OK. Dan baris yang sesuai dengan tanggal telah dipilih. tekan Ctrl + C untuk menyalin baris, dan pilih sel kosong dan tekan Ctrl + V untuk menempelkannya, lihat tangkapan layar:
doc ekstrak catatan antara tanggal 9

Alat Produktivitas Kantor Terbaik

🤖 Kutools AI Ajudan: Merevolusi analisis data berdasarkan: Eksekusi Cerdas   |  Hasilkan Kode  |  Buat Rumus Khusus  |  Analisis Data dan Hasilkan Grafik  |  Aktifkan Fungsi Kutools...
Fitur Populer: Temukan, Sorot, atau Identifikasi Duplikat   |  Hapus Baris Kosong   |  Gabungkan Kolom atau Sel tanpa Kehilangan Data   |   Putaran tanpa Formula ...
Pencarian Super: VLookup Beberapa Kriteria    VLookup Nilai Berganda  |   VLookup di Beberapa Lembar   |   Pencarian Fuzzy ....
Daftar Drop-down Lanjutan: Buat Daftar Drop Down dengan Cepat   |  Daftar Drop Down yang Bergantung   |  Multi-pilih Drop Down List ....
Manajer Kolom: Tambahkan Jumlah Kolom Tertentu  |  Pindahkan Kolom  |  Alihkan Status Visibilitas Kolom Tersembunyi  |  Bandingkan Rentang & Kolom ...
Fitur Unggulan: Fokus Kisi   |  Tampilan Desain   |   Bar Formula Besar    Manajer Buku Kerja & Lembar   |  Perpustakaan Sumberdaya (Teks otomatis)   |  Pemetik tanggal   |  Gabungkan Lembar Kerja   |  Enkripsi/Dekripsi Sel    Kirim Email berdasarkan Daftar   |  Filter Super   |   Filter Khusus (filter tebal/miring/coret...) ...
15 Perangkat Teratas12 Teks Tools (Tambahkan Teks, Hapus Karakter, ...)   |   50 + Grafik jenis (Gantt Chart, ...)   |   40+ Praktis Rumus (Hitung usia berdasarkan ulang tahun, ...)   |   19 Insersi Tools (Masukkan Kode QR, Sisipkan Gambar dari Jalur, ...)   |   12 Konversi Tools (Angka ke Kata, Konversi Mata Uang, ...)   |   7 Gabungkan & Pisahkan Tools (Lanjutan Gabungkan Baris, Pisahkan Sel, ...)   |   ... dan banyak lagi

Tingkatkan Keterampilan Excel Anda dengan Kutools for Excel, dan Rasakan Efisiensi yang Belum Pernah Ada Sebelumnya. Kutools for Excel Menawarkan Lebih dari 300 Fitur Lanjutan untuk Meningkatkan Produktivitas dan Menghemat Waktu.  Klik Di Sini untuk Mendapatkan Fitur yang Paling Anda Butuhkan...

Deskripsi Produk


Tab Office Membawa antarmuka Tab ke Office, dan Membuat Pekerjaan Anda Jauh Lebih Mudah

  • Aktifkan pengeditan dan pembacaan tab di Word, Excel, PowerPoint, Publisher, Access, Visio, dan Project.
  • Buka dan buat banyak dokumen di tab baru di jendela yang sama, bukan di jendela baru.
  • Meningkatkan produktivitas Anda sebesar 50%, dan mengurangi ratusan klik mouse untuk Anda setiap hari!
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