so I have 2 sheets in Excel named Sheet1 and Sheet2. The table structure simply like below:
Sheet1
Sheet2
I want to find 3 nearest location from Sheet1 to Sheet2. Example of expected output should be:
I already tried =LOOKUP(1,1/FREQUENCY(0,MMULT((Sheet2!B$2:C$5-Sheet1!B2:C2)^2,{1;1})), Sheet2!A$2:A$5)
but it only gave me 1 nearest location only.
Excel version: Excel 365
Thanks in advance!