+ Reply to Thread
Results 1 to 6 of 6

Return numbers high to low using formula (includes negatives)

  1. #1
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Question Return numbers high to low using formula (includes negatives)

    Hi all, I am attempting to build a formula to return a column of numbers highest to lowest.

    The formula needs to find which column to look at based on the header.

    The problem that I am coming across is that the formula is pulling more 0's than there are in that column (and therefore not showing negative numbers).

    Please see attached workbook for representative sample.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,748

    Re: Return numbers high to low using formula (includes negatives)

    With your formula the numbers in cols A & C become 0 as they are false.
    Try it like
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Return numbers high to low using formula (includes negatives)

    You nailed it. Thanks Fluff!
    Last edited by AliGW; 08-25-2021 at 10:01 AM. Reason: PLEASE don't quote unnecessarily!

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Return numbers high to low using formula (includes negatives)

    Please try

    =AGGREGATE(14,6,(A$2:C$7)/(A$1:C$1=G$2),ROWS(I$2:I2))

    or without error value

    =LARGE(INDEX(A$2:C$7,,MATCH(G$2,A$1:C$1,)),ROWS(I$2:I2))

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,748

    Re: Return numbers high to low using formula (includes negatives)

    Glad to help & thanks for the feedback.

  6. #6
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2502 and WPS V2024(12.1.0.18543)
    Posts
    3,866

    Re: Return numbers high to low using formula (includes negatives)

    Cell I2 formula , Drag down

    HTML Code: 

+ 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. Formula that look up high and low random numbers
    By Apiedup3 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-19-2018, 10:24 AM
  2. [SOLVED] Two queries; (1) Waterfall with negatives | (2) Line chart with negatives
    By STUARTXL in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 06-08-2018, 10:42 AM
  3. Replies: 6
    Last Post: 05-30-2016, 04:18 AM
  4. Replies: 6
    Last Post: 10-29-2014, 01:19 AM
  5. Return a max currency value from a range that includes numbers/text
    By simontek in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-28-2012, 06:00 AM
  6. Trying to add a column of numbers, but ignoring negatives
    By Lord Waste in forum Excel General
    Replies: 5
    Last Post: 04-07-2009, 06:43 AM
  7. How to create a formula where high and low numbers are excluded
    By rodeoratt@discussions.microsoft.com in forum Excel General
    Replies: 2
    Last Post: 03-06-2005, 08:06 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