Index, Match,or List??

spm0r1n

New Member
Joined
Mar 28, 2017
Messages
11
I have an spreadsheet with 40+ columns that are support hubs, and 1400+ rows of support sites. I have distance data for all contained in a matrix format.

I want to be able to use a drop down menu to select one of the support hubs, and then have list/match to select all entries within the hubs column that match certain criteria, i.e <= 80, =>200

once the matches are found, I need the row headers( Supported Sites) to be copied to another worksheet in either row or column.

Will a variation of the following work? Both of theses are working fine.
This formula looks through the distance of the sites and matches the smallest next smallest,etc, and populates the column header.
=INDEX($X$1:$BM$1,MATCH(SMALL($X18:$BM18,1),$X18:$BM18,0))

<colgroup><col span="6" width="84"></colgroup><tbody>
</tbody>
=INDEX($X$1:$BM$1,MATCH(SMALL($X13:$BM13,2),$X13:$BM13,0))
=INDEX($X$1:$BM$1,MATCH(SMALL($X13:$BM13,3),$X13:$BM13,0))

This formula just populates the actual mileage
=SMALL($X13:$BM13,1)
=SMALL($X13:$BM13,2)
=SMALL($X13:$BM13,2)


Thanks.
 
I created a dummy data sample based on FormR's response #2 .
I used a sumproduct formula to give the count
=SUMPRODUCT(($B$3:$G$10>=$J$3)*($B$3:$G$10<=$J$4)*($B$2:$G$2=$J$2))

<tbody>
</tbody>

=IFERROR(SMALL(IF($B$2:$G$2=$J$2,IF($B$3:$G$10>=$J$3,IF($B$3:$G$10<=$J$4,$B$3:$G$10))),ROWS($J$1:J1))," ") seems to work. Again you need to use Cntr+Shift+Enter


Hubs
Sitexxxxxxxxxxxxxxxxxxxxxxxx
a123456>=15
b789101112<=36
c1314151617184
d192021222324
e25262728293015
f3132333435361
g37383940414227
h43444546474833

<colgroup><col width="64" span="10" style="width:48pt"> </colgroup><tbody>
</tbody>



<tbody>
</tbody>
 
Upvote 0

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,216,079
Messages
6,128,687
Members
449,464
Latest member
againofsoul

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