excel-workbook-cross-sheet-reference
Use when writing formulas in one Excel sheet that reference data in another sheet. Covers syntax, absolute vs relative references, and best practices for multi-sheet lookup formulas.
- License 许可
- MIT
- 最近更新
- 2026-10-02
- Stars
- ★ 92
- Forks
- 7
01 前言 Front Matter
- name
- excel-workbook-cross-sheet-reference
- description
- Use when writing formulas in one Excel sheet that reference data in another sheet. Covers syntax, absolute vs relative references, and best practices for multi-sheet lookup formulas.
03 SKILL.md 正文
Cross-Sheet References in Excel
Basic Syntax
To reference a cell or range in another sheet:
=SheetName!CellReference
Examples:
=Data!A1
=Data!$A$1
=Data!$A$21:$E$40
If the sheet name contains spaces or special characters, wrap in single quotes:
='Source Data'!A1
Using Cross-Sheet References in Lookup Formulas
When using INDEX&MATCH to pull from the "Data" sheet into the "Task" sheet:
=INDEX(Data!$E$21:$I$40,
MATCH($D12, Data!$D$21:$D$40, 0),
MATCH(H$10, Data!$E$20:$I$20, 0))
- All references to the Data sheet get the
Data!prefix - References within the Task sheet (like
$D12andH$10) have no prefix - Mix of locked (
$) and unlocked references allows the formula to be copied across H12:L17
Absolute vs. Relative References When Copying
| Reference Type | Syntax | Behavior when copied |
|---|---|---|
| Fully absolute | $D$12 |
Never moves |
| Row absolute | D$12 |
Column moves, row stays |
| Column absolute | $D12 |
Column stays, row moves |
| Fully relative | D12 |
Both move |
For a 2D fill (e.g., H12:L17):
- Row lookup key (series code, varies by row):
$D12— lock column D, let row move - Column lookup key (year, varies by column):
H$10— lock row 10, let column move - Data arrays on the other sheet: fully absolute
Data!$D$21:$D$40
Practical Checklist
- Enter formula in the top-left cell of the target range (e.g., H12)
- Verify the formula returns the correct value
- Copy the cell, select the full target range (H12:L17), and paste
- Spot-check corner cells (H12, L12, H17, L17) to confirm references shifted correctly
- If results are
#N/A, check that the lookup keys (series codes, years) exactly match the source data format (text vs number, leading/trailing spaces)
Common Errors
#N/A— lookup key not found; check data types (e.g., year stored as text "2020" vs number 2020)#REF!— reference range is wrong size or sheet name is misspelled- Wrong values — mixed-up absolute/relative references; audit with F2 to inspect
04 同仓库更多 Skills
object_counter
Count occurrences of an object in the image using computer vision algorithm.
travel-planning-workflow
Invoke this skill when performing travel planning. It defines a structured workflow for generating itineraries. Following this workflow is essential to ensure the final plan satisfies user requirements.
bundled-dataset-search-tool
invoke this skill when you need to perform database search for travel planning. This skill provides some useful pre-packaged tools to look up accommodations, attractions, cities, driving distance, flights, and restaurants from the bundled dataset.
glm-output
Output-processing guidance for GLM tasks. Especially useful after glm-basics and glm-calibration when you need verifier-matching metrics from output.nc and a final /root/metrics.json.
glm-calibration
Calibration guidance for GLM tasks. Often most effective after glm-basics has clarified the setup; glm-output is the companion skill for exact final metric computation.
glm-basics
A good starting point for GLM calibration tasks. Use to inspect glm3.nml, confirm how GLM runs, and identify the relevant files before moving on to calibration and output evaluation.