ID EN
#Date and time

MONTH

Excel Functions 🇮🇩 Bahasa Indonesia

Dapatkan bulan sebagai angka (1-12) dari suatu tanggal

Syntax

EXCEL
=MONTH(date)

Arguments

Parameter Deskripsi
date A valid Excel date.

Return Value

Angka antara 1 dan 12.

Details

Fungsi MONTH mengekstrak bulan dari tanggal tertentu sebagai angka antara 1 dan 12. Misalnya, jika diberi tanggal "12 Juni 2021", fungsi MONTH mengembalikan 6 untuk bulan Juni. MONTH hanya membutuhkan satu argumen, serial_number, yang harus berupa tanggal Excel yang valid. Fungsi MONTH mengembalikan angka. Jika Anda memerlukan nama bulan, gunakan fungsi TEXT seperti gambar di bawah ini. Fungsi MONTH "direset" setiap 12 bulan (seperti kalender atau jam). Untuk bekerja dengan durasi bulan lebih besar dari 12, gunakan rumus untuk menghitung bulan antar tanggal. MONTH hanya membutuhkan satu argumen, yang harus berupa tanggal valid atau nilai teks yang bisa dikonversi Excel menjadi tanggal. Dengan tanggal 15 Maret 2026 di sel A1, semua rumus ini akan menghasilkan 3: Tanggal dapat diberikan ke fungsi MONTH sebagai teks (misalnya, "13-Agustus-2021") atau sebagai Excel asli

Contoh

Basic usage

MONTH takes just one argument, which must be a valid date or a text value that Excel can convert into a date. With the date March 15, 2026 in cell A1,

EXCEL
=MONTH(A1) // returns 3
=MONTH("15-Mar-2026") // returns 3
=MONTH(DATE(2026,3,15)) // returns 3
Get month from date

In the worksheet below, the goal is to extract the month number from dates. The formula in C5 is:

EXCEL
=MONTH(B5)
Get month name from date

One thing that confuses new users to Excel is how to get the month name with the MONTH function. Short answer: you can't. The MONTH function returns a

EXCEL
=TEXT(B5,"mmmm")
Get quarter from date

The MONTH function can be combined with the ROUNDUP function to calculate the quarter (1, 2, 3, or 4) for any date. In the worksheet below, the goal i

EXCEL
=ROUNDUP(MONTH(B5)/3,0)
Get quarter from date

This formula works by dividing the month number by 3, then rounding up to the nearest integer. For example, January is month 1, and 1/3 = 0.33, which

EXCEL
="Q"&ROUNDUP(MONTH(B5)/3,0)
Get last day of month

The easiest way to get the last day of a month is with the EOMONTH function. However, you can also use MONTH with DATE to achieve the same result. In

EXCEL
=DATE(YEAR(B5),MONTH(B5)+1,0)

See Also

YEAR DAY DATE EOMONTH