+ Reply to Thread
Results 1 to 6 of 6

SUMIF (if) a Date is before a List of Dates

  1. #1
    Registered User
    Join Date
    04-07-2023
    Location
    ventura
    MS-Off Ver
    365
    Posts
    11

    SUMIF (if) a Date is before a List of Dates

    Hi everyone! I am currently working on a project where I need to identify how much a given employee has accrued vacation based on the hours worked that fall after their accrual start date from a YTD hours list. For example if an employee starts on 1/1/23, they are eligible to begin accruing vacation time 6mo after employment (in this instance it would be 7/1/23). I have two sets of data I'm working with. 1 set is the Employee information with their Accrual Start Date, and the other set of information is their YTD Hours Worked by pay period.

    Is it possible to write a formula using SUMIF that says, "From the list of hours worked, sum all of the hours only if the accrual start date is after the check date"?


    Operationally I'm trying to write in B2:

    1) Use A2 to check the Check Date list.
    2) If A2 is before the Check Date, SUMIF

    The reason I'm having so much trouble is because if there is an employee who's accrual starts say 3/1/23, the sumif will give me all the hours from 1/24/23 to 12/29/23, however I'm only looking for the hours from 3/1/23 (their accrual start date) to 12/29/23. I hope this makes sense and thank you in advanced for the help!

    Screenshot 2024-01-03 184706.png
    Attached Files Attached Files
    Last edited by iilman92; 01-03-2024 at 11:09 PM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,508

    Re: SUMIF (if) a Date is before a List of Dates

    so if I'm understanding this, for the person in cell A2 there would be nothing to show in B2 because the accrual start date is before the check date, right?
    but the person in A3 has an accrual start date after the check date, so what should the answer be, 45 as shown in F3? What would be the reason to use a sumif formula?
    it seems a simple if statement would suffice, something like... =IF(C2>A2,"",F2) dragged down.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: SUMIF (if) a Date is before a List of Dates

    Please try in B2 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: SUMIF (if) a Date is before a List of Dates

    This formula could work too:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-07-2023
    Location
    ventura
    MS-Off Ver
    365
    Posts
    11

    Re: SUMIF (if) a Date is before a List of Dates

    This worked beautifully, thank you so much!

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: SUMIF (if) a Date is before a List of Dates

    You are Welcome!

    Thanks for the feedback. Glad to have helped. .

    If you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help

+ 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] Two Column List - Descending Dates and IDs- Find Next Date in List Matching Row ID
    By alcow in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-01-2022, 01:06 AM
  2. [SOLVED] Dates Not Matching Date Range
    By crazyforexcel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-05-2020, 07:30 AM
  3. [SOLVED] Finding Dates Within Date Range (Based on Today's Date) Whilst Matching Name?
    By EduardStoo in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-08-2019, 10:31 AM
  4. Sumif Based on matching date criteria
    By krunk in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-18-2013, 11:19 AM
  5. [SOLVED] SUMIF only if matching a date criteria
    By Adsup01 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-12-2012, 11:14 PM
  6. Problem with Sumif matching date format
    By faxmebeer in forum Excel General
    Replies: 2
    Last Post: 11-19-2010, 03:54 PM
  7. List Matching with Dates: Using Dates as filters
    By Thawk in forum Excel General
    Replies: 6
    Last Post: 02-15-2009, 05:12 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