Excel Advanced - Advanced Excel Tasks

Lesson 07: Advanced Excel Tasks
0 of 10 activities completed
Microsoft Excel Advanced · Lesson 07

Advanced Excel Tasks

Combine arrays, lookups, logical tests, workbook links, consolidation and navigation tools to solve multi-step spreadsheet tasks reliably.

165-minute lessonMixed Excel versions10 guided activitiesRM6,366 control total

Learning outcomes

Calculate with arraysEvaluate several row-level multiplications in one formula.
Retrieve related dataUse VLOOKUP, HLOOKUP, XLOOKUP and INDEX/MATCH safely.
Apply business logicCombine IF, AND, OR and IFERROR for dependable classifications.
Connect workbooksLink, consolidate, navigate and collaborate without losing control.

Download the practice workbook

The embedded data includes five transactions, product and employee lookup tables, a horizontal quarterly-rate table and four regional sheets with identical layouts.

5transactions
RM6,366revenue total
4regional sheets
RM175,400consolidated sales
Recommended workflow: download the workbook, save a working copy and preserve the Products and Employees sheets as lookup sources. Formula examples use commas; replace them with semicolons if required by your regional settings.

1. Array calculations

ACTIVITY 1

Calculate total Revenue in one formula

On Transactions, Quantity is in D2:D6 and the retrieved Unit Price will be in G2:G6.

=SUM(D2:D6*G2:G6)
  1. Microsoft 365: confirm with Enter.
  2. Older Excel: confirm with Ctrl+Shift+Enter; Excel may display braces around the formula.
  3. Do not type the braces manually.

Expected total: RM6,366.00.

ACTIVITY 2

Use the compatible SUMPRODUCT alternative

=SUMPRODUCT(D2:D6,G2:G6)

SUMPRODUCT handles corresponding arrays without Ctrl+Shift+Enter and is often the safest mixed-version option.

2. Exact-match vertical lookups

ACTIVITY 3

Retrieve Unit Price with VLOOKUP

In G2, search the Product ID from B2 in the Products table and return its fourth column.

=IFERROR(VLOOKUP(B2,Products!$A$2:$E$6,4,FALSE),"Not found")
  1. Lock the lookup table with absolute references.
  2. Use FALSE for exact matching.
  3. Fill the formula down to G6.

Retrieved prices: RM125, RM720, RM480, RM820 and RM838.

ACTIVITY 4

Retrieve employee Rating

=IFERROR(VLOOKUP(C2,Employees!$A$2:$E$6,4,FALSE),0)

The lookup returns the fourth column—Rating—from the Employees table. IFERROR prevents a missing ID from breaking downstream logic, but investigate unexpected zeros.

3. Modern and flexible lookups

ACTIVITY 5

Return Product Name with INDEX/MATCH

=IFERROR(INDEX(Products!$B$2:$B$6,MATCH(B2,Products!$A$2:$A$6,0)),"Not found")

MATCH finds the row position; INDEX returns the value from the Product Name column. The return column can sit left or right of the lookup column.

Microsoft 365 XLOOKUP equivalent
=XLOOKUP(B2,Products!$A$2:$A$6,Products!$B$2:$B$6,"Not found")

XLOOKUP uses separate lookup and return arrays and defaults to exact matching.

ACTIVITY 6

Use HLOOKUP for a horizontal table

On Bonus Matrix, quarter names run across the first row and bonus rates across the second.

=HLOOKUP("Q3",'Bonus Matrix'!$A$1:$E$2,2,FALSE)

Expected Q3 rate: 4%. HLOOKUP searches across the top row; VLOOKUP searches down the first column.

4. Nested logical classification

ACTIVITY 7

Classify each transaction

After calculating Revenue in H and retrieving Rating in I, enter:

=IF(AND(H2>=1000,I2>=4),"Priority",IF(OR(H2>=750,I2>=4.5),"Review","Standard"))

Excel tests Priority first. Only records that fail the first test proceed to Review, then Standard.

ResultRule
PriorityRevenue ≥ RM1,000 AND Rating ≥ 4
ReviewRevenue ≥ RM750 OR Rating ≥ 4.5
StandardNeither rule is satisfied

5. Links and three-dimensional references

ACTIVITY 8

Link cells across sheets and workbooks

  • Same workbook: ='Central'!B5
  • Another workbook: ='[Quarterly Sales.xlsx]Summary'!$B$5
  • Adjacent sheets with the same layout: =SUM(Central:Eastern!B5)

Create a separate quarterly workbook, save it, then link its total into the working file. Close and reopen both files to inspect the external-link behaviour.

Control risk: external links depend on the source location. Use Data → Queries & Connections or Edit Links, where available, to inspect, update or change sources. Never break a link until you have preserved the required values.

6. Consolidate regional sheets

ACTIVITY 9

Consolidate by position or category

  1. Confirm Central, Northern, Southern and Eastern use identical Month, Sales and Profit layouts.
  2. Create a sheet named Consolidated.
  3. Choose Data → Consolidate and select Sum.
  4. Add each regional range.
  5. For identical positions, leave labels unticked; for category consolidation, use Top row and Left column labels.
  6. Optionally create links to source data.

Expected totals: Sales RM175,400 and Profit RM52,400.

Scalable Microsoft 365 alternative

Power Query Append is usually more maintainable when files or periods grow. Import each table, append the queries and load the combined result.

7. Hyperlinks and collaboration

ACTIVITY 10

Create navigation and choose a sharing method

  1. On Start Here, insert a link to cell A1 on Transactions.
  2. Add links to Products, Employees and Consolidated.
  3. Add a web link to https://support.microsoft.com/excel.
  4. Edit display text so each link describes its destination.
  5. Compare legacy Shared Workbook/Track Changes with modern OneDrive or SharePoint co-authoring, Show Changes and Version History.
Version note: legacy sharing is hidden or deprecated in newer Excel. Do not enable it on the master exercise file. Prefer modern co-authoring where available.

Troubleshooting

#N/A lookup
Check the key, spaces, data type, locked range and FALSE exact-match argument.
#NAME? from XLOOKUP
Use VLOOKUP or INDEX/MATCH in an older Excel version.
Array result differs
Legacy Excel may require Ctrl+Shift+Enter; use SUMPRODUCT for broad compatibility.
Consolidation misses data
Confirm source ranges, labels and layouts before consolidating.

Knowledge check

1. Why use FALSE in VLOOKUP?

FALSE requires an exact key match. Approximate matching can return the wrong record when the first column is not properly sorted.

2. Why can INDEX/MATCH be more flexible?

The lookup and return ranges are independent, so the return column need not be to the right of the key.

3. What does IFERROR solve—and what can it hide?

It replaces errors with a controlled result, but may conceal bad keys or damaged ranges if used without checking the cause.

4. When is consolidation by position appropriate?

When every source sheet has the same layout and corresponding values occupy the same cells.

Completion checklist

  • Five Revenue values: RM750 / RM2,160 / RM960 / RM820 / RM1,676
  • Total Revenue: RM6,366
  • Q3 bonus rate: 4%
  • Consolidated Sales: RM175,400
  • Consolidated Profit: RM52,400
  • Navigation links: Transactions, Products, Employees and Consolidated

Next lesson: rearrange the same dataset into analytical views using PivotTables, slicers and timelines.

Lesson 07 · Advanced Excel Tasks · Excel Advanced