+ Reply to Thread
Results 1 to 5 of 5

Lookup largest number in a column treating negative number as postive number

  1. #1
    Registered User
    Join Date
    04-11-2010
    Location
    Singapore
    MS-Off Ver
    Office 365
    Posts
    44

    Lookup largest number in a column treating negative number as postive number

    Hi, is there a way to lookup the largest number in a column but treating the negative number as a positive number?

    Something like Max and Min but I want the largest absolute number between them.

    Please see the attached example, in N41, i want it to show -10 instead of 5 and the depth beside it to show 22 instead of 8.

    Thank you
    Attached Files Attached Files
    Last edited by xWiZardx; 12-17-2010 at 08:10 AM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Lookup largest number in a column treating negative number as postive number

    Hi

    Both of these are array entered (ctrl, shift, enter)

    N42: =MAX(ABS(M13:M41))
    O42: =INDEX(A13:A41,MATCH(N42,ABS(M13:M41),0))

    HTH

    rylo

  3. #3
    Registered User
    Join Date
    04-11-2010
    Location
    Singapore
    MS-Off Ver
    Office 365
    Posts
    44

    Re: Lookup largest number in a column treating negative number as postive number

    Ok it works, but can it still show the negative sign? instead of 10, i would like it to show -10

    Thanks a lot

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Lookup largest number in a column treating negative number as postive number

    An alternative:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-11-2010
    Location
    Singapore
    MS-Off Ver
    Office 365
    Posts
    44

    Re: Lookup largest number in a column treating negative number as postive number

    It works, thanks for that.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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