+ Reply to Thread
Results 1 to 9 of 9

Max date with condition

  1. #1
    Registered User
    Join Date
    10-17-2021
    Location
    Caracas
    MS-Off Ver
    2016
    Posts
    8

    Max date with condition

    Please I need help. Excuse my English, I use Google translator.
    I need a formula to solve:
    I have a data range A2: B15, in column A record dates, in column B the variables X, Y and Z.
    I need to count the occurrences, only of X and Y, and know which is the greater of the two, if the number of greater occurrences is after the last date of the lesser occurrence, the greater occurrence will be shown as a result.
    Example:
    1- If Σ X> Σ Y first date X> last date Y = X
    2- If Σ Y> Σ Z first date Y> last date Z = Y
    If other <> to 1 or 2 = XX
    I use Excel 2016. Thanks for your help
    Attached Files Attached Files

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Max date with condition

    Not 100% sure but perhaps this is the formula you're looking for?

    Please Login or Register  to view this content.
    WBD
    Office 365 on Windows 11, looking for rep!

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Max date with condition

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. As yu are new, I will do it for you this time: https://chandoo.org/forum/threads/ma...ditions.47054/)

    Also: https://www.ozgrid.com/forum/index.p...th-conditions/

    https://www.mrexcel.com/board/thread...tions.1184890/
    Last edited by alansidman; 10-17-2021 at 02:50 PM.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    10-17-2021
    Location
    Caracas
    MS-Off Ver
    2016
    Posts
    8

    Re: Max date with condition

    Thanks for your help, but my Excel 2016 does not have yi MINIFS or MAXIFS available

  5. #5
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Max date with condition

    Here is different attempt. It does not use MAXIFS().

    First a question:

    In post #1 you say: 2- If Σ Y> Σ Z first date Y> last date Z = Y
    But in your sample workbook you say for the Σ Y > Σ Z case; first date Y > last date X = Y
    Is it last date Z or last date X? In this formula I have used last date Z. It's easily changeable in the formula - in the last "lookup" change "Z" to "X"

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Let us know if this is what you are looking for.
    Geoff

    Did I help significantly? If you wish, click on * Add Reputation to say thanks.
    If your problem has been resolved please select ?Solved? from the Thread Tools menu

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

    Re: Max date with condition

    @ppcash

    Please acknowledge that you have read and understood the admin note above. Thanks.

  7. #7
    Registered User
    Join Date
    10-17-2021
    Location
    Caracas
    MS-Off Ver
    2016
    Posts
    8

    Re: Max date with condition

    Thanks for your help, although it did not work as it is, it helped me to find the solution.

  8. #8
    Registered User
    Join Date
    10-17-2021
    Location
    Caracas
    MS-Off Ver
    2016
    Posts
    8

    Re: Max date with condition

    Quote Originally Posted by GeoffW283 View Post
    Here is different attempt. It does not use MAXIFS().

    First a question:

    In post #1 you say: 2- If Σ Y> Σ Z first date Y> last date Z = Y
    But in your sample workbook you say for the Σ Y > Σ Z case; first date Y > last date X = Y
    Is it last date Z or last date X? In this formula I have used last date Z. It's easily changeable in the formula - in the last "lookup" change "Z" to "X"

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Let us know if this is what you are looking for.
    Thanks for your help, although it did not work as it is, it helped me to find the solution.

  9. #9
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Max date with condition

    Can you post your solution in case others are interested?

+ 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. min date with if condition
    By Valeria88 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-19-2018, 10:12 AM
  2. Replies: 1
    Last Post: 05-20-2017, 10:29 AM
  3. Date entry control-condition date in cell J>date in cell H
    By erkamu in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-01-2014, 07:04 AM
  4. Replies: 3
    Last Post: 02-02-2014, 04:26 AM
  5. use date in row as condition
    By flornkex in forum Excel General
    Replies: 4
    Last Post: 10-14-2009, 11:47 AM
  6. multi condition format? lookup and date condition valid for.
    By D_Rennie in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-13-2009, 11:37 AM
  7. Calculate a date or key a date on condition
    By Tolo in forum Excel General
    Replies: 2
    Last Post: 06-13-2006, 11:16 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