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. IF function

Nested IF practice: commission tiers for 45 sales reps

  • Intermedio
  • ~8 min
  • IF function

Testo dell’esercizio in inglese

Sales operations pays Q3 commission to 45 reps from a four-tier plan: 2% on sales below $50,000, 4% from $50,000, 6% from $100,000 and 8% from $200,000, with the whole quarter paid at the rate of the tier reached. The tier table lives in G1:H5 (sales from, rate) so finance can renegotiate rates without touching formulas. Compute each rep's commission in column E with one formula that reads the table — nested IF, IFS or an approximate-match lookup are all fine.

Cosa devi fare

  1. 1Click E2. The rep's Q3 sales are in D2; the tier thresholds are in G2:G5 and the matching rates in H2:H5.
  2. 2Decide the rate first: test the highest tier before the lower ones — IF(D2>=$G$5,$H$5,IF(D2>=$G$4,$H$4,IF(D2>=$G$3,$H$3,$H$2))) — or use IFS, or VLOOKUP(D2,$G$2:$H$5,2,TRUE) for an approximate match on the ascending thresholds.
  3. 3Multiply the rate by D2 for the commission amount. Lock every reference into the tier table with $ (F4 on Windows, ⌘T on Mac) so it survives the fill.
  4. 4Press Enter and fill E2 down to E46. A rep with exactly $100,000.00 must get 6% and one with exactly $200,000.00 must get 8%. Then click Check (Ctrl+Enter / ⌘+Return).

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 verificatoIn E2, compute the commission — Q3 sales in D2 times the rate of the highest tier reached in the table G2:H5 — with nested IF, IFS or a lookup that reads the table, then fill it down to E46.

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 45 righe su un foglio, una cella di risposta, circa 8 minuti. Correzione nel tuo browser: il valore e la formula che lo produce, con indicazioni su cosa sistemare.

Come risolverlo

  • E2=D2*IF(D2>=$G$5,$H$5,IF(D2>=$G$4,$H$4,IF(D2>=$G$3,$H$3,$H$2)))

A nested IF is a chain of questions: is the figure at least the top threshold? If yes, use the top rate; if not, ask the same about the next tier, and so on, with the lowest rate as the final else. Testing from the top down matters because a $236,400 rep also satisfies the lower tiers — the first test that passes decides. The thresholds and rates come from G2:H5 with absolute references, so one formula filled down prices all 45 reps and still works after finance edits the table.

Pitfall 1: testing from the bottom up with >= (IF(D2>=$G$2,$H$2,…)) always stops at the first tier, because every rep clears $0 — reverse the order or use < from the bottom. Pitfall 2: > instead of >= pays 4% to the rep with exactly $100,000.00; tier plans are written "from", so the boundary belongs to the higher tier. Pitfall 3: typing the thresholds and rates into the formula (IF(D2>=200000,8%,…)) breaks the moment the table changes; the grader edits G5 and H5 and expects the commission to follow. Alternatives: IFS(D2>=$G$5,$H$5,D2>=$G$4,$H$4,D2>=$G$3,$H$3,TRUE,$H$2) is the readable form in Excel 2019 and later; VLOOKUP(D2,$G$2:$H$5,2,TRUE) and XLOOKUP(D2,$G$2:$G$5,$H$2:$H$5,,-1) (365) scale to twenty tiers without nesting, but need the thresholds sorted ascending. Beyond four tiers a lookup is the maintainable choice; nested IF beyond three levels is where audit findings start.

Altri metodi validi

  • =D2*IFS(D2>=$G$5,$H$5,D2>=$G$4,$H$4,D2>=$G$3,$H$3,TRUE,$H$2) — IFS, Excel 2019 and later
  • =D2*VLOOKUP(D2,$G$2:$H$5,2,TRUE) — approximate match on the ascending thresholds
  • =D2*XLOOKUP(D2,$G$2:$G$5,$H$2:$H$5,,-1) — Excel 365; match mode -1 picks the next smaller threshold
  • =D2*IF(D2<$G$3,$H$2,IF(D2<$G$4,$H$3,IF(D2<$G$5,$H$4,$H$5))) — nested IF built from the bottom with <

Errori comuni

Filling the formula down with relative references into the tier table (IF(D2>=G5,H5,…)): E3 then compares against G6 and H6, which are empty, so from row 3 on the commission is wrong or zero. Lock the table as $G$5, $H$5 and so on.

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 3Giorno 3
  • Excel for Data AnalystsGiorno 7
  • Excel for Sales and MarketingGiorno 3

Esercizi correlati

  • Pass or Fail with IFPrincipiante, ~4 min
  • Region names from codes with SWITCH or IFSEsperto, ~8 min
  • Sales by region with SUMIFPrincipiante, ~5 min

Guida alla funzione

Documentazione ufficiale

Esercizio successivo

Region names from codes with SWITCH or IFS