+ Reply to Thread
Results 1 to 8 of 8

Sorting Postive and Negative numbers in order

  1. #1
    Registered User
    Join Date
    05-21-2013
    Location
    London, England
    MS-Off Ver
    Office365
    Posts
    22

    Sorting Postive and Negative numbers in order

    Hi All,

    I am currently struggling with trying to lookup a set of numbers, which are variances both positive and negative in order of absolute amount, but retaining the negative sign when shown into the top 5 amounts. I have pasted the numbers below.

    My current formula I have is =LARGE(B2:B19,1), then followed by 2, 3, 4, and 5 in the subsequent cells. However this only brings back the top 5 largest positive values onle and ignore the high negative value of (150).

    When i try to add an ABS formula in, using an array, it retrieves the 150 but shows it as a posivtive number and not negative, which is how i need to show it.

    Any help would be much appreciated.

    Have attached my spreadsheet with my formulas.

    Top Variance Lookup.xlsx

    Thanks.

    42
    (17)
    82
    271
    19
    187
    12
    183
    (35)
    (32)
    (9)
    3
    0
    3
    (2)
    12
    127
    (150)

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Sorting Postive and Negative numbers in order

    You want to sort the data irrespective of + or - sign?
    Cheers!
    Deep Dave

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: Sorting Postive and Negative numbers in order

    Try this in H3:

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


    comfirmed with ctrl+shift+enter

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Sorting Postive and Negative numbers in order

    Here!

    Please find the file attached.

    Deep
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-21-2013
    Location
    London, England
    MS-Off Ver
    Office365
    Posts
    22

    Re: Sorting Postive and Negative numbers in order

    Super that works perfectly for me zbor.
    Thanks

  6. #6
    Registered User
    Join Date
    07-19-2013
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Sorting Postive and Negative numbers in order

    Hello

    You could try the following formula instead:

    Please Login or Register  to view this content.
    Thus the ABS test is performed up front, but then the actual value is brought through using the SMALL function instead of the LARGE function.

    Kind regards,
    Simon

  7. #7
    Registered User
    Join Date
    07-19-2013
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Sorting Postive and Negative numbers in order

    Apologies - thought I had a nice solution, but of course mine will only ever compare the first, second, third (etc) smallest / largest items against each other. The Array formula mentioned by ZBOR is more complete and appropriate for you.

  8. #8
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Sorting Postive and Negative numbers in order

    Agreed!

    The Formula given by ZBOR is perfect..

+ 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] Negative / postive numbers
    By Diana2013 in forum Excel General
    Replies: 2
    Last Post: 05-14-2013, 11:33 AM
  2. Replies: 1
    Last Post: 10-07-2009, 08:11 PM
  3. Excluding negative numbers and bringing back lowest postive number
    By Dancingqueen in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 09-15-2009, 03:40 PM
  4. Replies: 2
    Last Post: 01-19-2009, 02:18 PM
  5. Excel column sum of negative and postive numbers.
    By Ike Milligan in forum Excel General
    Replies: 1
    Last Post: 04-14-2006, 11:30 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