How to sort a range based on criteria

zazybang

New Member
Joined
May 6, 2018
Messages
23
Hey guys, so i have a roster that has names in the first 3 rows. How do i sort the 3 in which the emtpy row will be automatically placed at the bottom of the 3. EX:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Names:[/TD]
[TD]Notes:[/TD]
[/TR]
[TR]
[TD]X[/TD]
[TD]Blah blah blah[/TD]
[/TR]
[TR]
[TD]Y[/TD]
[TD]asdgh[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]fgsde[/TD]
[/TR]
</tbody>[/TABLE]

If i delete all the data in Row 2 (Name: "X") how would i sort the section so that row 2 would appear below the other 2 rows.
 
Last edited:

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Sort on Names, ascending. Check the box that says "My data has headers".
 
Upvote 0

Forum statistics

Threads
1,225,760
Messages
6,186,874
Members
453,381
Latest member
tcell

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