Sort on Specific Name

The Animal

Active Member
Joined
May 26, 2011
Messages
449
Hi
I have a "Sort Selection" B3:M27.
In cells F3:F27 there are numerous names and for example one is "Janette" and in Cells H3:F27 there be the same name "Janette" once again with numerous other names
In the corresponding F cell or the H cells there could be other names.
I need a macro that will sort "Janette" to the top of the "F" column as the first sort option and then if "Janette" appears in the "H" Column have that as the second sort.
So if the name is found in 4 places in column F then all the Janettes will sort to appear in rows 3,4,5,6 and if the name appears 3 times in column H then they will sort to rows 7,8,9.
Any of the remaining names that are not "Janette" can sort alphabetically on column F.
I have tried sorts using A to Z and custom sorts but do not seem to get all the "Janettes" to sort to the top of column F and all the "Janettes" in column H to appear consecutively.
Any help would be appreciated.
Stephen
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
I am able to get custom sort to work. I would have to see an example of your data where it is not working and what it would look like after the sort.
 
Upvote 0
Sorry pushed "Post"
Thanks again

F G H I
Janette SO Entry
Janette Invoicing
Janette SO Entry
Brad Delivery Janette
Joey Picking Janette Packing
Joseph Picking Marty Packing
 
Upvote 0

Forum statistics

Threads
1,214,874
Messages
6,122,034
Members
449,061
Latest member
TheRealJoaquin

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