+ Reply to Thread
Results 1 to 8 of 8

MAX formula with negative values

  1. #1
    Registered User
    Join Date
    01-26-2016
    Location
    TX
    MS-Off Ver
    Excel 2016
    Posts
    99

    MAX formula with negative values

    All,

    I'm using the formula below but having issues when the value it is selecting is negative. Because column 7 can have a zero, it will choose that rather than the negative value in column 8, which is what I need.

    Can someone assist?


    =(MAX(INDEX('Sheet2!'$1:$1048576,MATCH(A1,'Sheet2!'J:J,0),N(CHOOSE({1,2},7,8)))))

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: MAX formula with negative values

    Please Login or Register  to view this content.
    ARRAY ENTER...
    Last edited by protonLeah; 07-21-2017 at 12:46 AM.
    Ben Van Johnson

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: MAX formula with negative values

    Try this

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-26-2016
    Location
    TX
    MS-Off Ver
    Excel 2016
    Posts
    99

    Re: MAX formula with negative values

    protonLeah - thank you but since I sort this formula, I cannot use an array.

    kvsrinivasamurthy - This worked perfectly; however, if both columns have a value of zero I get a #NUM! error message. How can I change this so a zero is the result?

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: MAX formula with negative values

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: MAX formula with negative values

    Pl attach a sample file, not image, showing the problem.

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: MAX formula with negative values

    Try this
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    01-26-2016
    Location
    TX
    MS-Off Ver
    Excel 2016
    Posts
    99

    Re: MAX formula with negative values

    kvsrinivasamurthy - thank you so much. That worked perfectly!

+ 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. Need a formula to change a negative time to negative decimal
    By Renejorgensen in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-12-2016, 11:51 AM
  2. [SOLVED] Formula to knock off positive and negative values from the same table
    By rochakmehta90 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-17-2016, 12:45 PM
  3. Replies: 13
    Last Post: 10-08-2014, 08:35 AM
  4. Replies: 3
    Last Post: 07-18-2010, 07:26 AM
  5. How do I ignore negative values in a formula
    By queestionable in forum Excel General
    Replies: 2
    Last Post: 08-16-2007, 10:26 AM
  6. formula for parenthesis round negative money values in excel
    By jeff in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-14-2006, 02:45 AM
  7. Replies: 4
    Last Post: 09-26-2005, 06:05 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