A price that depends on the number of guests is an approximate lookup. With VLOOKUP, the rate table must be sorted in ascending order. XLOOKUP removes this limit: its 5th argument looks for the next smaller or the next larger value, whatever the order of the table. Here, one rate table is in descending order and the other in ascending order (see the XLOOKUP tutorial).
The following exercise shows you how to price a full wedding with two rate tables searched in different directions.
What you will practice in this exercise
You work on a caterer rate table and a venue rate table. You answer 5 questions, one formula per question:
- Caterer price per guest for 120 guests (XLOOKUP, descending table, 5th argument -1)
- Venue price per guest for 120 guests (XLOOKUP, ascending table, 5th argument 1)
- Total caterer cost (guests × price)
- Total venue cost (guests × price)
- Total wedding budget (caterer + venue)
Practice with exercises
XLOOKUP reverse search — Wedding quote
Price a full wedding quote with two price scales searched in reverse order.
Related articles
All the exercises in this series are based on real cases found on Excel forums. Each one answers a question that Excel users really ask.