+ Reply to Thread
Results 1 to 9 of 9

Sumifs if 2 dates are between another 2 dates.

  1. #1
    Registered User
    Join Date
    11-23-2022
    Location
    Australia
    MS-Off Ver
    OneDrive
    Posts
    9

    Sumifs if 2 dates are between another 2 dates.

    I am trying to find the right formula to add the amount in Column F if the dates in columns C fall within the date range in column G (Start of the fortnight) and H (End of the fortnight). I have added a pic of the spreadsheet to assist. THANK YOU SOO MUCH for your help!

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: Sumifs if 2 dates are between another 2 dates.

    No picture attached, however,

    Hi and welcome to the forum

    Pictures are of little value. Honestly, no one wants to re-type your data to try and solve your issue. Additionally, we would only be guessing at how your data was structured, ie. formulas, formatting, etc. Additionally, due to how some browsers behave, many of our members cannot see uploaded pictures/images. Please do not take this route.

    Please attach a sample file that represents what you have. The structure of your attachment should be the same structure as your actual data. Any proprietary information should be changed.

    Include in the attachment any code you're currently using (whether it works or not) and an "After" of what you wish the output to be.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Sumifs if 2 dates are between another 2 dates.

    Try to follow this format:

    =SUMPRODUCT(SUMIFS(Range F,Range G,"<=" & Range C,Range H,">=" & Range C))

    adjust each range with actual range
    Quang PT

  4. #4
    Registered User
    Join Date
    11-23-2022
    Location
    Australia
    MS-Off Ver
    OneDrive
    Posts
    9

    Re: Sumifs if 2 dates are between another 2 dates.

    Payslip CALCULATOR.xlsx Hopefully I have attached the file now. Thank you again for your help!

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Sumifs if 2 dates are between another 2 dates.

    Which sheet, Where and What is expected outcome?

  6. #6
    Registered User
    Join Date
    11-23-2022
    Location
    Australia
    MS-Off Ver
    OneDrive
    Posts
    9

    Re: Sumifs if 2 dates are between another 2 dates.

    I am needing it for both sheets please? The first sheet I am needing the cells in column I to sum the amounts in column F if the date in column C is within the date range in G (Start date) and H (End dates). In the second sheet I am needing the cells in column J to sum the amounts in column F if the dates in column C (Payslip start date) and D (payslip end date) is within the date range in G (Start date) and H (End dates). I hope this makes sense...

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,569

    Re: Sumifs if 2 dates are between another 2 dates.

    On the paydate sheet try pasting the following into cell I4 and then copying down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  8. #8
    Registered User
    Join Date
    11-23-2022
    Location
    Australia
    MS-Off Ver
    OneDrive
    Posts
    9

    Re: Sumifs if 2 dates are between another 2 dates.

    Unfortunately it is adding daily amounts for amounts not within the specified dates. Its adding the daily rate for 17/08/2022, 24/08/2022, 31/08/2022 and 7/09/2022 when the date range is 19/8/22- 1/9/22.

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,569

    Re: Sumifs if 2 dates are between another 2 dates.

    Here is a copy of the file with the formula applied in column I.
    To check the formula I put the corresponding SUMPRODUCT formula in cell K4. If you run the Evaluate Formula feature (Formulas tab) in cell K4 you'll see that the array shows a zero for the values in all but cells F5:F6 which are the daily amounts for August 24th and 31st.
    Let us know if you have any questions.
    Attached Files Attached Files

+ 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: 2
    Last Post: 10-11-2022, 04:06 AM
  2. SUMIFS dates are between or equal to specific dates
    By mckimbo7 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-04-2020, 10:53 AM
  3. Replies: 8
    Last Post: 07-20-2018, 11:52 AM
  4. SumIfs Between two dates
    By adam2308 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-01-2014, 11:31 AM
  5. Sumifs between dates
    By rpiggott in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-11-2013, 03:40 PM
  6. [SOLVED] SUMIFS Between two dates
    By nsens in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-17-2013, 06:28 AM
  7. [SOLVED] Auto filling dates based on previously entered dates and averaging numbers if dates equal
    By grambograham in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-11-2012, 03:21 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