+ Reply to Thread
Results 1 to 2 of 2

Sorting Table Incorrectly?

  1. #1
    Registered User
    Join Date
    09-25-2008
    Location
    Winnetka, CA
    Posts
    83

    Sorting Table Incorrectly?

    I have a macro that sorts a table:

    Please Login or Register  to view this content.
    My user suspects that sometimes it sorts incorrectly; as if some columns were sorted and others were not. Also, it seems as if one or two rows are sorted out of the intended order. Has anyone heard of these problems before?

    Part of my problem is that the worksheet is large, and errors aren't always obvious. Does anyone know a way of confirming that the table is sorting incorrectly?

    Thanks.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,959

    Re: Sorting Table Incorrectly?

    I would imagine it would be difficult to check it in any way other than visual. Id Excel IS sorting incorrectly, it is doing it for a reason, probably related to the contents of the cells. So, any comparison you try to make in Excel will probably obey the same rules. If for example, you compare cell A3 to A2 it wil say it is bigger.

    Where does the data come from? If it's from a web site it might have non-displayed characters embedded in the data.

    If your user thinks the data is sorted incorrectly, s/he need to bring you examples so you can investigate. Otherwise, you'll never know.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. [SOLVED] Data Table (What If Analysis) Calculating Incorrectly
    By prescient in forum Excel General
    Replies: 8
    Last Post: 08-15-2014, 07:59 PM
  2. Pivot table incorrectly summing & producing strange numbers (-2.66454E-15)
    By Brontosaurus in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 11-21-2013, 04:07 AM
  3. Pivot Table Calculating Incorrectly?
    By orcsab in forum Excel General
    Replies: 1
    Last Post: 03-16-2012, 02:09 AM
  4. Pivot Table Totals Incorrectly Summed
    By Ms MIS in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-12-2006, 01:30 PM
  5. [SOLVED] Column sorting incorrectly
    By Melissa in forum Excel General
    Replies: 18
    Last Post: 10-13-2005, 04:05 AM

Tags for this Thread

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