+ Reply to Thread
Results 1 to 9 of 9

Sorting Issues

  1. #1
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    Sorting Issues

    When choosing to sort one of my columns Largest to Smallest it lists all the cells at the top with the no data instead of the largest numbers. I have a formula in this column and it puts all the cells at the top with no data because it's producing back an error value. Anyway to adjust this so that the error number is counted as 0 instead of an incorrect formula?

    Thanks!

  2. #2
    Forum Contributor
    Join Date
    09-24-2012
    Location
    York, England
    MS-Off Ver
    Excel 2003/07/10
    Posts
    165

    Re: Sorting Issues

    You can use IFERROR() or IF(ISERROR() depending on your version of Excel. This will return whatever value you specify (e.g 0) in the event of an error.

  3. #3
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    Re: Sorting Issues

    Quote Originally Posted by Hercules1946 View Post
    You can use IFERROR() or IF(ISERROR() depending on your version of Excel. This will return whatever value you specify (e.g 0) in the event of an error.
    Ya this is the formula that I currently have, it puts all the IFERROR 0's at the top.

  4. #4
    Forum Contributor
    Join Date
    09-24-2012
    Location
    York, England
    MS-Off Ver
    Excel 2003/07/10
    Posts
    165

    Re: Sorting Issues

    Quote Originally Posted by mlbdc2012 View Post
    Ya this is the formula that I currently have, it puts all the IFERROR 0's at the top.
    Ive tried this with a small workbook of mine and it works fine with the zero at the bottom. However, if its displaying the error message (eg #DIV/0!) these have a sort value thats higher than everything apart from blanks.
    If the IFERROR is told to return zero, then if the other values being sorted are all numbers, the error cell should be at the bottom with a Largest to Smallest sort.
    One point to note:
    Make sure that you enter the IFERROR like this: =IFERROR(100/0, 0)
    and not like this: IFERROR(100/0, "0")
    because the text representation of a numeric character has a higher sort value than the number one.

  5. #5
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    Re: Sorting Issues

    Quote Originally Posted by Hercules1946 View Post
    Ive tried this with a small workbook of mine and it works fine with the zero at the bottom. However, if its displaying the error message (eg #DIV/0!) these have a sort value thats higher than everything apart from blanks.
    If the IFERROR is told to return zero, then if the other values being sorted are all numbers, the error cell should be at the bottom with a Largest to Smallest sort.
    One point to note:
    Make sure that you enter the IFERROR like this: =IFERROR(100/0, 0)
    and not like this: IFERROR(100/0, "0")
    because the text representation of a numeric character has a higher sort value than the number one.
    Here's the current formula I have, what should I adjust it to?

    =IFERROR(INDEX(Database!$AV$4:$AV$3612,MATCH(E11,Database!$B$4:$B$3612,0)),"0")

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Sorting Issues



    As Hercules suggested, replace "0" with 0
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Forum Contributor
    Join Date
    11-23-2013
    Location
    San Diego
    MS-Off Ver
    Excel 2013
    Posts
    457

    Re: Sorting Issues

    Quote Originally Posted by shg View Post


    As Hercules suggested, replace "0" with 0
    I did this and it's still placing the errors at the Top when I sort largest to smallest.

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Sorting Issues

    Post an example workbook. You can strip all of the data except for what is necessary to calculate the column that doesn't sort properly.

  9. #9
    Forum Contributor
    Join Date
    09-24-2012
    Location
    York, England
    MS-Off Ver
    Excel 2003/07/10
    Posts
    165

    Re: Sorting Issues

    Quote Originally Posted by mlbdc2012 View Post
    I did this and it's still placing the errors at the Top when I sort largest to smallest.
    Just to clear up one possibility, you do realise that after you have removed the double quotes from the zero, you then need to perform the sort again in order for it to take effect ?
    If this isn't the explanation, then we will need to see the problem demonstrated in a workbook, as shg has said.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Data Validation List Issues/Sorting Issues
    By taylorbe in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-12-2014, 09:53 AM
  2. [SOLVED] Sorting issues / help
    By virre in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-11-2013, 06:30 AM
  3. Sorting Issues
    By Shepsil in forum Excel General
    Replies: 1
    Last Post: 10-22-2012, 11:18 AM
  4. [SOLVED] Sorting Issues
    By ildestino in forum Excel General
    Replies: 6
    Last Post: 04-11-2012, 09:29 AM
  5. sorting issues
    By timjl in forum Excel General
    Replies: 11
    Last Post: 01-24-2009, 07:25 PM
  6. Sorting Issues
    By MissTee in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-04-2007, 11:17 PM
  7. Issues with sorting
    By Matthew McManus in forum Excel General
    Replies: 1
    Last Post: 06-29-2005, 08:05 AM

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