VLOOKUP,MATCH/INDEX/TRANSPOSE/SMALL - which one?

Carl Stephens

New Member
Joined
Jan 3, 2017
Messages
46
Office Version
  1. 365
Hello All,

I am looking for a formula that will look up data in cell B2, in row 4 (array is B4:AG13) and when it finds cell with the matching data to then search for the cells with X's in and then return data in column B in the same row. In the example below, the results are in cell B15:E15. Any help on this one will be appreciated. Thank you.

1716480010954.png
 

Attachments

  • 1716479967777.png
    1716479967777.png
    9.6 KB · Views: 2

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
How about
Excel Formula:
=FILTER(B5:B13,INDEX(C5:AG13,,XMATCH(B2,C4:AG4))="X")
 
Upvote 0
Solution
How about
Excel Formula:
=FILTER(B5:B13,INDEX(C5:AG13,,XMATCH(B2,C4:AG4))="X")
Almost perfect, just the transpose function was missing, BUT....you have made my day. THANK YOU SO MUCH.

=TRANSPOSE(FILTER(B5:B13,INDEX(C5:AG13,,XMATCH(B2,C4:AG4))="X"))
 
Upvote 0
A little late to the party it seems, but a slight variation nonetheless.

See if this does what you want:
Book1
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAG
1
220
3
412345678910111213141516171819202122232425262728293031
5Axxx
6B
7Cxx
8Dxx
9Exx
10Fx
11Gxx
12Hxx
13Ixx
14
15ADGI
Sheet4
Cell Formulas
RangeFormula
B15:E15B15=WRAPROWS(FILTER(B5:B13,INDEX(C5:AG13,,B2)="x"),9)
Dynamic array formulas.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
A little late to the party it seems, but a slight variation nonetheless.

See if this does what you want:
Book1
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAG
1
220
3
412345678910111213141516171819202122232425262728293031
5Axxx
6B
7Cxx
8Dxx
9Exx
10Fx
11Gxx
12Hxx
13Ixx
14
15ADGI
Sheet4
Cell Formulas
RangeFormula
B15:E15B15=WRAPROWS(FILTER(B5:B13,INDEX(C5:AG13,,B2)="x"),9)
Dynamic array formulas.
Your input and different way of looking at it is super appreciated still, thank you.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

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