Loncat ke daftar isi utama

Bagaimana format bersyarat berdasarkan tanggal di Excel?

Seperti yang kita ketahui, Conditional Formatting dapat mengubah format sel secara otomatis berdasarkan isi sel. Tutorial ini, saya akan memperkenalkan cara memformat sel bersyarat berdasarkan tanggal di Excel.

Tanggal pemformatan bersyarat sama dengan / lebih besar dari / lebih tua dari HARI INI

Pemformatan bersyarat tanggal yang sudah lewat

Format bersyarat tanggal masa depan

Pemformatan bersyarat antara dua tanggal

Pemformatan bersyarat berdasarkan tanggal di kolom lain


Tanggal pemformatan bersyarat sama dengan / lebih besar dari / lebih tua dari HARI INI

Untuk tanggal pemformatan bersyarat, Anda perlu membuat aturan baru.

1. Pilih sel yang ingin Anda tambahkan pemformatan bersyarat, klik Beranda > Format Bersyarat > Aturan baru.
doc tanggal pemformatan bersyarat 1

2. Dalam Aturan Pemformatan Baru dialog, pilih Gunakan rumus untuk menentukan sel mana yang akan diformat in Pilih Jenis Aturan bagian, lalu pilih satu rumus saat Anda perlu mengetik Memformat nilai yang rumus ini benar kolom tulisan.

  • sama dengan hari ini:=$B2=TODAY()
  • reater dari hari ini: =$B2>TODAY()
  • Lebih tua dari hari ini: =$B2<TODAY()

doc tanggal pemformatan bersyarat 2

3. klik dibentuk untuk pergi ke Format Cells dialog, pilih satu format yang ingin Anda sorot sel sesuai kebutuhan.
doc tanggal pemformatan bersyarat 3

4. klik OK > OK. Tanggalnya telah diformat.

Note: Hari ini adalah 15/8/2018
doc tanggal pemformatan bersyarat 4


Pemformatan bersyarat tanggal yang sudah lewat

Jika Anda ingin pemformatan bersyarat tanggal yang sudah lewat, Anda bisa melakukan hal berikut dalam dialog Aturan Pemformatan Baru.

1. Pilih salah satu dari rumus di bawah ini yang Anda butuhkan, dan ketikkan ke Memformat nilai yang rumus ini benar kolom tulisan.

  • Lebih dari 30 hari yang lalu: =TODAY()-$B2>30
  • Dari 30 hingga 15 hari yang lalu, inklusif: =AND(TODAY()-$B2>=15, TODAY()-$B2<=30)
  • Kurang dari 15 hari yang lalu: =AND(TODAY()-$B2>=1, TODAY()-$B2<15)

2. Lalu klik dibentuk untuk memilih satu format dalam Format Cells dialog.

3. klik OK > OK untuk menutup dialog.

Note: Hari ini adalah 15/8/2018
doc tanggal pemformatan bersyarat 5


Format bersyarat tanggal masa depan

Untuk pemformatan bersyarat tanggal masa depan, Anda dapat melakukan seperti ini:

1. Pilih salah satu dari rumus di bawah ini yang Anda butuhkan, dan ketikkan ke Memformat nilai yang rumus ini benar kolom tulisan.

  • Akan terjadi lebih dari 30 hari dari sekarang: =$B2-TODAY()>30
  • Dalam 30 sampai 15 hari, inklusif: =AND($B2-TODAY()>=15, $B2-TODAY()<=30)
  • Dalam waktu kurang dari 15 hari: =AND($B2-TODAY()>=1, $B2-TODAY()<15)

2. Lalu klik dibentuk untuk memilih satu format dalam Format Cells dialog.

3. klik OK > OK untuk menutup dialog.


Pemformatan bersyarat antara dua tanggal

Untuk pemformatan bersyarat antara dua tanggal, pilih sel dan gunakan rumus ini, =AND($B2>=$D$2,$B2<=$E$2) D2 adalah tanggal mulai, E2 adalah tanggal akhir. Kemudian format sel dengan format yang Anda butuhkan.

doc tanggal pemformatan bersyarat 6
doc tanggal pemformatan bersyarat 7

Pemformatan bersyarat berdasarkan tanggal di kolom lain

Jika Anda ingin memformat sel bersyarat berdasarkan tanggal di kolom lain, Anda bisa melakukan seperti ini.

1. Misalkan Anda ingin menyoroti penjualan di kolom C sedangkan tanggal relatif di kolom B adalah 16/8/2018, silakan pilih kolom C range terlebih dahulu.

2. Aktifkan dialog New Formatting Rule dan ketikkan rumus ini =$B2=DATEVALUE("8/16/2018") ke dalam Memformat nilai yang rumus ini benar kotak teks, lalu format sel dalam format Format Cells dialog.

doc tanggal pemformatan bersyarat 8
doc tanggal pemformatan bersyarat 9

Catatan: Dalam rumus di atas, B2 adalah sel tanggal pertama dari rentang tanggal yang Anda pilih.


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
How can I automatically add a date when a cell contains certain text? So, for example, if cell A1 contains "to do", a date is automatically added in another cell. This date is based on a date also from a cell and I would like to add a date + 65 days in the future. Is this possible?
This comment was minimized by the moderator on the site
Cze艣膰, mierz臋 si臋 z problemem warunkowego pod艣wietlania daty, np.: w kolumnie A mam dat臋 startu danej czynno艣ci np. 01.01.2023, w kolumnie B mam dat臋 ko艅ca danej czynno艣ci np. 07.01.2023 i chodzi艂oby mi o to, 偶eby wyr贸偶ni膰 warunkowo np. kolorem zielonym dat臋 w kolumnie B je偶eli pomi臋dzy dat膮 startu, a dat膮 ko艅ca czynno艣ci up艂yn臋艂o mniej ni偶 7 dni, je偶eli 7 dni i wi臋cej kolorem czerwonym.
This comment was minimized by the moderator on the site
Use two formulas in the conditional formatting dialog:
difference between start date and end date is greater than or equal to 7 days: =B2-A2>=7 format to red
difference between start date and end date is smaller than 7 days: =B2-A2<7 format to green
see screenshot:
https://cdn.extendoffice.com/images/stories/comments/sun-comment/doc-difference-greater-than-7.png
This comment was minimized by the moderator on the site
Cze艣膰, mierz臋 si臋 z problemem warunkowego pod艣wietlania daty, np.: w kolumnie A mam dat臋 startu danej czynno艣ci np. 01.01.2023, w kolumnie B mam dat臋 ko艅ca danej czynno艣ci np. 07.01.2023 i chodzi艂oby mi o to, 偶eby wyr贸偶ni膰 warunkowo np. kolorem zielonym dat臋 w kolumnie B je偶eli pomi臋dzy dat膮 startu, a dat膮 ko艅ca czynno艣ci up艂yn臋艂o mniej ni偶 7 dni, je偶eli 7 dni i wi臋cej kolorem czerwonym.
This comment was minimized by the moderator on the site
Cze艣膰, mierz臋 si臋 z problemem warunkowego pod艣wietlania daty, np.: w kolumnie A mam dat臋 startu danej czynno艣ci np. 01.01.2023, w kolumnie B mam dat臋 ko艅ca danej czynno艣ci np. 07.01.2023 i chodzi艂oby mi o to, 偶eby wyr贸偶ni膰 warunkowo np. kolorem zielonym dat臋 w kolumnie B je偶eli pomi臋dzy dat膮 startu, a dat膮 ko艅ca czynno艣ci up艂yn臋艂o mniej ni偶 7 dni, je偶eli 7 dni i wi臋cej kolorem czerwonym.
This comment was minimized by the moderator on the site
Ciao, come posso utilizzare il conditional formatting per evidenziare il mese corrente e il mese successivo?
This comment was minimized by the moderator on the site
Hi, Michela,
highlight the date in current month, please use formula =TEXT(TODAY(),"m")-TEXT(A1,"m")=0 in conditional formatting new rule dialog, and select a color such as yellow to outstanding the dates.
highlight the date in next month, use formula =TEXT(A1,"m")-TEXT(TODAY(),"m")=1 in conditional formatting new rule dialog, and select a color such as green to outstanding the dates.
see screenshot:
https://cdn.extendoffice.com/images/stories/comments/sun-comment/doc-highlight-current-month.png
This comment was minimized by the moderator on the site
Hello there! I have been searching everywhere for an answer to my problem. I really hope that you can help. I have a column of dates that have taken place in the past. It was when a medical fit test was performed. Those need to be done every two years. What I would like to do is have the dates highlight the box Yellow when they are within being 30 days due, and then Red as soon as they are past due. (So if the date in the box is 1/1/2021, it would turn yellow on 12/1/22. It would then turn red on 1/2/23) These dates are a column in a database so I can't just put a date in a cell to be the reference in the formula. I can only use the cell with the date itself. My brain has melted trying to figure this out, please help. I've gone in Excel formula circles and keep coming up with nothing.

I also have a second column that I need to do the same thing with where it happens on a yearly basis.

Any help will be appreciated. Thank you
This comment was minimized by the moderator on the site
Hi, Kris, create two rules in the conditional formatting dialog:
=AND(0<DATE(YEAR($A1)+2,MONTH($A1),DAY($A1))-TODAY(),DATE(YEAR($A1)+2,MONTH($A1),DAY($A1))-TODAY()<=30) using this formula and choose yellow filled color to mark the within 30 days due
=(DATE(YEAR(A1)+2,MONTH(A1),DAY(A1))<TODAY()) using this formula and choose red filled color to mark the past due
This comment was minimized by the moderator on the site
Hola!

como puedo hacer una formula para que si columna D es igual a la comuna E sea verdadero, pero si columna A + 90 dias es igual al columna E siga siendo verdadero de lo contrario sea falso, gracias.
This comment was minimized by the moderator on the site
Hi, try this formula:=IFERROR(IFS(E2=D2,"TRUE",E2=A2+90,"TRUE"),"""FALSE")
Notice that if you are not in other lagnuage version, maybe you need to transform the formula to your local language.
This comment was minimized by the moderator on the site
ERP PO No. Region Update-1 Supplier PIC Note To Receiver PO Age
1091BPA6438143-121 Bali - Lombok Not Yet Implement PS2MS XL 31
1091BPA6438143-123 Bali - Lombok Not Yet Implement Lumpsum 31
1091BPA6438143-124 Bali - Lombok Not Yet Implement Service Package 31
1091BPA6438143-125 Bali - Lombok Not Yet Implement Battery Maintenance 31
1091BPA6438143-127 Bali - Lombok Not Yet Implement MS Dismantle Board 22

kalau cara conditional formating untuk PO aging Lebih dari 70 gimana ya, tapi di file pivot, karena database saya untuk po aging 70 itu pake rumus =IFERROR(DATEDIF(NOW();B56;"d");""&DATEDIF(B56;NOW();"d")) jadi saat saya conditional formating aging lebih dari 70 dengan warna merah itu tidak ke detack di pivotnya,
mohon bantuannya馃榿
This comment was minimized by the moderator on the site
Bonjour,
je cherche dans GOOGLE SHEET 脿 faire une mise en forme conditionnelle par rapport 脿 une date; je cherche 脿 faire en sorte que quand la date inscrite dans une case d茅passe 15jrs alors elle devienne rouge. (01/08/22 dans la case, quand nous sommes le 16/08/22 je voudrais que la case devienne rouge)

merci d'avance.
This comment was minimized by the moderator on the site
Hi, vex, sorry that I only can reply with English since I do not know French. Supposing you want to format all dates that over 15 days based on a date 7/21/2022, you may firstly, change the date 7/21/2022 to a number, 44763, then select the dates that you want to highlight, click Format > Conditional Formatting, and choose Custom formula is in the Format Rules section, type B2>44763+15, and choose red color. See the screenshot:
https://www.extendoffice.com/images/stories/comments/sun-comment/doc_google_sheet_conditional_formatting.png
Hope can help you.
This comment was minimized by the moderator on the site
Bonjour, j'ai t茅l茅charg茅 un document excel pour la gestion des cong茅s: Shift staff. Je voudrais que certaines dates soient conditionn茅es pour rester inactives chaque ann茅e (il s'agit des cong茅s l茅gaux comme le 1er janvier ou le 15 aout) - actuellement je ne peux conditonner que les jours de la semaine, pas les dates - pouvez-vous m'aider?

Merci beaucoup

Pascale
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