+ Reply to Thread
Results 1 to 10 of 10

min and max date in certain quarter

  1. #1
    Registered User
    Join Date
    02-14-2020
    Location
    AMsterdam, Netherlands
    MS-Off Ver
    365
    Posts
    78

    min and max date in certain quarter

    Hi All!

    For a sales reporting tool I require to have a minimum date in a quarter and a maximum date in a selected quarter.

    In the attachment you'll find a calendar and ive added the expected results.

    As our company has a broken fiscal year, different than the one of our supplier, (which are both different to a calendar year) i have created custom columns.

    Please have a look and see if you can find me a resolution to find the dates based on the values that will be selected in the dropdowns for "Year" and "Quarter" for CompanyA and for CompanyB.

    Thanks a lot in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: min and max date in certain quarter

    So the MIN is straight forward,

    Please Login or Register  to view this content.
    The Max of a particular Quarter however will take a bit more thinking
    If someone has helped you then please add to their Reputation

  3. #3
    Registered User
    Join Date
    02-14-2020
    Location
    AMsterdam, Netherlands
    MS-Off Ver
    365
    Posts
    78

    Re: min and max date in certain quarter

    Well, im anxious, get on with it then.. :P No just kidding!

    Thanks for the help so far!

    Hopefully someone else finds a way, my thinking was along the line of: IFS, MIN, MAX.
    But im unable to produce a formula for it.

    Ill have a go with your formula, thank you so far!

  4. #4
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: min and max date in certain quarter

    I think this is it, had to add 2 helper columns at H and L then the formula for the Max is

    Please Login or Register  to view this content.
    I've attached my sheet for reference
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-14-2020
    Location
    AMsterdam, Netherlands
    MS-Off Ver
    365
    Posts
    78

    Re: min and max date in certain quarter

    Ive tried your formula, but its looking at the when the year starts, it has only one argument.

    But it should be on both the YEAR and the Quarter.

    So when the year is 2022 and the quarter is 1, then find me the lowest number. and for the last date, the highest number.

    When i select Q2, in Column M, the smallest date should be: A122 or 01-05-22

    Your help is being appreciated though!

  6. #6
    Registered User
    Join Date
    02-14-2020
    Location
    AMsterdam, Netherlands
    MS-Off Ver
    365
    Posts
    78

    Re: min and max date in certain quarter

    Thanks, this works!
    Although im not too sure if i want more columns, my workbook is already around 25MB.

    I greatly thank you for your solution, however if anybody else can provide a solution based on the calendar i made without extra columns, i would highly appreciate that.

    Shout out to PJ, for being the first!

  7. #7
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: min and max date in certain quarter

    l12
    =MINIFS(A:A,B:B,L5,G:G,RIGHT(M5,1))
    m12
    =MAXIFS(A:A,B:B,L5,G:G,RIGHT(M5,1))

    and similarly for company b but change the columns to H & J

  8. #8
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: min and max date in certain quarter

    ooops my mistake, luckily those new helper columns makes it fairly easy to change

    Please Login or Register  to view this content.
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: min and max date in certain quarter

    Quote Originally Posted by davsth View Post
    l12
    =MINIFS(A:A,B:B,L5,G:G,RIGHT(M5,1))
    m12
    =MAXIFS(A:A,B:B,L5,G:G,RIGHT(M5,1))

    and similarly for company b but change the columns to H & J
    you know when you overthink something?....well that's me and my solution....

    This one is a far more sensible and easier version

  10. #10
    Registered User
    Join Date
    02-14-2020
    Location
    AMsterdam, Netherlands
    MS-Off Ver
    365
    Posts
    78

    Re: min and max date in certain quarter

    Sorry PJ, but Davsth has captured the recognition kudo's for this one! :P

    This is the solution I was searching for, thank you guys for helping me out!

+ 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] Calculate Quarter (date) and Calculate Average of Quarter and Sum of Quarter
    By Bobbbo in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-26-2020, 06:16 PM
  2. [SOLVED] Formula for converting a date to quarter and leaving blank cell for no date values
    By jayc2111 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-10-2019, 12:57 AM
  3. [SOLVED] Using SumProduct for dates inclusive of Year to Date, Month to date, Quarter to Date
    By cartica in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-26-2014, 04:22 PM
  4. Month to Date and Quarter to Date Average from Daily data
    By asvanthi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-15-2014, 07:10 AM
  5. Date Range - Start and End Date - Identify dates in a quarter
    By Nikki Fox in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-12-2012, 06:05 AM
  6. Replies: 2
    Last Post: 01-04-2012, 09:15 AM
  7. Replies: 7
    Last Post: 05-11-2005, 04:06 PM

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