+ Reply to Thread
Results 1 to 3 of 3

MAX & MIN functions with conditions.....

  1. #1
    Forum Contributor
    Join Date
    03-15-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2019
    Posts
    327

    MAX & MIN functions with conditions.....

    Hello friends,

    I am working on finding performance on a sample data... I am facing a hurdle with finding the MAX and MIN with conditions. Will appreciate help on the same...

    I am attaching the file for better understanding..... The problem cells have "?" in red color in them... I have also commented cells to explain....
    Attached Files Attached Files
    Last edited by AliGW; 02-26-2018 at 07:16 AM.
    Regards,
    Navin Agrawal

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,076

    Re: Urgent Help on MAX & MIN functions with conditions.....

    For maximum profit and loss

    in AC23
    =MAX(IF(AND(C$2:C$1000="BUY")*((J$2:J$1000="Target Achieved")+(J$2:J$1000="Stop Loss Hit")+(J$2:J$1000="Expired")),K$2:K$1000))
    in AD23
    =MAX(IF(AND(C$2:C$1000="SELL")*((J$2:J$1000="Target Achieved")+(J$2:J$1000="Stop Loss Hit")+(J$2:J$1000="Expired")),K$2:K$1000))
    in AC24
    =MIN(IF(AND(C$2:C$1000="BUY")*((J$2:J$1000="Target Achieved")+(J$2:J$1000="Stop Loss Hit")+(J$2:J$1000="Expired")),K$2:K$1000))
    in AD24
    =MIN(IF(AND(C$2:C$1000="SELL")*((J$2:J$1000="Target Achieved")+(J$2:J$1000="Stop Loss Hit")+(J$2:J$1000="Expired")),K$2:K$1000))

    NOTE: These are all array formulas
    Array formula, use Ctrl-Shift-Enter

    Change the conditions as defined by your comments to suit other cells.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

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

    Re: Urgent Help on MAX & MIN functions with conditions.....

    AC=SUMPRODUCT(MAX(($C$2:$C$401=AC$1)*($J$2:$J$401<>"Active")*($K$2:$K$401)))
    Try this
    see the attached file
    Note: Don't include words like "Help","Urgent Help", "Please Help", "Formula Help" at any point of time in your thread Title in future, I suggest you change your thread title.
    Attached Files Attached Files
    Samba

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

+ 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. Too many conditions to handle in IF-Funcion. Urgent!
    By CeloPelo in forum Excel General
    Replies: 6
    Last Post: 11-06-2015, 12:54 PM
  2. If Conditions for slab target - URGENT
    By manojsamuel2003 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-25-2015, 12:58 PM
  3. [SOLVED] If Conditions to calculate slabs - URGENT
    By manojsamuel2003 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-14-2015, 06:31 AM
  4. [SOLVED] Urgent!! Vlookup on conditions - [sample now added]
    By PWinkz in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-14-2013, 01:12 PM
  5. [SOLVED] Urgent: what functions to use?
    By onezero in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2006, 04:25 AM
  6. Replies: 5
    Last Post: 05-03-2005, 12:06 AM
  7. SUM based on multiple conditions - SORRY, URGENT!!!
    By marika1981 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-18-2005, 10:06 AM

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