Alamat dan Referensi, Mutlak dan Relatif

Cell references

An individual cell is fully identified by the sheet it belongs, the column identifier (letter) located along the top of the columns and a row identifier (number) found along the left-hand side of the spreadsheet. On spreadsheets read from left to right, the complete reference for the upper left cell of the sheet is Sheet.A1.

Cell ranges

You can reference a set of cells by referencing them in ranges. Ranges can be a block of cells, entire set of columns and entire set of rows. The range A1:B2 is the first four cells in the upper left corner of the sheet. Range A:E contains all the cells of column A, B, C, D and E. Range 2:5 contains all the cells of row 2, 3, 4 and 5.

The reference to a cell of another document contains the fully qualified name of the other document between single quotes ('), then a hash #, then the name of the sheet of the other document, followed by a period and the name or reference of the cell.

For example, .

note

The path and document name URI must always be enclosed in single quotes. If the name contains single quotes (') they must be escaped using two single quotes (''). Only a sheet name may not be quoted if it does not contain a space or a character that would be an operator or the name would be pure numeric (for example, '123' must be quoted).


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

:

Rentang

A1:C108, A:D or 3:13

!

Interseksi

SUM(A1:B6!B5:C12)

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

~

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.


Pengalamatn Relatif

Sel di kolom A, baris 1 dialamatkan sebagai A1. Anda dapat mengatasi berbagai sel yang berdekatan dengan terlebih dahulu memasukkan kordinat sel kiri atas wIlayah tersebut, lalu sebuah usus besar diikuti oleh kordinat sel kanan bawah. Misalnya, kuadrat yang dibentuk oleh empat sel pertama di sudut kiri atas dialamatkan sebagai A1:B2.

Dengan mengatasi suatu wIlayah dengan cara ini, Anda membuat referensi relatif ke A1:B2. Relatif di sini berarti bahwa referensi ke wIlayah ini akan disesuaikan secara otomatis ketika Anda menyalin rumus.

Mengatasi Absolut

Referensi absolut adalah kebalikan dari pengalamatan relatif. Tanda dolar diletakkan sebelum setiap huruf dan angka dalam referensi absolut, sebagai contoh, $A$1:$B$2.

tip

LibreOffice can convert the current reference, in which the cursor is positioned in the input line, from relative to absolute and vice versa by pressing F4. If you start with a relative address such as A1, the first time you press this key combination, both row and column are set to absolute references ($A$1). The second time, only the row (A$1), and the third time, only the column ($A1). If you press the key combination once more, both column and row references are switched back to relative (A1)


LibreOffice Calc menunjukkan referensi ke rumus. Jika, sebagai contoh, Anda mengklik rumus =SUM(A1:C5;D15:D24) dalam sel, dua wIlayah yang direferensikan dalam lembar akan disorot dalam warna. Misalnya, komponen rumus "A1:C5" mungkin berwarna biru dan rentang sel yang dimaksud berbatasan dengan warna biru yang sama. Komponen rumus berikutnya "D15:D24" dapat ditandai dengan warna merah dengan cara yang sama.

Saat Menggunakan Referensi Relatif dan Absolut

Apa yang membedakan referensi relatif? Asumsikan Anda ingin menghitung dalam sel E1 jumlah sel dalam rentang A1:B2. Rumus untuk masuk ke E1 adalah: =SUM(A1:B2). Jika nanti Anda memutuskan untuk memasukkan kolom baru di depan kolom A, elemen yang ingin Anda tambahkan akan berada di B1:C2 dan rumusnya akan di F1, bukan di E1. Setelah memasukkan kolom baru, karena itu Anda harus memeriksa dan memperbaiki semua rumus di lembar, dan mungkin di lembar lainnya.

Untungnya, LibreOffice dapat digunakan untuk Anda. Setelah memasukkan kolom A baru, rumus =SUM(A1:B2) akan secara otomatis diperbarui ke =SUM(B1:C2). Nomor baris juga akan secara otomatis disesuaikan ketika baris 1 baru dimasukkan. Referensi absolut dan relatif selalu disesuaikan dalam LibreOffice Calc setiap kali wIlayah yang direferensikan dipindahkan. Tetapi hati-hati jika Anda menyalin rumus karena dalam kasus itu hanya referensi relatif yang akan disesuaikan, bukan referensi absolut.

Referensi absolut digunakan ketika perhitungan mengacu pada satu sel tertentu di lembar Anda. Jika rumus yang merujuk tepat sel ini disalin relatif ke sel di bawah sel asli, referensi juga akan dipindahkan jika Anda tidak menentukan koordinat sel sebagai absolut.

Selain ketika baris dan kolom baru dimasukkan, referensi juga dapat berubah ketika rumus yang ada yang merujuk ke sel tertentu disalin ke wIlayah lain dari lembar. Asumsikan Anda memasukkan rumus =SUM(A1:A9) di baris 10. Jika Anda ingin menghitung jumlah untuk kolom yang berdekatan di sebelah kanan, cukup salin rumus ini ke sel di sebelah kanan. Salinan rumus di kolom B akan secara otomatis disesuaikan ke =SUM(B1:B9).

Mohon dukung kami!