+ Reply to Thread
Results 1 to 4 of 4

Max IF minus criteria in date range

  1. #1
    Registered User
    Join Date
    10-15-2018
    Location
    London, England
    MS-Off Ver
    365
    Posts
    75

    Max IF minus criteria in date range

    Please help.............

    I current use a formula {=MAX(IF($E4:$Z4="F",$E$3:$Z$3))} that looks at a range of cell values for "F" and then returns the max date that corresponds to "F".

    This date ref is then used in =SUM(TODAY()-***this returned date***)

    But I need the =SUM formula to deduct the amount of "S" cell values since the MAX "F" date


    Difficult to explain so I have attached a example spreadsheet with a more detailed query
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Max IF minus criteria in date range

    Try this in B4:

    =TODAY()-MAX(C4:D4)-COUNTIFS(INDEX(E4:Z4,MATCH(MAX(C4,D4),E3:Z3,0)):Z4,"S")

    It subtracts the number of "S" values in the range from where the max of C4 and D4 occur up to the end of the range.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    10-15-2018
    Location
    London, England
    MS-Off Ver
    365
    Posts
    75

    Re: Max IF minus criteria in date range

    That's perfect, thank you very much

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Max IF minus criteria in date range

    Glad it worked for you, and thanks for the rep.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Pete

+ 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. Replies: 9
    Last Post: 10-02-2019, 12:08 PM
  2. Replies: 5
    Last Post: 10-03-2016, 03:39 AM
  3. Replies: 8
    Last Post: 12-20-2015, 11:46 PM
  4. Calculate start date from finish date minus 14 working hours
    By PietBom in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-08-2014, 07:23 PM
  5. formula for commit date minus completion date excluding weekends
    By jtmayo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-07-2012, 08:42 PM
  6. Replies: 5
    Last Post: 12-15-2011, 11:16 AM
  7. Formula: Finding todays date minus min value from certain range + extra condition
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-04-2011, 10:21 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