Vai al contenuto
GridBelt
  • Test Excel
  • Esercizi
  • Programmi
  • Prezzi
Accedi
Inizia il test gratuito
  • Test Excel
  • Esercizi
  • Programmi
  • Prezzi
AccediCrea un account
Inizia il test gratuito
GridBelt

Esercitati con Excel nel tuo browser.

Test Excel

  • Livello 1: Principiante
  • Livello 2: Intermedio
  • Livello 3: Esperto
  • Test Excel in 7 giorni
  • Classifica
  • Test Excel per il colloquio
  • Valutazione Excel di Indeed

Esercizi

  • Tutti gli esercizi
  • Programmi
  • Per principianti

Guide

  • Formule Excel
  • Scorciatoie Excel

Azienda

  • Chi siamo
  • Prezzi
  • Come valutiamo

© GridBelt. Tutti i diritti riservati.

  • Informativa sulla privacy
  • Termini di utilizzo
  • Politica di rimborso

Excel è un marchio di Microsoft Corporation. Indeed, TestGorilla, SHL e gli altri marchi appartengono ai rispettivi proprietari. GridBelt è un sito di esercitazione indipendente e non è affiliato a Microsoft, TestGorilla, SHL o Indeed, né approvato o sponsorizzato da queste società.

  1. Esercizi
  2. /
  3. INDEX and MATCH

INDEX MATCH practice: pull the hourly rate for every timesheet entry

  • Intermedio
  • ~6 min
  • INDEX and MATCH

Testo dell’esercizio in inglese

Payroll receives 100 weekly timesheet entries for October 2026 — four weeks for 25 hourly employees — with the employee ID in column C and the hours in column D. The hourly rates live on the Staff sheet (ID, name, department, hourly rate), in roster order rather than sorted. Pull the rate for every entry with INDEX and MATCH: MATCH finds the position of the ID in the Staff list, INDEX returns the rate at that position.

Cosa devi fare

  1. 1On Timesheet, click E2 and start from the inside: MATCH(C2,Staff!$A$2:$A$26,0) returns the row position of this employee's ID in the Staff list (0 = exact match). Click the Staff tab and select the column; F4 / ⌘T locks it.
  2. 2Wrap it in INDEX: =INDEX(Staff!$D$2:$D$26,MATCH(C2,Staff!$A$2:$A$26,0)) — INDEX returns the cell of the rate column at that position. Press Enter.
  3. 3Fill E2 down to E101. Both Staff ranges must stay locked; only C2 moves.
  4. 4Check that the rate column (D) and the ID column (A) in your formula cover exactly the same rows — INDEX and MATCH count positions, so an offset of one row returns the wrong employee's rate.

Celle di risposta

Correzione

Scrivi la formula nella griglia, premi Enter, poi Verifica. Valutiamo il valore in ogni cella di risposta e la formula che lo produce.

Attività

  1. Non verificatoOn the Timesheet sheet, in E2, use INDEX and MATCH to return the hourly rate (Staff column D) of the employee ID in C2, matching against the Employee ID column of the Staff sheet, then fill down to E101.

Consigliato il computer per le attività sul foglio di calcolo. Il foglio scorre all’interno di questo riquadro.

StartInsertFormulasDataView
A1fxPreparazione della cartella di lavoro…
A
B
C
D
E
F
G
H
I
J
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Sheet1

Inserisci la formula nel foglio, poi verifica.

Informazioni sull’esercizio

Un set di dati di 125 righe su 2 fogli, una cella di risposta, circa 6 minuti. Correzione nel tuo browser: il valore e la formula che lo produce, con indicazioni su cosa sistemare.

Come risolverlo

  • Timesheet!E2=INDEX(Staff!$D$2:$D$26,MATCH(C2,Staff!$A$2:$A$26,0))

MATCH(C2,Staff!A2:A26,0) answers "which row of the ID list holds this ID?" with a position — a 1 for the first employee, 25 for the last — and the 0 insists on an exact match. INDEX(Staff!D2:D26, position) then returns the cell of the rate column at that same position. The two functions split the lookup into "find the row" and "read the column", which is why the rate column can be anywhere — left, right or on another sheet — and why inserting a column in Staff never breaks the formula.

Pitfall 1: the INDEX range and the MATCH range must be aligned — Staff!D1:D26 with Staff!A2:A26 is off by one and returns the previous employee's rate for everyone, with no error to warn you. Pitfall 2: leaving out the 0 in MATCH switches to approximate match; on this unsorted roster that returns wrong positions silently. Pitfall 3: MATCH returns #N/A when the ID is missing; wrap the whole INDEX in IFERROR or IFNA when the timesheet can contain IDs of leavers. INDEX/MATCH vs VLOOKUP: same result as =VLOOKUP(C2,Staff!$A$2:$D$26,4,FALSE) here, but INDEX/MATCH looks left, survives inserted columns, and on big tables a single MATCH can feed several INDEX formulas (rate, department, name) instead of repeating the search. In Excel 365, =XLOOKUP(C2,Staff!$A$2:$A$26,Staff!$D$2:$D$26) is the one-function replacement; INDEX/MATCH remains the form that opens in every Excel version and in most other spreadsheet tools.

Altri metodi validi

  • =INDEX(Staff!$A$2:$D$26,MATCH(C2,Staff!$A$2:$A$26,0),4) — INDEX over the whole table with a column number
  • =IFERROR(INDEX(Staff!$D$2:$D$26,MATCH(C2,Staff!$A$2:$A$26,0)),"Unknown ID") — with a fallback for IDs that are not on the roster
  • =XLOOKUP(C2,Staff!$A$2:$A$26,Staff!$D$2:$D$26) — Excel 365 equivalent (not accepted here: this task practices INDEX and MATCH)

Errori comuni

Swapping the roles: =MATCH(C2,Staff!$D$2:$D$26,0) or =INDEX(Staff!$A$2:$A$26,…) — MATCH must search the column that contains the key (IDs), INDEX must return from the column you want (rates).

Come valutiamo

È accettata qualsiasi formula che produce il risultato giusto, a meno che l’attività non indichi una funzione: in quel caso un’altra funzione vale metà dei punti. Confrontiamo i valori con una piccola tolleranza e ignoriamo maiuscole, minuscole e spazi nel testo. Un numero corretto digitato a mano invece di una formula vale metà dei punti. Le attività su più celle valgono il punteggio pieno con il 100% delle celle giuste, metà dei punti dal 50%. Dove serve, cambiamo anche una cella di input su una copia del tuo foglio e controlliamo che la formula si aggiorni.

Risposte calcolate con le regole di Excel 365 e verificate nel nostro correttore in data 16 novembre 2026. Autore: GridBelt team.

In questi programmi

  • Excel test in 7 days, Piano di livello 2Giorno 2
  • Excel for Data AnalystsGiorno 4
  • Excel for Sales and MarketingGiorno 4

Esercizi correlati

  • Two-way lookup in a matrixEsperto, ~8 min
  • Last order date per customerEsperto, ~10 min
  • Pull the unit price with VLOOKUP (exact match)Principiante, ~5 min
  • Look left: employee ID by emailEsperto, ~6 min

Guida alla funzione

Documentazione ufficiale

Esercizio successivo

Two-way lookup in a matrix