Get all matches in excel

Rahulwork

Active Member
Joined
Jun 9, 2013
Messages
284
Hi everyone

i have one excel sheet as below and need our help. please refer below example:

I have data in A1:B4. I want the same in as desire as D1:f2

I want to all the possible match in rows format. please help.

ABCDEF
1AustraliaOneAustraliaJapanchina
2JapanOneOneOneOne
3AustraliaTwoTwo
4chinaOne
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
MrExcel.xlsx
ABCDEF
1AustraliaOneAustraliaJapanchina
2JapanOneOneOneOne
3AustraliaTwoTwo  
4chinaOne   
Sheet1
Cell Formulas
RangeFormula
D2:F4D2=IFERROR(INDEX($B:$B,SMALL(IF($A$1:$A$4=D$1,ROW($1:$4)),ROW(A1))),"")
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Upload a workbook for your reference, please see if you can open below file:
OneDrive shared file

If you are using Office 365, FILTER function is much easier:
MrExcel.xlsx
ABCDEF
1AustraliaOneAustraliaJapanchina
2JapanOneOneOneOne
3AustraliaTwoTwo
4chinaOne
Sheet1
Cell Formulas
RangeFormula
D2:D3,E2:F2D2=FILTER($B:$B,$A:$A=D1)
Dynamic array formulas.
 
Upvote 0
No it's not working. :( it flle u have used filter function but this is not avaialble with me. dont know this index function not giving medesire value
 
Upvote 0
No it's not working. :( it flle u have used filter function but this is not avaialble with me. dont know this index function not giving medesire value
have you pressed CTRL+SHIFT+ENTER for the array formula? can you open the linked file in post #3?
 
Upvote 0
It is not necessary to press Ctrl + Shift + Enter in Office 365. Enter is enough.
Yes, press Enter to finish is enough in 365. i am not sure his excel version, so for the formula using index &small i pressed CSE in case he is not using 365 and just Enter for the formula using Filter function.
 
Upvote 0
It is not necessary to press Ctrl + Shift + Enter in Office 365. Enter is enough.
That is only the case if the OP has dynamic arrays, which not all 365 users have. As the OP has already stated they don't have the Filter function, then CSE is needed.
 
Upvote 0
@Rahulwork
Please edit your account details to show what version of Excel you are using, as this determines what functions you have available. Thanks
 
Upvote 0
Hi everyone

i have one excel sheet as below and need our help. please refer below example:

I have data in A1:B4. I want the same in as desire as D1:f2

I want to all the possible match in rows format. please help.

[…]

AustraliaOneAustraliaJapanchina
JapanOneOneOneOne
AustraliaTwoTwo
chinaOne


In D2 control+shift+enter, not just enter, copy across, and down:

=IFERROR(INDEX($B$1:$B$4,SMALL(IF($A$1:$A$4=D$1,ROW($A$1:$B$4)-ROW(INDEX($A$1:$B$4,1,1))+1),ROWS(D$2:D2))),"")

Note. This proposal is robust in picking out the result values.
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,264
Members
452,627
Latest member
KitkatToby

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