Published by Patrick Mutisya · 14 days ago
Be able to use external data sources within spreadsheet functions.
An external data source is any set of data that resides outside the current worksheet or workbook. It can be another worksheet, another workbook, a text file, a database, or data retrieved from the web. Functions can refer to these sources to perform calculations without manually copying the data.
SUM, VLOOKUP).| Function | Purpose | Example Using External Data |
|---|---|---|
| SUM | Add numbers | \$\text{=SUM([Budget.xlsx]Annual!B2:B12)}\$ |
| VLOOKUP | Find a value in a table | \$\text{=VLOOKUP(A2, [Products.csv]Sheet1!\$A\$1:\$D\$100, 3, FALSE)}\$ |
| A \cdot ERAGEIF | Average with criteria | \$\text{=A \cdot ERAGEIF([Sales.db]Orders!C:C, ">=2024-01-01", [Sales.db]Orders!D:D)}\$ |
| GETPI \cdot OTDATA | Extract data from a pivot table | \$\text{=GETPI \cdot OTDATA("Total Sales", '[Report.xlsx]Pivot'!\$A\$3)}\$ |
| WEBSER \cdot ICE | Retrieve data from a URL | \$\text{=WEBSER \cdot ICE("https://example.com/api/sales?year=2024")}\$ |
=SUM(.[Budget.xlsx]Annual!\$B\$2:\$B\$12.=A \cdot ERAGE(A2:A100).#REF!, ensure the source file is open or the path is correct.| Error | Cause | Solution |
|---|---|---|
| #REF! | Source workbook is closed, moved, or renamed. | Open the workbook or update the reference path. |
| #VALUE! | Incompatible data type (e.g., text in a numeric range). | Clean the source data or wrap the reference in VALUE(). |
| #NAME? | Misspelled function name or missing add‑in for web queries. | Check spelling and enable any required add‑ins. |
Sales2023.xlsx and Targets.xlsx. Use SUM in Targets.xlsx to total the sales figures from Sales2023.xlsx.Employees.csv and use VLOOKUP to retrieve each employee’s department based on their ID.Inventory.accdb and calculate the average stock level for a chosen product category using A \cdot ERAGEIF.WEBSER \cdot ICE function to fetch the current exchange rate from a public API and convert a list of prices from USD to EUR.External data sources greatly enhance the capability of spreadsheets by providing up‑to‑date information, reducing duplication, and enabling sophisticated analysis. Mastery of referencing external ranges, importing data, and handling common errors is essential for success in the IGCSE ICT examination.