Site icon libreofficehelp.com

LibreOffice Calc Reference to Another External Sheet or Workbook

When you are working with multiple workbooks or worksheets, it is often needed to refer back or retrieve data from different workbooks into the current workbook. This helps to keep your work modular and less complex. In LibreOffice Calc, you can achieve it using an external reference.

External reference, as its name says, a reference to an external file (workbook) or a cell inside that workbook. And the reference can be of any form with a fully qualified path with folders or servers.

External Reference

There are two types of external reference which you can do it in Calc.

  1. Calc reference to another sheet.
  2. Calc reference to another workbook.

How to reference another sheet in Calc

To reference any cell or range of cells in another worksheet, put dollar “$” followed by sheet name then a dot (.), then the cell address.

$sheet_name.cell_address

For example, to refer to cell C3 in Sheet2, you should use

=$Sheet2.C3

To refer a range of cells in your formula, use the below format.

=$sheet_name.firstcell:lastcell

For example, to refer cells from C3 to E4 in Sheet2, use below.

=$Sheet2.C3:E4

Note

If your sheet name contains spaces or special characters, enclose the sheet name in single quotes (‘). Like below.

=$'Project Plan'.A1:A3

How to reference to another workbook in Calc

To create an external reference to a workbook, use the workbook name followed by “#” and a dollar sign “$”, then sheet name followed by a dot “.” and cell or range address. So, according to this, you can use the below reference format to create an external reference to an open workbook:

workbook_name#$sheet_name.firstcell:lastcell
MainProject.ods#$'Project Plan'.A1:A3

For example, if you want to sum the above range A1:A3, you can use the below formula:

=SUM(MainProject.ods#$'Project Plan'.A1:A3)

Examples and Usage Notes

='file:///home/arindam/price.ods'#$'fruit price'.B2
='file:///D:/price.ods'#$'fruit price'.B2

Drop a comment below if this article helped you or if you have any questions.

Exit mobile version