+ Reply to Thread
Results 1 to 6 of 6

Sumifs that also compares 2 columns and uses latest date

  1. #1
    Registered User
    Join Date
    06-26-2013
    Location
    Kent
    MS-Off Ver
    Office 365 - Excel
    Posts
    15

    Sumifs that also compares 2 columns and uses latest date

    Hi Everyone

    Wonder if you can help with a formula. Basically needs to total the amount of "In Plan" that are due to end in the months H3-J3. As you can see some of the End Dates have been Rescheduled with another column showing this so need something to only take the latest end date. I have tried incorporating a MAX but only get errors

    Below is where I got to but have also attached a workbook to make things easier
    =SUMIFS(B:B,"Permenant",C:C,"In Plan"&MAX(D:E)&H2)

    I am not precious over the formula so if it can be done in another way I would be happy to hear it!

    Many thanks for your help!

    Jamie
    Attached Files Attached Files

  2. #2
    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,719

    Re: Sumifs that also compares 2 columns and uses latest date

    Are you really still using the now ancient Excel 2003??? If not, would you please update your user profile. Thanks.
    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.

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

    Re: Sumifs that also compares 2 columns and uses latest date

    are you still using Excel 2003? SUMIFS was not available in that version.
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Registered User
    Join Date
    06-26-2013
    Location
    Kent
    MS-Off Ver
    Office 365 - Excel
    Posts
    15

    Re: Sumifs that also compares 2 columns and uses latest date

    Woops sorry, we are using office 365 at work but couldn't email externally so put it together quick here so an example could be available. I only have 2003 on my laptop as not updated it so a formula for the newer version would be preferred, will update my profile now!

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

    Re: Sumifs that also compares 2 columns and uses latest date

    Updated to XLSX. One possibility:

    =SUMPRODUCT(($B$2:$B$20="Permenant")*(IF($E$2:$E$20="",$D$2:$D$20,$E$2:$E$20)>=H2)*(IF($E$2:$E$20="",$D$2:$D$20,$E$2:$E$20)<=EOMONTH(H2,0)))

    There is no 30th February, even in leap years (cell D19... changed in this file).
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-26-2013
    Location
    Kent
    MS-Off Ver
    Office 365 - Excel
    Posts
    15

    Re: Sumifs that also compares 2 columns and uses latest date

    You sir are an absolute legend! Thank you so much, it's really appreciated
    Last edited by AliGW; 01-21-2021 at 06:32 AM. Reason: PLEASE don't quote unnecessarily!

+ 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 latest date from two columns with exceptions
    By madman411 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-28-2020, 11:35 AM
  2. [SOLVED] VBA Required to find Latest date by comparing some columns.
    By amb2301 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-08-2020, 03:08 AM
  3. [SOLVED] Lookup the date and return the latest value under some conditions from multiple columns
    By PMH2384 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-09-2016, 03:31 AM
  4. [SOLVED] Plot for the last value latest date in selected columns
    By Sekars in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-07-2016, 02:09 AM
  5. Replies: 8
    Last Post: 04-08-2015, 10:10 PM
  6. [SOLVED] IF AND or SUMIFS comparing Months from 2 date columns and text from 2 other columns
    By jrochet in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-22-2012, 11:06 AM
  7. [SOLVED] Finding the Latest Date from Several Dates in Different Columns
    By sdupont in forum Excel General
    Replies: 4
    Last Post: 12-30-2005, 04:55 PM

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