Linking Spreadsheet Data
This chapter explains how data can be linked between different sheets, spreadsheets, webpages and registered data sources in LibreOffice Calc.
βοΈ NOTES ONLY β’ NO TOP 50 TESTπΊοΈ Chapter Roadmap
- Creating Multiple Sheets
- Inserting a New Sheet
- Moving and Copying Sheets
- Referencing Data from Another Sheet
- Referencing Data using Mouse and Keyboard
- Absolute and Relative References
- Linking Data from Another Spreadsheet
- Hyperlinks
- Relative and Absolute Hyperlinks
- Linking External Data
- Importing Tables from a Webpage
- Linking to Registered Data Sources
- LibreOffice Base Database Link
In a spreadsheet, data may be distributed among different sheets or even different spreadsheet files.
LibreOffice Calc provides features that allow us to create multiple sheets and link data between them.
Linking is useful when information stored at different places needs to be connected or reused.
Chapter Core Idea: Data can be linked within the same spreadsheet, between different spreadsheet files, from webpages and from registered data sources.
A spreadsheet document can contain multiple worksheets.
Different sheets can be used to store different categories of information.
Examples
- Student information in one sheet.
- Marks in another sheet.
- Attendance in another sheet.
- Summary or result in another sheet.
Multiple sheets help organise related information inside one spreadsheet document.
A new sheet can be inserted into a spreadsheet document using the Insert Sheet dialog.
The Insert Sheet dialog can be invoked from the Sheet menu.
Important Options
- Insert a new sheet.
- Specify the number of sheets.
- Give suitable names to sheets.
- Insert sheets from another file.
LibreOffice Calc allows a sheet from another spreadsheet file to be inserted into the current spreadsheet.
From File Option
The From file option in the Insert Sheet dialog allows a sheet to be inserted from another file.
The From file option of the Insert Sheet dialog box allows a sheet to be inserted from another file.
A cell in one sheet can refer to a cell in another sheet of the same spreadsheet document.
This is called creating a reference to another sheet.
The linked value is obtained from the referenced cell. If the value in the original cell changes, the referenced value can also be updated.
A reference to another sheet can be created using the keyboard or mouse.
General Method
- Select the cell where the result/reference is required.
- Type the reference formula or begin entering the required reference.
- Select the required sheet.
- Select the required cell.
- Complete the reference and press Enter.
The main purpose is to create a connection between the current cell and a cell located on another sheet.
LibreOffice Calc uses a specific syntax for referring to a cell located on another sheet.
If the sheet name contains spaces, the sheet name is enclosed in single quotation marks.
Here:
- My Sheet = name of the sheet.
- G5 = cell reference.
Quotation marks are important when the sheet name contains a space.
References in a spreadsheet can behave differently when copied from one location to another.
Relative Reference
A relative reference changes according to the new position when the formula is copied.
Absolute Reference
An absolute reference remains fixed when the formula is copied.
| Reference | Behaviour |
|---|---|
| Relative | Changes according to the new position. |
| Absolute | Remains fixed. |
Relative = moves
Absolute = fixed
LibreOffice Calc also allows data to be linked from a different spreadsheet document.
This is useful when information is stored in separate spreadsheet files but needs to be displayed or used in the current spreadsheet.
Basic Concept
The external spreadsheet can act as the source of the linked information.
When a spreadsheet refers to an external file, the location of the file is important.
A file path identifies the location of a file.
Exam Fact: The path of a file uses forward slashes (/).
Example Structure
The exact path depends on the location of the external spreadsheet file.
A hyperlink provides a way to move from one location to another.
In Calc, a hyperlink can be used to jump to a different spreadsheet from the current spreadsheet.
The feature used to jump to another spreadsheet from the current spreadsheet is Hyperlink.
A relative hyperlink stores the location of a file with respect to the current location.
β
Location with respect to current location
A relative hyperlink stores the location with respect to the current location.
An absolute hyperlink stores the complete location of the target.
Unlike a relative hyperlink, it does not depend on the current location.
| Type | Meaning |
|---|---|
| Relative Hyperlink | Stores location with respect to the current location. |
| Absolute Hyperlink | Stores the complete location of the target. |
LibreOffice Calc provides a feature for obtaining data from an external source.
External data may be obtained from sources such as a webpage.
The imported information can then be inserted into the spreadsheet.
Key Idea: External data means data that comes from outside the current spreadsheet document.
Calc can insert a table from a webpage into a spreadsheet.
Basic Procedure
- Open the required external-data/import feature.
- Type the URL of the source document.
- If the URL is already listed, select it from the drop-down list.
- Press Enter.
- A dialog box appears for selecting the language for import.
- Select the appropriate language option.
- Choose the required table/range from Available Tables/Ranges.
- Insert the selected table into the spreadsheet.
When importing data from a webpage, Automatic language selection shows the data in the same language as the webpage.
After connecting to a webpage, Calc displays available tables or ranges from the webpage.
The required table can be selected from the Available Tables/Ranges list.
HTML_all
HTML_all selects the entire HTML document.
While inserting tables from a webpage, HTML_all selects the entire HTML document.
Instead of selecting the complete webpage, a specific table can be selected from the Available Tables/Ranges list.
For example, if a webpage contains several HTML tables, a particular table such as HTML_10 can be selected.
β
Available Tables / Ranges
β
Required HTML Table
β
Calc Spreadsheet
LibreOffice Calc can link spreadsheet documents with databases and other data sources.
The data source must be registered with LibreOffice before it can be used in this manner.
Meaning of Registration
Registration informs LibreOffice about:
- The type of data source.
- The location of the data source/file.
The chapter restricts its discussion of registered data sources to LibreOffice Base.
LibreOffice Base is used as the database source for the example of registered data sources.
The extension of a LibreOffice Base database is .odb.
To register a database in LibreOffice, the chapter gives the following procedure.
- Select Tools β Options.
- Select LibreOffice Base β Databases.
- The Options β LibreOffice Base-Databases dialog box appears.
- Click the New button.
- The Create Database Link dialog box opens.
Tools β Options β LibreOffice Base β Databases
| Linking Method | Purpose |
|---|---|
| Reference to another sheet | Connect cells/data between sheets of the same spreadsheet. |
| Reference to another spreadsheet | Use data from a different spreadsheet document. |
| Hyperlink | Jump to another spreadsheet/location. |
| External data | Import data from an external source such as a webpage. |
| Registered data source | Link Calc with a registered database/data source. |
- The chapter is Linking Spreadsheet Data.
- The Insert Sheet dialog is invoked from the Sheet menu.
- From file allows insertion of a sheet from another file.
- A cell can refer to a cell on another sheet.
- Sheet names containing spaces are enclosed in single quotation marks.
- Hyperlink is used to jump to a different spreadsheet.
- A relative hyperlink stores location with respect to the current location.
- A file path uses forward slashes.
- While importing webpage data, HTML_all selects the entire HTML document.
- Automatic language selection displays webpage data in the same language as the webpage.
- Calc can link with registered databases and other data sources.
- A data source must be registered with LibreOffice.
- The chapter uses LibreOffice Base as the registered database example.
- LibreOffice Base database extension is .odb.
- Database registration uses Tools β Options β LibreOffice Base β Databases .
| Term | Exam-Oriented Meaning |
|---|---|
| Reference | Connection to a cell or data located elsewhere. |
| Hyperlink | Used to jump to another spreadsheet/location. |
| Relative Hyperlink | Location stored with respect to current location. |
| External Data | Data obtained from outside the current spreadsheet. |
| HTML_all | Selects the entire HTML document. |
| Available Tables/Ranges | List from which required webpage table/range can be selected. |
| Registered Data Source | Data source registered with LibreOffice. |
| .odb | Extension of LibreOffice Base database. |
| Relative Hyperlink | Absolute Hyperlink |
|---|---|
| Stores location with respect to the current location. | Stores the complete location of the target. |
| Depends on the current location. | Does not depend on the current location. |
| Reference within Sheet | Reference to Another Sheet |
|---|---|
| Refers to a cell in the same sheet. | Refers to a cell located on another sheet. |
β References between Sheets
β References between Spreadsheets
β Hyperlinks
β External Data
β Webpage Tables
β Registered Data Sources
β LibreOffice Base Database
β‘ CHAPTER 6 β RPAID REVISION
- Chapter: Linking Spreadsheet Data
- Insert Sheet: invoked from the Sheet menu.
- From file: inserts a sheet from another file.
- Reference: connects a cell with data located elsewhere.
- Sheet name with space: enclosed in single quotation marks.
- Hyperlink: used to jump to another spreadsheet/location.
- Relative hyperlink: location with respect to current location.
- File path: uses forward slashes `/`.
- Webpage import: URL β language β Available Tables/Ranges.
- Automatic language: displays webpage data in its same language.
- HTML_all: selects the entire HTML document.
- Specific HTML table: can be selected from Available Tables/Ranges.
- Registered data source: must be registered with LibreOffice.
- LibreOffice Base: database used in the chapter's registered-data-source example.
- Base extension: `.odb`
- Register database: Tools β Options β LibreOffice Base β Databases
- New: opens the Create Database Link dialog.