Aadressid ja viited, absoluutsed ja suhtelised

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).


Viitetehted

Need tehted tagastavad vastuseks lahtrite vahemiku nulli, ĂŒhe vĂ”i enama lahtriga.

Suurim tĂ€htsusaste on vahemikul, seejĂ€rel ĂŒhisosal ja viimaks ĂŒhendil.

Operaator

Nimi

Example

:

Vahemik

A1:C108, A:D or 3:13

!

Ühisosa

SUM(A1:B6!B5:C12)

Arvutab ĂŒhisosa kĂ”ikide lahtrite summa, kĂ€esolevas nĂ€ites on selleks lahtrite B5 ja B6 summa.

~

Liitmine ehk ĂŒhend

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.


Suhtelised aadressid

Veerus A ja reas 1 asuva lahtri aadress on A1. KĂŒlgnevate lahtrite vahemiku aadressi mÀÀramiseks tuleb esmalt sisestada vahemiku ĂŒlemise vasakpoolse lahtri koordinaadid, seejĂ€rel koolon ja siis alumise parempoolse lahtri koordinaadid. Lehe vasakpoolses ĂŒlemises nurgas esimesest neljast lahtrist moodustuva ruudu aadress nĂ€iteks on A1:B2.

Kui mÀÀrad alale sellisel viisil aadressi, on see suhteline viide vahemikule A1:B2. Suhteline tÀhendab siinkohal seda, et viidet sellele alale reguleeritakse valemite kopeerimisel automaatselt.

Absoluutsed aadressid

Absolute referencing is the opposite of relative addressing. A dollar sign is placed before each letter and number in an absolute reference, for example, $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 shows the references to a formula. If, for example, you click the formula =SUM(A1:C5;D15:D24) in a cell, the two referenced areas in the sheet will be highlighted in color. For example, the formula component "A1:C5" may be in blue and the cell range in question bordered in the same shade of blue. The next formula component "D15:D24" can be marked in red in the same way.

Millal kasutada suhtelisi, millal absoluutseid viiteid

Mis iseloomustab suhtelist viidet? Oletagem, et soovid lahtris E1 arvutada vahemiku A1:B2 lahtrite summat. Lahtrisse E1 tuleks sisestada jĂ€rgmine valem: =SUM(A1:B2). Kui otsustad hiljem lisada veeru A ette uue veeru, jÀÀksid liidetavad elemendid vahemikku B1:C2 ja valem asuks lahtris F1, mitte lahtris E1. PĂ€rast uue veeru lisamist tuleks seetĂ”ttu kĂ”ik sellel lehel (ja vĂ”ib-olla ka muudel lehtedel) asuvad valemid ĂŒle kontrollida ja parandada.

Õnneks teeb LibreOffice selle töö sinu eest Ă€ra. PĂ€rast uue veeru A lisamist vĂ€rskendatakse valemit =SUM(A1:B2) automaatselt nii, et valemiks saab =SUM(B1:C2). Uue rea 1 lisamisel tĂ€psustatakse automaatselt ka reanumbrid. Absoluutsed ja suhtelised viited korrigeeritakse LibreOffice Calc'is iga kord, kui viidatud ala nihutatakse. Valemi kopeerimisel tuleb olla ettevaatlik, kuna sel juhul korrigeeritakse ainult suhtelised viited, mitte aga absoluutviited.

Absoluutviiteid kasutatakse juhul, kui arvutus viitab ĂŒhele kindlale lehel asuvale lahtrile. Kui tĂ€pselt sellele lahtrile viitav valem kopeeritakse suhteliselt algse lahtri all asuvasse lahtrisse, nihutatakse allapoole ka viide, kui lahtrikoordinaate pole mÀÀratletud absoluutsetena.

Lisaks uute ridade ja veergude lisamisele vĂ”ivad viited muutuda ka siis, kui konkreetsele lahtritele viitav olemasolev valem kopeeritakse samal lehel mujale. Oletagem, et sisestasid reas 10 valemi =SUM(A1:A9). Kui soovid arvutada parempoolse kĂŒlgneva veeru summa, kopeeri see valem lihtsalt parempoolsesse lahtrisse. Valemi koopia veerus B korrigeeritakse automaatselt kujule =SUM(B1:B9).

Palun toeta meid!