Über diese Übung
Ein Datensatz mit 90 Zeilen auf 2 Tabellenblättern, eine Antwortzelle, etwa 10 Minuten. Bewertet in Ihrem Browser: der Wert und die Formel dahinter, mit Feedback, das die Korrektur benennt.
So lösen Sie die Aufgabe
- Quotes!F2
=XLOOKUP(C2&D2,Prices!$A$2:$A$61&Prices!$B$2:$B$61,Prices!$D$2:$D$61)
C2&D2 glues the product and the region into one text, and Prices!A2:A61&Prices!B2:B61 does the same for every row of the price list at once, producing a temporary array of 60 combined keys. XLOOKUP then finds the combined key in that array and returns the price from the same row — a two-column match without a helper column. SUMIFS reaches the same number another way: it adds every price whose product and region match, and since each pair appears exactly once, the sum is that single price.
Pitfall 1: joined keys can collide — "AB"&"C" equals "A"&"BC"; insert a separator that never appears in the data (C2&"|"&D2 on both sides) when keys are free text. Pitfall 2: SUMIFS silently sums duplicates and returns 0 for a missing pair, where XLOOKUP returns #N/A; use SUMIFS only when uniqueness is guaranteed and 0 is not a plausible price. Pitfall 3: in Excel 2019 and earlier, the array form needs INDEX/MATCH entered with Ctrl+Shift+Enter: =INDEX(Prices!$D$2:$D$61,MATCH(C2&D2,Prices!$A$2:$A$61&Prices!$B$2:$B$61,0)). Alternatives: boolean algebra =XLOOKUP(1,(Prices!$A$2:$A$61=C2)*(Prices!$B$2:$B$61=D2),Prices!$D$2:$D$61) avoids concatenation; =SUMPRODUCT((Prices!$A$2:$A$61=C2)*(Prices!$B$2:$B$61=D2)*Prices!$D$2:$D$61) is the pre-SUMIFS form; FILTER(…) spills every match, useful when pairs are not unique. Performance: array concatenation evaluates the whole price list for every quote row — fine for thousands of rows, slow for hundreds of thousands, where a helper key column on the Prices sheet is the classic fix.
Andere Wege, die funktionieren
- =SUMIFS(Prices!$D$2:$D$61,Prices!$A$2:$A$61,C2,Prices!$B$2:$B$61,D2) — works in every Excel version; relies on each pair being unique
- =XLOOKUP(1,(Prices!$A$2:$A$61=C2)*(Prices!$B$2:$B$61=D2),Prices!$D$2:$D$61) — boolean array instead of concatenation
- =INDEX(Prices!$D$2:$D$61,MATCH(C2&D2,Prices!$A$2:$A$61&Prices!$B$2:$B$61,0)) — INDEX/MATCH array form (Ctrl+Shift+Enter before Excel 365)
- =SUMPRODUCT((Prices!$A$2:$A$61=C2)*(Prices!$B$2:$B$61=D2)*Prices!$D$2:$D$61) — the classic two-criteria formula
Häufige Fehler
Looking up the product only, =XLOOKUP(C2,Prices!$A$2:$A$61,Prices!$D$2:$D$61): it returns the first region listed for that product (North), which is wrong for every quote line in another region — 24 of 30 here.
So bewerten wir
Jede Formel, die das richtige Ergebnis liefert, wird akzeptiert, außer die Aufgabe nennt eine Funktion: Dann bringt eine andere Funktion die halbe Punktzahl. Wir vergleichen Werte mit einer kleinen Toleranz und ignorieren bei Text Groß- und Kleinschreibung sowie Leerzeichen. Eine richtige Zahl, die statt einer Formel von Hand eingetippt wurde, bringt die halbe Punktzahl. Aufgaben mit mehreren Zellen bringen die volle Punktzahl, wenn 100% der Zellen stimmen, und die halbe ab 50%. Wo es darauf ankommt, ändern wir außerdem eine Eingabezelle in einer Kopie Ihrer Tabelle und prüfen, ob Ihre Formel mitzieht.
Antworten nach den Regeln von Excel 365 berechnet und am 16. November 2026 in unserem Bewertungssystem geprüft. Verfasst von GridBelt team.