+ Reply to Thread
Results 1 to 3 of 3

ascending order

  1. #1
    Registered User
    Join Date
    06-05-2008
    Posts
    4

    ascending order

    excuse me if this is not the right place to put my question over here, am just new!

    however, the question is : you may have some weird problem such as the one am facing. the items are B7,B8C,B9B,B10A. i need to enter them as is. but when doing the ascending ordering the list appears up as the photo attached. logically B7 should be the fist B10A should be the last item.

    be aware that i need to enter the item as it shown above, not adding ' 0 ' after ' B ' letter.

    Regards,
    Attached Images Attached Images
    Last edited by cbian; 06-05-2008 at 06:32 AM.

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good morning cbian

    ...and welcome to the forum!!

    This is due to the way Excel sorts - it (quite rightly) recognises what is in your sheet as a text string, not a number. You can force it to sort numerically by using a helper column, and extracting the number from your string.

    Put the code below into an empty module, and if your text string is in column A, starting at A1, then put this formula in (say) column B :
    =GetNumber(A8)
    and copy it down. Then sort on column B.

    Please Login or Register  to view this content.
    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Registered User
    Join Date
    06-05-2008
    Posts
    4

    Thumbs up

    wow! fast response, excellent solution

    thnx DominicB. it works.

+ 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. sorting numbers into ascending order
    By stevy123 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-03-2012, 08:00 AM
  2. x axis ascending order without sorting
    By vbidiot in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-30-2008, 09:31 AM
  3. Pivot Table order problem
    By UKSteveH in forum Excel General
    Replies: 6
    Last Post: 04-21-2008, 03:57 AM
  4. linking sheets together to show what stock to order
    By sexxxibexxxi in forum Excel General
    Replies: 1
    Last Post: 09-03-2007, 07:51 AM
  5. ranking numbers in ascending order
    By froggy19 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-22-2007, 05:03 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