+ Reply to Thread
Results 1 to 2 of 2

Issues with sorting

Hybrid View

  1. #1
    Registered User
    Join Date
    02-05-2004
    Posts
    6

    Issues with sorting

    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

  2. #2
    Dave Peterson
    Guest

    Re: Issues with sorting

    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1