Loncat ke daftar isi utama

Bagaimana menghitung berdasarkan tanggal / bulan / tahun dan rentang tanggal di Excel?

Misalnya, kami memiliki daftar keanggotaan dengan hari ulang tahun mereka, dan sekarang kami sedang mempersiapkan membuat kartu ulang tahun untuk anggota ini. Sebelum membuat kartu ulang tahun, kita harus menghitung berapa hari ulang tahun pada bulan / tahun / tanggal tertentu. Di sini saya akan memandu Anda ke Countif berdasarkan tanggal / bulan / tahun dan rentang tanggal dengan rumus di Excel dengan metode berikut:


Countif menurut bulan / tahun dan rentang tanggal tertentu dengan rumus di Excel

Di bagian ini, saya akan memperkenalkan beberapa rumus untuk menghitung ulang tahun dengan bulan, tahun, atau rentang tanggal tertentu di Excel.

Countif dengan bulan tertentu

Misalkan Anda akan menghitung ulang tahun yang berada di bulan tertentu 8, Anda dapat memasukkan rumus di bawah ini ke dalam sel kosong, lalu tekan Enter kunci.

= SUMPRODUCT (1 * (BULAN (C3: C16) = G2))

Catatan:

Dalam rumus di atas, C3: C16 adalah kolom Tanggal Lahir yang ditentukan tempat Anda akan menghitung ulang tahun, dan G2 adalah sel dengan nomor bulan tertentu.

Anda juga bisa menerapkan rumus array ini = JUMLAH (JIKA (BULAN (B2: B15) = 8,1)) (tekan Ctrl + Shift + Enter) untuk menghitung ulang tahun menurut bulan tertentu.

Countif pada tahun tertentu

Jika Anda perlu menghitung ulang tahun pada tahun tertentu, kata 1988, Anda dapat menggunakan salah satu rumus di bawah ini sesuai kebutuhan.

= SUMPRODUCT (1 * (TAHUN (C3: C16) = 1988))
= JUMLAH (JIKA (TAHUN (B2: B15) = 1988,1))

Catatan: Rumus kedua adalah rumus array. Harap ingat untuk menekan Ctrl + perubahan + Enter kunci bersama setelah memasukkan rumus;

Countif dengan tanggal tertentu

Jika Anda perlu menghitung menurut tanggal tertentu (katakanlah 1992-8-16), harap terapkan rumus di bawah ini, dan tekan tombol Enter.

=COUNTIF(B2:B15,"1992-8-16")

Countif dengan rentang tanggal tertentu

Jika Anda perlu menghitung jika lebih lambat / lebih awal dari tanggal tertentu (mengatakan 1990-1-1), Anda dapat menerapkan rumus di bawah ini:

= COUNTIF (B2: B15, ">" & "1990-1-1")
= COUNTIF (B2: B15, "<" & "1990-1-1")

Untuk menghitung jika antara dua tanggal tertentu (katakanlah antara 1988-1-1 dan 1998-1-1), silakan gunakan rumus di bawah ini:

=COUNTIFS(B2:B15,">"&"1988-1-1",B2:B15,"<"&"1998-1-1")

perhatikan pita Formula terlalu rumit untuk diingat? Simpan rumus sebagai entri Teks Otomatis untuk digunakan kembali hanya dengan satu klik di masa mendatang!
Baca lebih banyak…     Free trial

Mudah dihitung Tahun fiskal, setengah tahun, angka minggu, atau hari dalam seminggu di Excel

Fitur Pengelompokan Waktu Khusus PivotTable, yang disediakan oleh Kutools for Excel, mampu menambahkan kolom pembantu untuk menghitung tahun fiskal, setengah tahun, nomor minggu, atau hari dalam seminggu berdasarkan kolom tanggal yang ditentukan, dan memudahkan Anda menghitung, menjumlahkan , atau kolom rata-rata berdasarkan hasil yang dihitung dalam Tabel Pivot baru.


Kutools untuk Excel - Tingkatkan Excel dengan lebih dari 300 alat penting. Nikmati uji coba GRATIS 30 hari berfitur lengkap tanpa memerlukan kartu kredit! Get It Now

Countif menurut tanggal, tahun, atau rentang tanggal tertentu di Excel

Jika Anda menginstal Kutools for Excel, Anda dapat menerapkannya Pilih Sel Spesifik utilitas untuk menghitung jumlah kemunculan berdasarkan tanggal, tahun, atau rentang tanggal tertentu di Excel dengan mudah.

Kutools untuk Excel- Termasuk lebih dari 300 alat praktis untuk Excel. Uji coba gratis fitur lengkap 30 hari, tidak memerlukan kartu kredit! Get It Now

1. Pilih kolom ulang tahun yang akan Anda hitung, dan klik Kutools > Pilih > Pilih Sel Spesifik. Lihat tangkapan layar:

2. Pada kotak dialog Select Specific Cells pembuka, lakukan seperti gambar di atas yang ditunjukkan:
(1) Dalam Tipe pilihan bagian, centang satu opsi yang Anda butuhkan. Dalam kasus kami, kami memeriksa Sel pilihan;
(2) Dalam Tipe khusus bagian, pilih Lebih dari atau sama dengan dari daftar drop-down pertama, lalu ketik tanggal pertama dari rentang tanggal yang ditentukan di kotak kanan; selanjutnya pilih Kurang dari atau sama dengan dari daftar drop-down kedua, dan ketik tanggal terakhir dari rentang tanggal yang ditentukan di kotak kanan, lalu centang Dan pilihan;
(3) Klik Ok .

3. Sekarang kotak dialog muncul dan menunjukkan berapa banyak baris yang telah dipilih seperti gambar di bawah ini. Silakan klik OK tombol untuk menutup kotak dialog ini.

Catatan:
(1) Untuk menghitung jumlah kemunculan menurut tahun tertentu, cukup tentukan rentang tanggal dari tanggal pertama tahun ini hingga tanggal terakhir tahun ini, seperti dari 1/1/1990 untuk 12/31/1990.
(2) Untuk menghitung jumlah kejadian menurut tanggal yang ditentukan, seperti 9/14/1985, cukup tentukan pengaturan di kotak dialog Pilih Sel Spesifik seperti gambar di bawah ini yang ditampilkan:


Demo: Countif berdasarkan tanggal, hari kerja, bulan, tahun, atau rentang tanggal di Excel


Kutools untuk Excel: Lebih dari 300 alat praktis di ujung jari Anda! Mulai uji coba gratis 30 hari Anda tanpa batasan fitur hari ini. Download Sekarang!


Artikel terkait:

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 (33)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi;

I need to determin how many times I need Know per week of the year how many time i nedd to see a patient , knowing de lenght of stay and the frequency of observation, 3 in the days ,
exemple :
patiente ex: date of admission : 8/3/2023 date of discharge : 31/8/2023 ; observations 3 in 3 days .
This comment was minimized by the moderator on the site
Hi, I need a formula to count how many times the country of El Salvador appears by Month (how many in Jan, how many if Feb, and how many in March)

1/10/2022 El Saldavor
1/11/2022 USA
1/12/2022 El Salvador
02/01/2022 El Salvador
02/06/2022 Mexico
02/05/2022 USA
03/03/2022 El Salvador
03/03/2022 El Savlador
03/03/2022 USA
This comment was minimized by the moderator on the site
Hi there,

You can add a helper column first with the formula =MONTH(data_cell) to convert the dates to corresponding month numbers. And then use a COUNTIFS formula to get the count of "El Salvador" for each month number.

For example, to get the number of El Salvador appears in January, use: =COUNTIFS(country_list,"El Salvador",helper-column,1)

Please see the picture below:
https://www.extendoffice.com/images/stories/comments/ljy-picture/count_items_by_month.png

Amanda
This comment was minimized by the moderator on the site
Προσπαθω να μετρήσω μια σιγκεκριμένη ημερομηνία αλλα τον τυπο που έχεται παραπάνω δεν το δέχεται το excel =COUNTIF(B2:B15,"1992-8-16")
This comment was minimized by the moderator on the site
Hi there,

Is it becase of the language your Excel version? Please check if COUNTIF should be converted to your language in your Excel verion. Also, when you say Excel does not accept the formula, did Excel show any errors or anything?

Amanda
This comment was minimized by the moderator on the site
01/03/2022 27/08/2022
02/02/2022 31/07/2022
01/04/2022 01/07/2022
01/04/2022 30/06/2022
01/04/2022 30/06/2022
30/04/2022 29/05/2022
20/04/2022 19/05/2022
15/04/2022 14/05/2022
15/04/2022 14/05/2022
15/04/2022 14/05/2022
04/04/2022 03/05/2022
01/02/2022 01/05/2022
13/04/2022 27/04/2022
16/04/2022 24/04/2022
04/04/2022 23/04/2022
15/04/2022 20/04/2022
21/03/2022 19/04/2022
11/04/2022 17/04/2022
05/04/2022 14/04/2022
15/03/2022 13/04/2022
15/03/2022 13/04/2022
15/03/2022 13/04/2022
15/03/2022 13/04/2022
15/03/2022 13/04/2022
15/03/2022 13/04/2022
15/03/2022 13/04/2022
15/03/2022 13/04/2022
15/03/2022 13/04/2022
22/03/2022 10/04/2022
27/03/2022 05/04/2022
29/03/2022 04/04/2022
03/01/2022 03/04/2022
03/01/2022 03/04/2022
03/01/2022 03/04/2022
25/03/2022 03/04/2022

Como contar apenas os dias do mês 04 nesses intervalos?
This comment was minimized by the moderator on the site
Hi, are you trying to count the number of days in April?
If yes, you should first select the two columns, then go to Kutools tab, in the Ranges & Cells group, click To Actual. Now, in the Editing group, click Select, and then click Select Specific Cells.
In the pop-up dialog box, select Cell option under the Selction Type; Under Specific type, select Contains, and type 4/2022 in the corresponding box. Click OK. Now, it will tell you how many days of April are there. Please see screenshot.
This comment was minimized by the moderator on the site
i need report weekly wise like a 7th 14th 21st 28th count only.other days are no need for every month i tried many pivot but i can't find out please help me.
This comment was minimized by the moderator on the site
Why we cant justselect whole column, instead of using this MONTH(C3:C16) ?
This comment was minimized by the moderator on the site
In the formula =SUMPRODUCT(1*(MONTH(C3:C16)=G2)), G2 is the specified month number, says 4. If we replace MONTH(C3:C16) with the whole columns (or C3:C16), there is no value that equal to the value 4, therefore we cannot get the count result.
This comment was minimized by the moderator on the site
What would you do if you have 1 column of events within a date range and need to count if those events had a date in another column?

Example: I have column B as the event dates which vary each month. Column D has the date they came into a consultation. I'm trying to count how many people from that specific event for a date range came to a consultation for any date.
This comment was minimized by the moderator on the site
Hi Roxie,
You should try the Compare cells feature, which can compare two columns of cells, find out, and highlight the exactly same cells between them or the differences. https://www.extendoffice.com/product/kutools-for-excel/excel-compare-two-cells-of-equal.html
This comment was minimized by the moderator on the site
JAN = 1
FEB = 2
..
..
DEC = 12 ? NOT CORRECT RESULT IN DECEMBER
This comment was minimized by the moderator on the site
Hi Rhon,
Could you describe more about the error? Does the error come out when converting December to 12, or when counting by “12”?
This comment was minimized by the moderator on the site
How can I count a cell on a specific day of the week. For example, I want to find a number of something on the first Sunday of the month
This comment was minimized by the moderator on the site
Hi mary,
In your case, you should count by the specified date. For example, count by the first Sunday of Jan, 2019 (in other words 2019/1/6), you can apply the formula =COUNTIF(E1:E16,"2019/1/6")
This comment was minimized by the moderator on the site
rumus ini = SUMPRODUCT (1 * (YEAR (B2: B15) = 1988)) kalau datanya (range) sampe 20ribu ko ga bisa ya?
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations