how to move blank entries to the end of the list in a A to Z sort?

jdmc45

Board Regular
Joined
May 8, 2011
Messages
146
Office Version
  1. 365
Platform
  1. Windows
How do I move the blank entries to the end (instead of the start) in a A to Z sort?

Cheers!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
They should be doing that already by default. Maybe your "blank" cells are actually not empty, if you have formulas in them returning null strings, or they contain invisible characters like spacebars.
 
Upvote 0
Hi,

Yes you are right, they are null strings, is there a way to have the null strings at the end of the sort?
 
Upvote 0
Without knowing what column you are primarily sorting because you have not said, let's say it is column B.

The cells are NOT blank as they contain "" (empty text). Use a hidden column to sort by in your sort criteria. Example:
=IF(B1="","ZZZZ",B1) where Column "B" houses your formulas. "Z" is the last alphanumeric character in the hierarchy chain, and four Z's should ensure the returned value is not like any other bona fide value.
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,833
Members
452,947
Latest member
Gerry_F

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