Keep a lookup tied to its column header

A courier stores delivery charges in Canadian dollars per parcel. Initially, cells A1:D4 contain this table; the left column below identifies worksheet row numbers.


Row

A

B

C

D

1

Depot

Small

Medium

Large

2

Harbour

8

12

18

3

Summit

10

15

22

4

Valley

9

14

20


G2 contains Summit and H2 contains Medium. The analyst compares two Excel formulas:

  • Header-based formula: =INDEX(B2:D4,MATCH(G2,A2:A4,0),MATCH(H2,B1:D1,0))
  • Fixed-column formula: =INDEX(B2:D4,MATCH(G2,A2:A4,0),2)

Later, an import overwrites A1:D4 with the table below. Cell addresses, G2, H2 and both formulas remain unchanged; no worksheet columns are inserted or moved.


Row

A

B

C

D

1

Depot

Large

Small

Medium

2

Harbour

18

8

12

3

Summit

22

10

15

4

Valley

20

9

14


Find the header-based result before the import, the header-based result after the import and the fixed-column result after the import. Enter each charge in CAD per parcel, to zero decimal places.

Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Lookup Functions (VLOOKUP, XLOOKUP, INDEX, MATCH) Questions: