Sort table with blanks at the end

adambc

Board Regular
Joined
Jan 13, 2020
Messages
177
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
I'm trying to avoid using a macro ...

I have a table with 7 columns with a header ...

- Column A contains a header ("Order") (row 1) and the numbers 1 to 60 (rows 2 to 61)
- Column G contains a header ("Surname") (row 1) and surnames (but only in rows 1 to n, with rows n+1 to 61 blank)

I want to sort the table on Column G (A to Z) using the Autofilter, but with the blank rows at the bottom (not at the top) ...

Is this possible NOT using a macro?

Many thanks ...
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,969
Office Version
  1. 365
Platform
  1. Windows
Does col G contain a formula?
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,969
Office Version
  1. 365
Platform
  1. Windows
In that case it sounds as though the cells are not actually blank, completely empty cells should be sorted at the bottom.
 

adambc

Board Regular
Joined
Jan 13, 2020
Messages
177
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
In that case it sounds as though the cells are not actually blank, completely empty cells should be sorted at the bottom.
Sorry, I should have said "yes" - I'm reading the surname from another Worksheet
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
56,969
Office Version
  1. 365
Platform
  1. Windows
In that case if the formula returns "" for the blank cells, you could change it to return z, or you could use a helper column.
 
Solution

Watch MrExcel Video

Forum statistics

Threads
1,130,310
Messages
5,641,450
Members
417,210
Latest member
rins

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
Top