XLOOKUP: Multiple criteria but one criteria is a value and may not be an exact match

cheewah0

New Member
Joined
Jan 16, 2025
Messages
1
Office Version
  1. 365
  2. 2024
Platform
  1. Windows
  2. MacOS
Hi everyone,

I need help solving a query where I am looking for prices of a database (internet bandwidth prices) but the bandwidth may not be an exact match.

So the lookup criteria is:
a. Product: [Exact match] DIA or BB
b. Country: [Exact match] In my example I am looking up United Kingdom
c. City: [Exact match] In my example I am looking up London
d. Download speed: [Can be exact or not exact match] In my example, I can solve this issue if I am looking up an exact match of 100Mbps


My question is what is the formula if I wanted to find 150 instead of 100. As there is no 150, I need it to return the price of the next larger alternative which in this case is 200Mbps for €500. I have used XLOOKUP with matchmode of 1 for larger return but I don't even know how to split this data as the search has to be narrowed to Product, Country and City.

Many thanks in advance! 1737005422167.png
1737005422167.png
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Welcome to the Forum!

How about something like this?

ABCDEFGH
1
2DIAUnited KingdomLondon10$270Lookup
3DIA
4United Kingdom
5DIAUnited KingdomLondon20$427London
6150
7
8DIAUnited KingdomLondon100$500Result
9$650
10DIAUnited KingdomLondon500$800
11In more detail ..
12SpeedPrice
13DIAUnited KingdomLondon200$650200$650
Sheet1
Cell Formulas
RangeFormula
G9G9=IFERROR(TAKE(SORT(FILTER(D2:E13,(A2:A13=G3)*(B2:B13=G4)*(C2:C13=G5)*D2:D13>=G6),1),1,-1),"n/a")
G13:H13G13=IFERROR(TAKE(SORT(FILTER(D2:E13,(A2:A13=G3)*(B2:B13=G4)*(C2:C13=G5)*D2:D13>=G6),1),1),"n/a")
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,225,624
Messages
6,186,068
Members
453,336
Latest member
Excelnoob223

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top