An impossible Index match closest nth value multiple criteria

stevenhill__

New Member
Joined
Mar 17, 2022
Messages
1
Office Version
  1. 365
Platform
  1. MacOS
Hi - Struggling for a solution having looked through a ton of threads and websites on what I would've imagined wouldn't be too challenging.

I want to be able to create a benchmarking tool whereby if I were to forecast sales for Site 1, it would show me the closest sales week, the labour cost from that week, the hours from the week and what week it was. Then be able to show the nth closest etc etc

1647521730267.png


I have a data source as per below:

1647521648633.png


I have used a standard Index Match abs formula which can get me the closest value of the entire data range but I want to just get the closest from each Site.
I also want to be able to send the Nth closest range.

If i can get the sales value right i can just index match the other numbers from there assuming there are no duplicates.

SOS.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Hi & welcome to MrExcel.
How about
+Fluff 1.xlsm
ABCDEFGHIJKLMN
1
2Site 1a1b1c1630Site 1500442c6b6a6
3Site 2a2b2c2347
4Site 3a3b3c3275
5Site 4a4b4c4668
6Site 5a5b5c5477
7Site 1a6b6c6442
8Site 2a7b7c7262
9Site 3a8b8c8157
10Site 4a9b9c9742
11Site 5a10b10c10430
12Site 1a11b11c11661
13Site 2a12b12c12711
14Site 3a13b13c13255
15Site 4a14b14c14535
16Site 5a15b15c15153
17Site 1a16b16c16224
18Site 2a17b17c17254
19Site 3a18b18c18531
20Site 4a19b19c19511
21Site 5a20b20c20858
Main
Cell Formulas
RangeFormula
K2:N2K2=LET(f,FILTER(A2:E21,A2:A21=H2),INDEX(f,MATCH(MIN(ABS(INDEX(f,,5)-I2)),ABS(INDEX(f,,5)-I2),0),{5,4,3,2}))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,550
Members
449,088
Latest member
davidcom

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