+ Reply to Thread
Results 1 to 13 of 13

MINIF and MAXIF values in range help

Hybrid View

  1. #1
    Registered User
    Join Date
    05-02-2020
    Location
    tennessee
    MS-Off Ver
    2019
    Posts
    17

    MINIF and MAXIF values in range help

    i am looking to calculate the max and min value in a range which is both dependent on a text value (long /short) and swaps min max value calculation based on long short direction
    see attached workbook example

    i know the formula should include MAXIF and MINIF formula over a given series of data and conditional statements.

    example file attached in excel 2019 version

    example file includes desired values in cells in column M and N
    comments and clarification saved in cells M16, N16, M18, N18, M20, N20

    Thanks in advance for your help!!
    Attached Files Attached Files
    Last edited by bmaness; 04-29-2023 at 09:41 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,377

    Re: MIN and MAX values in range with mutiple IF conditions

    Are you still using Excel 2016?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    05-02-2020
    Location
    tennessee
    MS-Off Ver
    2019
    Posts
    17

    Re: MIN and MAX values in range with mutiple IF conditions

    Ma'am i am using Microsoft excel 2019 version

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,377

    Re: MINIF and MAXIF values in range help

    Pleae update your forum profile - it's out-of-date.

  5. #5
    Registered User
    Join Date
    05-02-2020
    Location
    tennessee
    MS-Off Ver
    2019
    Posts
    17

    Re: MINIF and MAXIF values in range help

    profile updated.
    i was hoping you were going to help me with my excel function issue

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,377

    Re: MINIF and MAXIF values in range help

    I have been looking at it, but haven't yet found a solution, If I do, I'll let you know.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: MINIF and MAXIF values in range help

    Hii.

    M2:
    =IFERROR(IF(L2<>"entry/exit","",IF(K2="short",MAX(INDEX(E:E,AGGREGATE(14,6,ROW(L$1:L1)/(L$1:L1="entry/exit"),1)):E1),MIN(INDEX(F:F,AGGREGATE(14,6,ROW(L$1:L1)/(L$1:L1="entry/exit"),1)):F1))),"")

    N2:
    =IFERROR(IF(L2<>"entry/exit","",IF(K2="short",MIN(INDEX(F:F,AGGREGATE(14,6,ROW(L$1:L1)/(L$1:L1="entry/exit"),1)):F1),MAX(INDEX(E:E,AGGREGATE(14,6,ROW(L$1:L1)/(L$1:L1="entry/exit"),1)):E1))),"")

    both copied down.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  8. #8
    Registered User
    Join Date
    05-02-2020
    Location
    tennessee
    MS-Off Ver
    2019
    Posts
    17

    Re: MINIF and MAXIF values in range help

    Glenn, Thank you!!! that's amazing i am trying to wrap my mind around the formula syntax.

    can we add a formula or modify this one to calculate the % change from the open price using your formula values in columns M and N?

    so cell O16 formula would be: =M16/D2-1
    P16 = =N16/D2-1

    formula swaps for short crossover column K
    O18 =N18/D16-1
    P18 =M18/D16-1

    see pic attached. happy to clarify thank you again!! Attachment 827530

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: MINIF and MAXIF values in range help

    I'll have a look in the morning. It's evening here, and time to eat.

  10. #10
    Registered User
    Join Date
    05-02-2020
    Location
    tennessee
    MS-Off Ver
    2019
    Posts
    17

    Re: MINIF and MAXIF values in range help

    ahh yes many hours ahead. Thank you so much Glenn ! have a good evening.

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: MINIF and MAXIF values in range help

    A bit of a guess, as your picture didn't attach properly (a file is ALWAYS preferred t a non-editable picture of a file, btw)

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    05-02-2020
    Location
    tennessee
    MS-Off Ver
    2019
    Posts
    17

    Re: MINIF and MAXIF values in range help

    thank you Glenn much appreciated! i will attach files as examples on future posts.

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: MINIF and MAXIF values in range help

    No problem! Files are much more useful than pictures...

+ 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] Need formula of mutiple condition with mutiple values.
    By max2599 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-09-2021, 05:00 AM
  2. Returning a value based on 3 conditions from mutiple tables
    By Bflare in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-10-2020, 07:37 AM
  3. [SOLVED] Index match with mutiple conditions (?)
    By helloxxx in forum Excel General
    Replies: 34
    Last Post: 07-27-2019, 03:26 AM
  4. [SOLVED] Help with formula and mutiple conditions
    By enhydra in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-11-2017, 10:31 AM
  5. [SOLVED] COUNTIF mutiple criteria in a single range, but with mutiple ranges.
    By Janbi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-19-2016, 06:31 AM
  6. Mutiple SUMIF conditions - help needed please
    By iantix in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-18-2016, 05:03 AM
  7. [SOLVED] Trouble calculating Overtime for Mutiple Rates and Employees [Many Conditions]
    By itsavvy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-24-2013, 08:48 AM

Tags for this Thread

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