Group together cells with common words

Analystbycuriosity

New Member
Joined
Oct 8, 2017
Messages
18
I have a long list of following cells.
e.g. cell A111: 9.03% XYZ investments Ltd. MD(23/06/2019)
A451: 7.52% ABC industries ltd.MD (12/02/2020)
A600: 8.56% XYZ investments Ltd. MD(45/05/2030)
A750: 7.52% ABC industries ltd.MD (12/02/2025)
and so on

Cells include different company names, percentage, and dates.
Like many other companies, XYZ investments is repeated in many cells but they are segregated.
I have searched using filters but it is very time-consuming and tedious task as there are 1000 such cells with 100 company names.
Normal sorting function arranges based on initial numbers hence of no use.
I want to group cells with similar companies automatically one after the other or in different columns using some formula and function.

Please, Help!
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Welcome to the MrExcel board!

Would using a formula like this in another column and using that column to sort be any use for you?


Book1
AB
1
29.03% XYZ investments Ltd. MD(23/06/2019)XYZ investments Ltd.
37.52% ABC industries ltd.MD (12/02/2020)ABC industries ltd.
48.56% XYZ investments Ltd. MD(45/05/2030)XYZ investments Ltd.
57.52% ABC industries ltd.MD (12/02/2025)ABC industries ltd.
Group Companies
Cell Formulas
RangeFormula
B2=TRIM(REPLACE(LEFT(A2,FIND("MD",A2)-1),1,FIND(" ",A2),""))
 
Last edited:
Upvote 0
My desired Output.

A1: 9.03% XYZ investments Ltd. MD(23/06/2019)
A2: 8.56% XYZ investments Ltd. MD(45/05/2030)
A3: 7.52% ABC industries ltd.MD (12/02/2020)
A4: 7.52% ABC industries ltd.MD (12/02/2025)
......
 
Upvote 0
My desired Output.

A1: 9.03% XYZ investments Ltd. MD(23/06/2019)
A2: 8.56% XYZ investments Ltd. MD(45/05/2030)
A3: 7.52% ABC industries ltd.MD (12/02/2020)
A4: 7.52% ABC industries ltd.MD (12/02/2025)
......
Yes, so as I suggested, if in my small sample I now select A2:B5 and sort on column B, doesn't that achieve the goal of grouping companies together?


Book1
AB
1
27.52% ABC industries ltd.MD (12/02/2020)ABC industries ltd.
37.52% ABC industries ltd.MD (12/02/2025)ABC industries ltd.
49.03% XYZ investments Ltd. MD(23/06/2019)XYZ investments Ltd.
58.56% XYZ investments Ltd. MD(45/05/2030)XYZ investments Ltd.
Group Companies


If it is a one-off task then column B formulas could then be deleted.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,110
Messages
6,123,149
Members
449,098
Latest member
Doanvanhieu

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