Operator di LibreOffice Calc

Anda dapat menggunakan operator berikut di LibreOffice Calc:

Operator Aritmatika

Operator ini menghasilkan nilai numerik.

Operator

Nama

Contoh

+ (Tambah)

Menambah

1+1

- (Kurang)

Mengurang

2-1

- (Kurang)

Menegatifkan

-5

* (asterik)

Mengali

2*2

/ (garis miring)

Membagi

9/3

% (Persen)

Persen

15%

^ (tanda sisipan)

Eksponensiasi

3^2


note

Prefix "-" (negation) has a higher precedence than "^" (exponentiation). For example -3^2 equals 9, which is the square of a negative number.


Operator komparatif

Operator ini menghasilkan nilai benar atau salah.

Operator

Nama

Contoh

= (sama dengan)

Sama dengan

A1=B1

> (lebih besar)

Lebih besar

A1>B1

< (lebih kecil)

Lebih kecil

A1<B1

>= (lebih besar atau sama dengan)

Lebih besar atau sama dengan

A1>=B1

<= (Lebih kecil atau sama dengan)

Lebih kecil atau sama dengan

A1<=B1

<> (tidak sama dengan)

Tidak sama dengan

A1<>B1


Operator teks

Operator ini menggabungkan teks-teks terpisah menjadi satu.

Operator

Nama

Contoh

& (dan)

penjalinan teks AND

"Sun" & "day" adalah "Sunday"


Operator referensi

Operator ini mengembalikan rentang sel nol, satu, atau lebih banyak sel.

Rentang memiliki prioritas tertinggi, kemudian perpotongan, dan akhirnya gabungan.

Operator

Nama

Contoh

: (titik dua)

Rentang

A1:C108, A:D or 3:13

! (tanda seru)

Interseksi

SUM(A1:B6!B5:C12)

Menghitung jumlah semua sel di persimpangan; dalam contoh ini, hasilnya menghasilkan jumlah sel B5 dan B6.

~ (Tilde)

Union

Takes two references and returns a reference list, which is a concatenation of the left reference followed by the right reference. Double entries are referenced twice.

=COUNT(A1:B2~B2:C3) counts values of A1:B2 and B2:C3. Note that the cell B2 is counted twice.

=INDEX(A1:B2~C1:D2;2;1;2) selects cell C2, that is, the first cell of the second row, first column, of the second range (C1:D2) of the range list.


note

A reference list is not allowed inside an array expression.