+ Reply to Thread
Results 1 to 8 of 8

Refine SUMIF to include items within a date range

  1. #1
    Registered User
    Join Date
    05-01-2020
    Location
    Leeds
    MS-Off Ver
    MS Office 10
    Posts
    4

    Question Refine SUMIF to include items within a date range

    I have the following IF statement, which is looking Paul's sheet and where it states 'Renewal' or 'New' in the C column, it returns the values in column J...

    =SUMIF(Paul!$C$4:$C$37,April!$B$1,Paul!$J$4:$J$37)

    I now need this to look at a date range on Paul's sheet and only return the above data in that date range.

    Is this possible?

    Thank you
    Rachel

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: IF Statement Help please

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,720

    Re: IF Statement Help please

    What column has the dates? What cells have the range of dates you want to include?
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    05-01-2020
    Location
    Leeds
    MS-Off Ver
    MS Office 10
    Posts
    4

    Question Re: Refine SUMIF to include items within a date range

    Data is on 'Ian!' sheet
    So column B6:B500 on Ian! will have the date
    Column J6:J500 has the income but it is dependent on the value in column C whether it shows as 'New' or 'Renewal' - I want to show separate results for New and Renewal on another sheet as a summary page month by month.

    I currently have this formula that works looking at the total but I now need it to refer to a date range on the same sheet for Ian!

    =SUMIF(Ian!$B$6:$B$500,April!$A$1(Ian!$C$6:$C$500,April!$B$1,Ian!$J$6:$J$500))

  5. #5
    Registered User
    Join Date
    05-01-2020
    Location
    Leeds
    MS-Off Ver
    MS Office 10
    Posts
    4

    Question Re: Refine SUMIF to include items within a date range

    I think I have attached a sample spreadsheet...
    Attached Files Attached Files

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

    Re: Refine SUMIF to include items within a date range

    To get separate sums of New and Renewal for the month of April for Ian through Mike C paste the following into cell B2, drag the fill handle down to cell B11 and then over to cell C11:
    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.

  7. #7
    Registered User
    Join Date
    05-01-2020
    Location
    Leeds
    MS-Off Ver
    MS Office 10
    Posts
    4

    Re: Refine SUMIF to include items within a date range

    Thank you so much, this is great!

    I thought I would be able to tweak this for the remaining columns but it doesn't seem to be working, as I've never used the SUMIFS or INDIRECT functions and don't understand what and how it's looking at the data.

    On April! column D needs to show the variance shown on Ian! column K for 'Renewal' only which is shown in column C

    Then on April! in column E I need to show the variance overall which includes both New and Renewal business.

    Then on April! in column F I need to show the total income overall which is for New and Renewal business shown in column J

    I assume this will work, when I copy the sheet and rename it May and repeat for June, July, August etc to show the separate in month summaries?

    Thank you and look forward to receiving your advice

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

    Re: Refine SUMIF to include items within a date range

    Please try the following:
    For column D: =SUMIFS(INDIRECT($A2&"!K:K"),INDIRECT($A2&"!C:C"),C$1,INDIRECT($A2&"!B:B"),">="&$A$1,INDIRECT($A2&"!B:B"),"<="&EOMONTH($A$1,0))
    For column E: =SUMIFS(INDIRECT($A2&"!K:K"),INDIRECT($A2&"!B:B"),">="&$A$1,INDIRECT($A2&"!B:B"),"<="&EOMONTH($A$1,0))
    For column F: =SUMIFS(INDIRECT($A2&"!J:J"),INDIRECT($A2&"!B:B"),">="&$A$1,INDIRECT($A2&"!B:B"),"<="&EOMONTH($A$1,0))
    The formulas will work for May, June etc. if the date for the first of each of those months is placed in cell A1 on the respective sheet. As INDIRECT is a volatile function which may slow the performance of the workbook, a more efficient way to do this would be to change the date on the existing (April) sheet.
    Let us know if you have any questions.

+ 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] date not include sunday,saturday and not include red date in tabel
    By alamsyah in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-19-2019, 11:55 AM
  2. [SOLVED] Refine yes no if statement to include Blank
    By nigelog in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-16-2016, 12:28 PM
  3. [SOLVED] Sumif to include start date
    By lejanco in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-24-2014, 10:50 AM
  4. [SOLVED] SUMIF or SUMIFS to find text and date between from items in a table
    By Beefy1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-19-2014, 10:38 PM
  5. [SOLVED] Filtering on date range, but capturing items that 'straddle' the range
    By Kite3 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-30-2013, 05:38 AM
  6. Replies: 4
    Last Post: 10-10-2012, 03:38 PM
  7. Replies: 1
    Last Post: 02-09-2012, 04:13 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