## How To Extract Multiple Matches Into Separate Rows || Excel Tips & Tricks || dptutorials

In this tutorial let us see how to extract multiple matches into separate rows in Excel
Here we will be using an array formula with a combination of Index and small functions

Let us consider an example like this now.
I have categories in column B and names in column C
And let us try to extract the names into these rows from E5 to G8, which are matching with the categories of E4 to G4.

So I enter the formula in E5 as
=INDEX(\$C\$4:\$C\$13,
we will be using the SMALL function here to get a row number that corresponds to an “nth match”.

So continue the formula by typing as
SMALL(IF(\$B\$4:\$B\$13=E\$4,ROW(\$C\$4:\$C\$13)-MIN(ROW(\$C\$4:\$C\$13))+1),1))

Press Ctrl+Shift+Enter, to see the result as “Apple” which is our first fruit name in the data range.

To make the k value more dynamic, we replace this 1 by typing ROWS(\$E\$5:E5)
So this is our final formula
=INDEX(\$C\$4:\$C\$13,SMALL(IF(\$B\$4:\$B\$13=E\$4,ROW(\$C\$4:\$C\$13)-MIN(ROW(\$C\$4:\$C\$13))+1),ROWS(\$E\$5:E5)))

Press Ctrl+Shift+Enter again to see the result and now drag this formula to the end and to the right side to see results in all cells, you will see errors like this if there are no matches.

To avoid errors like this we cover this formula by iferror function like this

=IFERROR(INDEX(\$C\$4:\$C\$13,SMALL(IF(\$B\$4:\$B\$13=E\$4,ROW(\$C\$4:\$C\$13)-MIN(ROW(\$C\$4:\$C\$13))+1),ROWS(\$E\$5:E5))),””)

Got it friends.
So, friends this is how you can extract multiple matches into separate rows in Excel

I hope you have enjoyed this tutorial, If yes, please do give me a like, share and comment.

For further more interesting videos, please do subscribe dptutorials.

For Personalized detail learning, write to dptutorials15@gmail.com

If you found this video valuable, give it a like. If you know someone who needs to see it, share it. Leave a comment below with your thoughts. Add it to a playlist if you want to watch it later.

***********************************************
★ My Online Tutorials ► https://www.dptutorials.com

LEARNING RESOURCES I Recommend: https://www.dptutorials.com/resources

Subscribe for more Awesome Tutorials: http://goo.gl/NyAtg2

Support the Channel via shopping: http://ift.tt/2jH38PR

Tools that I use for Vlogging:
• Laptop: https://amzn.to/2E5U3MO
• Canon 200D Camera: https://amzn.to/2HglDYA
• Benro Tripod: https://amzn.to/2ExRvYj
• Blue yeti microphone: https://amzn.to/2VwZyPn
• Collar Microphone: https://amzn.to/2VyOdcM
• Screen recorder: https://techsmith.pxf.io/2BMjA
• Boom Arm Stand: https://amzn.to/2VCQNi7
• Zoom H1 Audio Recorder: https://amzn.to/2VDumsT
• Harison Softbox Studio Lights: https://amzn.to/2LY7x3u
• Chroma Key Green Screen: https://amzn.to/2ExTr31
• Background Support Stand: https://amzn.to/2McqnEv
• Acoustic Foam Background: https://amzn.to/2EoQ1zj
• USB RGB LED Strip: https://amzn.to/2VItKm4
• Wireless Mouse: https://amzn.to/2E23cpN

Note: This description contains affiliate links, which means at no additional cost to you, we will receive a small commission if you make a purchase using the links. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!

***********************************************

You Can Connect with Me at: