+ Reply to Thread
Results 1 to 4 of 4

sorting the number not whether it's = or -

  1. #1
    Registered User
    Join Date
    11-29-2013
    Location
    UK
    MS-Off Ver
    Office 365 subscription
    Posts
    58

    sorting the number not whether it's = or -

    Can someone remind me of the relevant formula or term to do this please?

    I need to change

    1
    -2
    -3
    4
    -5

    to
    1
    2
    3
    4
    5

    Thanks in anticipation!

    Ian

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: sorting the number not whether it's = or -

    Use ABS function like
    =ABS(A1)
    Try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: sorting the number not whether it's = or -

    You can use an abs function to remove the negative values ..
    For example if you have a value in A1 say -4 use this
    =abs(A1)
    ...it will give you the result 4 and keep +ve values +ve
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: sorting the number not whether it's = or -

    This will sort the numbers in order regardless of sign:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Change the $A$1:$A$5 to suit your data.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. unique number sorting
    By Nwakelin77 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-21-2013, 05:09 AM
  2. Sorting by number values
    By raze in forum Excel General
    Replies: 1
    Last Post: 01-13-2013, 05:27 PM
  3. Sorting by number of occurrences
    By rburk in forum Excel General
    Replies: 2
    Last Post: 03-06-2012, 05:17 PM
  4. Sorting on the last number
    By kyoushin in forum Excel General
    Replies: 1
    Last Post: 10-22-2007, 08:42 AM
  5. Number sorting
    By ReD-DevIL in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-30-2006, 10:40 PM

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