Need help to Group Rows based on Cell Content in Col A

Mallappa

New Member
Joined
Jul 20, 2012
Messages
15
Hi Friends,

Basically, I am looking for a macro code which would help me to group the rows based on the cell content in the column A.
I have a spreadsheet which have country names in column A and data in others columns, I want to group all the countries based on its sub areas. I have to repeat this task for 10 files every week, which I am doing manually now. It takes hell lot of time and effort. :(. Every week data keeps on changing so rows are not dynamic but particular sub area countries will be one or the other.
Eg- A, B, C countries should be grouped together. W, X, Y, Z should be grouped together. but sometimes country would be missing say country X, but shouldn't matter, rest should be grouped.

Any help on this is highly appreciable as it will save lot of time for me..:confused: (I m very weak in VB) :ROFLMAO:

Thanks in advance. Please help
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
when you say group rows, do you mean rearrange them, say by using "filter"? Sounds like something easy, Im just having a hard time understanding your example.
 
Upvote 0
Mallappa,

What version of Excel are you using?

Can you post a screenshot of the raw data worksheet, and, post a screenshot of the worksheet results (manually formatted by you) that you are looking for?

To post your data, you can download and install one of the following two programs:
Excel Jeanie
MrExcel HTML Maker
Or, when using Internet Explorer, just put borders around your data in Excel and copy those cells into your post.

If you are not able to give us screenshots:
You can upload your workbook to Box Net,
sensitive data scrubbed/removed/changed
mark the workbook for sharing
and provide us with a link to your workbook.
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,942
Members
449,094
Latest member
teemeren

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