+ Reply to Thread
Results 1 to 19 of 19

Countif/Sumproduct checking two seperate date ranges and one other

  1. #1
    Registered User
    Join Date
    04-03-2014
    Location
    Brighton
    MS-Off Ver
    Excel 2010
    Posts
    14

    Question Countif/Sumproduct checking two seperate date ranges and one other

    Hi everyone, made this account just to ask this question as im racking my brains over it.

    I've tried Countif and SumProduct but nothing has worked.

    Column A is Date range 1 - When the file was first made
    Column B is Date range 2 - When the file was completed.
    and Column E is the Handler, the person who closed the file.

    What i want to work out is how many files the person closed in one month that was opened in another.

    so far i have this...

    =SUMPRODUCT((A!B:B<=DATE(2014,3,31))*(A!B:B>=DATE(2014,3,1))*(A!E:E=B12)*(A!A:A<=DATE(2014,5,31))*(A!A:A>=DATE(2014,4,1)))
    but it doesn't work, im not sure what the hell im doing wrong as ive gotten it working with a single month, yet duplicating the month requirement and changing the criteria hasn't worked at all.

    its probably something really simple and stupid but i though id best ask here coz you all seem like nice and helpful people!
    Last edited by AdmiralGrumble; 04-04-2014 at 11:59 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Countif/Sumproduct checking two seperate date ranges and one other

    With this formula, do you get an error, or you get 0 as answer?

  3. #3
    Registered User
    Join Date
    04-03-2014
    Location
    Brighton
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Countif/Sumproduct checking two seperate date ranges and one other

    I just get a 0, not sure what im doing wrong as i know the data is there. it should be coming back with 10

  4. #4
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Countif/Sumproduct checking two seperate date ranges and one other

    Not to dissuade you from using SUMPRODUCT, but have you tried this with CountIfS already?

    Your formula looks fine. Have you double checked the format of dates in the column A & B of your 'A' sheet.
    Last edited by jewelsharma; 04-03-2014 at 11:15 AM. Reason: Pressed post too soon.

  5. #5
    Registered User
    Join Date
    04-03-2014
    Location
    Brighton
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Countif/Sumproduct checking two seperate date ranges and one other

    I've tried but nothing has worked thus far. im not sure if the date range im using for it applies to Countifs.

  6. #6
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Countif/Sumproduct checking two seperate date ranges and one other

    If you share the workbook (just a few sample rows), i'll look at it tomorrow.

  7. #7
    Registered User
    Join Date
    04-03-2014
    Location
    Brighton
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Countif/Sumproduct checking two seperate date ranges and one other

    Whats the best way to share here? Googledocs?

  8. #8
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Countif/Sumproduct checking two seperate date ranges and one other

    No. You can attach directly. Click on Go Advanced and scroll down to Manage Attachments.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  9. #9
    Registered User
    Join Date
    04-03-2014
    Location
    Brighton
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Countif/Sumproduct checking two seperate date ranges and one other

    Here you go!
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Countif/Sumproduct checking two seperate date ranges and one other

    AdmiralGrumble,
    Just a quick question - what does B12 in your SumProduct formula refer to? If you replace that reference with the value, does the formula work?
    I'm away from my pc, but i will try it in sometime.

    Regards,
    Jewel

  11. #11
    Registered User
    Join Date
    04-03-2014
    Location
    Brighton
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Countif/Sumproduct checking two seperate date ranges and one other

    That refers to the Team, tried that and got the same results unfortunately.

  12. #12
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Countif/Sumproduct checking two seperate date ranges and one other

    Have we got the "Open Dates" & "Closed Dates" swapped by any chance? Please confirm!

  13. #13
    Registered User
    Join Date
    04-03-2014
    Location
    Brighton
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Countif/Sumproduct checking two seperate date ranges and one other

    Yes and No.

    It was, but i swapped them over. same result :-/

  14. #14
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Countif/Sumproduct checking two seperate date ranges and one other

    this works on my PC:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    I just tried it on the same sheet, so I deleted the sheet reference. Does it work for you?

  15. #15
    Registered User
    Join Date
    04-03-2014
    Location
    Brighton
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Countif/Sumproduct checking two seperate date ranges and one other

    that is PERFECT!!

    Thank you so much for the help! This is going to help me get things done so much easier now. Rep for Everyone for being so helpfull!

  16. #16
    Registered User
    Join Date
    04-03-2014
    Location
    Brighton
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Countif/Sumproduct checking two seperate date ranges and one other

    Resurrecting the old thread to save clogging the place with new ones!

    Is there any way to use a Cell Reference for the date as seen here:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Ive tried replacing the date before and it doesnt work, like so: (B12 being a random cell for examples sake)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  17. #17
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Countif/Sumproduct checking two seperate date ranges and one other

    Hi,

    You don't need DATE(). Simply B12 will do, providing the entry in that cell is a proper date.

    Regards

  18. #18
    Registered User
    Join Date
    04-03-2014
    Location
    Brighton
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Countif/Sumproduct checking two seperate date ranges and one other

    Works Brilliant! Thanks!

  19. #19
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Countif/Sumproduct checking two seperate date ranges and one other

    You're welcome!

+ 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. COUNTIF or SUMPRODUCT? - Comparing multiple ranges
    By RockMonkey in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-19-2014, 12:41 PM
  2. Replies: 2
    Last Post: 01-07-2013, 09:46 AM
  3. [SOLVED] checking if a date is in between a certain range. with multiple ranges
    By biddum in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-02-2012, 02:56 PM
  4. Using multipel sum ranges in Sumproduct() & countif() in array
    By mubashir aziz in forum Excel General
    Replies: 16
    Last Post: 07-08-2009, 12:56 AM
  5. Replies: 7
    Last Post: 05-29-2009, 08:03 AM

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