LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

I'd use another helper column:

=if(c1="",rept("z",255),c1)

Then sort by that.

(Or whatever character would sort the data the way you want.)

Matthew McManus wrote:

I have been having some problems with sorting columns of numbers when
the column includes blank cells. Some of the blank cells are there
because nothing has been entered, while others are set to blank by a
formula.
eg. in A1, =if(B1="","",B1). When I sort, some of the blanks appear
above the numbers in the sort, others below.

This will also happen if I copy and Paste Special - Values. The blank
cells in the new column all appear as if they have nothing in them, but
the ones which originally came from formulae are sorted differently to
the ones that were "real blanks".

Has anyone else experienced this, and does anyone know a way around it,
so that all cells with no value in them are treated similarly by the
sort?

Thanks

Matthew

--
Matthew McManus
------------------------------------------------------------------------
Matthew McManus's Profile: http://www.excelforum.com/member.php...fo&userid=5833
View this thread: http://www.excelforum.com/showthread...hreadid=383031


--

Dave Peterson
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Maintaining cell reference after sorting GRITS Excel Discussion (Misc queries) 2 April 30th 23 07:42 PM
Sorting 1, 1A, 2, 2A, 3, 4, 4A, 4B . . . agc1234 Excel Discussion (Misc queries) 6 May 26th 05 08:02 PM
sorting number in ascending order Janice Lee via OfficeKB.com Excel Discussion (Misc queries) 2 April 8th 05 10:31 PM
Adding a KeyID column for sorting Rebecca New Users to Excel 3 February 20th 05 07:09 PM
sorting question Brian Excel Discussion (Misc queries) 4 November 28th 04 12:30 PM


All times are GMT +1. The time now is 12:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"