Fungsi Add-in

Berikut ini menjelaskan dan mencantumkan beberapa fungsi add-in yang tersedia.

Konsep Tambahan

Anda juga akan menemukanketerangan antarmuka menambahkan LibreOffice Calc dalam Bantuan. Selain itu, fungsi penting dan parameternya dijelaskan dalam Bantuan untuk

Add-in

LibreOffice memiliki contoh untuk antarmuka tambahan bagi LibreOffice Calc.

Fungsi Analisis Bagian Satu

Fungsi Analisis Bagian Dua

DAYSINMONTH

Menghitung jumlah hari dalam bulan di mana tanggal yang dimasukkan terjadi.

Sintaksis

DAYSINMONTH(Tanggal)

Tanggal adalah tanggal pada bulan masing-masing tahun yang diinginkan. Parameter Tanggal harus tanggal yang valid sesuai dengan pengaturan lokal LibreOffice.

Contoh

=DAYSINMONTH (A1) mengembalikan 29 hari jika A1 berisi 1968-02-17, tanggal yang valid untuk Februari 1968.

Technical information

This function is not part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

ORG.OPENOFFICE.DAYSINMONTH

tip

DAYSINYEAR

Menghitung jumlah hari dalam setahun di mana tanggal yang dimasukkan terjadi.

Sintaksis

DAYSINYEAR(Tanggal)

Tanggal adalah tanggal pada tahun yang bersangkutan. Parameter Tanggal harus tanggal yang valid sesuai dengan pengaturan lokal LibreOffice.

Contoh

= DAYSINYEAR (A1) mengembalikan 366 hari jika A1 berisi 1968-02-29, tanggal yang valid untuk tahun 1968.

Technical information

This function is not part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

ORG.OPENOFFICE.DAYSINYEAR

tip

ISLEAPYEAR

Menentukan apakah tahun adalah tahun kabisat.Jika ya, fungsi akan mengembalikan nilai 1 (BENAR); jika tidak, itu akan mengembalikan 0 (SALAH).

Sintaksis

ISLEAPYEAR

Tanggal menentukan apakah tanggal tertentu jatuh dalam satu tahun kabisat. Parameter Tanggal harus tanggal yang valid.

warning

Microsoft Excel wrongly assumes year 1900 to be a leap year and considers the inexistent day of 1900-02-29 as valid in date calculations. Dates prior to 1900-03-01 are therefore different in Excel and Calc.


Contoh

=ISLEAPYEAR(A1) mengembalikan 1, jika A1 berisi 1968-02-29, tanggal yang berlaku 29 Februari 1968 di pengaturan lokal Anda.

Anda juga dapat menggunakan =ISLEAPYEAR (DATE (1968; 2; 29)) atau =ISLEAPYEAR ("1968-02-29") memberikan string tanggal dalam notasi ISO 8601.

Jangan pernah gunakan = ISLEAPYEAR (29/2/68), karena ini akan mengevaluasi 2 dibagi 29 dibagi dengan 68, dan kemudian menghitung fungsi ISLEAPYEAR dari angka kecil ini sebagai nomor tanggal seri.

Technical information

This function is not part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

ORG.OPENOFFICE.ISLEAPYEAR

tip

MONTHS

Menghitung perbedaan dua hari dalam bulan.

Sintaksis

BULAN (Tanggal Mulai; Akhir Tanggal; Jenis)

StartDate adalah tanggal pertama

EndDate adalah tanggal kedua

Tipe menghitung jenis perbedaan. Nilai yang mungkin termasuk 0 (interval) dan 1 (dalam bulan kalender).

Technical information

This function is not part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

ORG.OPENOFFICE.MONTHS

tip

ROT13

Mengenkripsi string karakter dengan menggerakkan posisi 13 karakter dalam alfabet. Setelah huruf Z, alfabet dimulai lagi (Rotasi). Dengan menerapkan fungsi enkripsi lagi ke kode yang dihasilkan, Anda dapat mendekripsi teks.

Sintaksis

ROT13(Teks)

Teks adalah string karakter yang akan dienkripsi. ROT13 (ROT13 (Teks)) mendekripsi kode.

Contoh

=ROT13("Gur Qbphzrag Sbhaqngvba jnf sbhaqrq va Frcgrzore 2010.") returns the string "The Document Foundation was founded in September 2010.". Notice how spaces, digits, and full stops are unaffected by ROT13.

Technical information

This function is not part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

ORG.OPENOFFICE.ROT13

tip

Refer to the ROT13 wiki page for more details about this function.


WEEKS

Menghitung selisih pekan antara dua tanggal.

Sintaksis

WEEKS (Tanggal Mulai; Akhir Tanggal; Jenis)

StartDate is the start date in the interval.

EndDate is the end date in the interval. The end date must be greater than the start date, or else an error is returned.

Type specifies the type of difference to be calculated. Possible values are 0 (time interval) or 1 (calendar weeks).

If Type = 0 the function will assume that 7 days is equivalent to one week without considering any specific day to mark the beginning of a week.

If Type = 1 the function will consider Monday to be the first day of the week. Therefore, except for the start date, each occurrence of a Monday in the interval is counted as an additional week.

note

This function considers Monday to be the first day of the week regardless of the current locale settings.


Contoh

In the following examples, dates are passed as strings. However, they can also be stored in separate cells and be passed as references.

=WEEKS("01/12/2022","01/17/2022",0) returns 0 because Type was set to 0 and there are only 5 days in the interval.

=WEEKS("01/12/2022","01/19/2022",0) returns 1 because Type was set to 0 and there are 7 days in the interval.

=WEEKS("01/12/2022","01/17/2022",1) returns 1 because Type was set to 1 and the interval contains a Monday, since 01/12/2022 is a Wednesday and 01/17/2022 is a Monday.

=WEEKS("01/10/2022","01/15/2022",1) returns 0 because Type was set to 1 and the interval does not contain any Mondays, except for the start date.

Technical information

This function is not part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

ORG.OPENOFFICE.WEEKS

tip

WEEKSINYEAR

Menghitung jumlah pekan dari tahun di mana tanggal yang dimasukkan terjadi.Jumlah pekan didefinisikan sebagai berikut: satu pekan yang mencakup dua tahun ditambahkan ke tahun di mana sebagian besar hari dalam pekan tersebut terjadi.

Sintaksis

WEEKSINYEAR(Tanggal)

Tanggal adalah tanggal pada tahun yang bersangkutan. Parameter Tanggal harus tanggal yang valid sesuai dengan pengaturan lokal LibreOffice.

Contoh

WEEKSINYEAR (A1) mengembalikan 53 jika A1 berisi 1970-02-17, tanggal yang valid untuk tahun 1970.

Technical information

This function is not part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

ORG.OPENOFFICE.WEEKSINYEAR

tip

YEARS

Menghitung perbedaan tahun pada dua tanggal.

Sintaksis

TAHUN(Tanggal Mulai; Akhir Tanggal; Jenis)

StartDate adalah tanggal pertama

EndDate adalah tanggal kedua

Tipe menghitung jenis perbedaan. Nilai yang mungkin adalah 0 (interval) dan 1 (dalam tahun kalender).

Technical information

This function is not part of the Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format standard. The name space is

ORG.OPENOFFICE.YEARS

tip

Tambahan melalui API LibreOffice

Add-ins can also be implemented through the LibreOffice API.

Mohon dukung kami!