Extract and Group Rows from Table when One or the Other Criteria Match in Same Column

MsMel

New Member
Joined
Jul 19, 2018
Messages
1
Hi - I'm new to this forum although I have used it loads to get help but I am stuck with this one so hope you guys can assist!

I have a table (2 columns) in excel. The first column contains only a letter, the second a list of company names.

I then have to the right of my table a row headed up with letters matching those in column A however, some of the letters need to be grouped so C's are in one column but in another G & I need to be grouped in one list.

I have created a formula that searches column A for letter C and it pulls out all those companies that match and lists them in one column under the header C. However I now need to pull out the same information for column G&I so I need my formula to draw out companies classed G but also I too.

That is where I am stuck. This is my formula...

=IFERROR(INDEX($B:$B,SMALL(IF(ISNUMBER(SEARCH("G",$A:$A)),ROW($A:$A),""),ROW()-1)),"")

How do I add to this to include "I"?


Any help massively appreciated - I have square eyes right now!

Mel
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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