VBA Group Row Based on Cell Critieria

unknownymous

Board Regular
Joined
Sep 19, 2017
Messages
249
Office Version
  1. 2016
Platform
  1. Windows
Hello Guys,

I have below data that I need to group based on criteria below:

Raw (Sheet1):

IDNameStatus
01DonnaDone
05KarlComplete
06EmsPending
02ShawnIncomplete
05Mae
03AnnOK

<tbody>
</tbody>


End Result:

IDNameStatus
01DonnaDone
03AnnOK
05Karl Compelete
IDNameStatus
02ShawnIncomplete
05Mae

<tbody>
</tbody>
06EmsPending

<tbody>
</tbody>


Basically, I need to group the whole data and separate those with Status note:
Upper Part: "Done", "OK", "Complete"
Bottom Part: "Pending", "Incomplete" and Blank cell

I need to do the same process on 5 more sheets (Sheet2-Sheet6). Note that the range may vary so need to highlight the whole row in separating data and sorted in descending order. :)

Any help will be much appreciated.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Forum statistics

Threads
1,215,191
Messages
6,123,553
Members
449,108
Latest member
rache47

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