I have been looking for days trying to find how to do this but not having much luck. I am not totally new to writing the complex formulas but haven't used them in a long time (and array has been totally new these last few weeks). I am trying to pull tech names to sheet1 based on the distance they are away from a site (0.01-50 miles, 51-100, 101-150 etc...
I have the table in Mileage! that shows all techs in columns (4), sites in rows (B)
Drop down box is on sheet1 cell B3.
I have been trying to figure out the formula and this is the closest I can come up with
=(INDEX(Mileage!$F$4:$I$4,1,SMALL(IF(INDEX(Mileage!$F$5:$I$13,MATCH($B$3,Mileage!$B$5:$B$13,0),)<=50,COLUMN($A$1:$G$1)),ROW(1:1))))
which is giving me an #N/A, if I play with it enough I will end up with a #value!.
Can anyone help?
I have uploaded my sample sheet.
thank you so much for taking the time to even read and respond.
I have the table in Mileage! that shows all techs in columns (4), sites in rows (B)
Drop down box is on sheet1 cell B3.
I have been trying to figure out the formula and this is the closest I can come up with
=(INDEX(Mileage!$F$4:$I$4,1,SMALL(IF(INDEX(Mileage!$F$5:$I$13,MATCH($B$3,Mileage!$B$5:$B$13,0),)<=50,COLUMN($A$1:$G$1)),ROW(1:1))))
which is giving me an #N/A, if I play with it enough I will end up with a #value!.
Can anyone help?
I have uploaded my sample sheet.
thank you so much for taking the time to even read and respond.
DROPDOWN IN B3 | |||||||
Site 1 | |||||||
use .01 as low to prevent pulling zero | |||||||
Techs Available Under 50 Miles | Techs Available 50-100 Miles | ||||||
Tech Name | ZipCode | Milage | Tech Name | ZipCode | Mileage | ||
#N/A | |||||||
Site_Name | Site | Other Info1 | Other Info2 | Other Info3 | Tech 1 | Tech 2 | Tech 3 | Tech 4 |
20 | Site 1 | 5 | 71 | 11 | 23 | |||
19 | Site 2 | 17 | 222 | 361 | 274 | |||
54 | Site 3 | 9 | 148 | 16 | 34 | |||
2 | Site 4 | 66 | 278 | 249 | 178 | |||
36 | Site 5 | 75 | 261 | 244 | 277 | |||
47 | Site 6 | 99 | 351 | 111 | 139 | |||
52 | Site 7 | 75 | 20 | 61 | 12 | |||
1 | Site 8 | 3 | 237 | 389 | 168 | |||
75 | Site 9 | 21 | 300 | 62 | 92 |