+ Reply to Thread
Results 1 to 15 of 15

Help With COUNTIFS Using Greater Than Criteria

  1. #1
    Registered User
    Join Date
    03-05-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    14

    Help With COUNTIFS Using Greater Than Criteria

    Hello,

    I have a COUNTIFS formula that I am trying to get to work. It is as follows:

    =COUNTIFS(Week_Created,A13,Type,"ABC",Year,2013,CreatedDate,">"&41274)

    The problem I am having is with the last criteria - CreatedDate,">"&41274, When I remove the">"& and just leave the value, the formula works, counting those created on that day. However, I need all values created after that day, not on that day. I have tried specifying as ">41274" and ">"&41274 but neither work. Any suggestions on how to get the greater than criteria in the formula working?

    Thanks a lot!
    Amy

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

    Re: Help With COUNTIFS Using Greater Than Criteria

    Hi Amy,

    Your formula looks perfectly fine to me. What result are you getting? An error? Zero?

    Regards
    Click * below if this answer helped

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

  3. #3
    Registered User
    Join Date
    03-05-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Help With COUNTIFS Using Greater Than Criteria

    Hi,
    I am getting a zero. I've been scratching my head about this all morning...
    Thanks!

  4. #4
    Forum Contributor
    Join Date
    11-28-2011
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2007 & 2013
    Posts
    129

    Re: Help With COUNTIFS Using Greater Than Criteria

    How is the range formatted that has the dates. If it is set to text it will not work. Would you be against also setting a separate cell that has the date you want to look for, so you do not have to change the formula each time? (if that question makes sense).

  5. #5
    Registered User
    Join Date
    03-05-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Help With COUNTIFS Using Greater Than Criteria

    Hello,
    I checked the formatting and everything is formatted correctly. Plus, it works when I leave it as just a number, it's only when I add the ">" that I have a problem...
    Thanks!

  6. #6
    Registered User
    Join Date
    03-05-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Help With COUNTIFS Using Greater Than Criteria

    Also, I tried putting the date in a separate cell and it didn't work that way either...

  7. #7
    Forum Contributor
    Join Date
    11-28-2011
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2007 & 2013
    Posts
    129

    Re: Help With COUNTIFS Using Greater Than Criteria

    Try this
    Please Login or Register  to view this content.
    It is an array function so do not hit Enter hit, CTRL+SHIFT+ENTER

  8. #8
    Registered User
    Join Date
    03-05-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Help With COUNTIFS Using Greater Than Criteria

    I get a zero using the array formula as well....

  9. #9
    Forum Contributor
    Join Date
    11-28-2011
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2007 & 2013
    Posts
    129

    Re: Help With COUNTIFS Using Greater Than Criteria

    can you put a sample sheet up?

  10. #10
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,702

    Re: Help With COUNTIFS Using Greater Than Criteria

    Are you sure that zero isn't the correct answer?

    41274 is equivalent to 31st December 2012, why do you have to check that created date is > that date if you are already checking that "Year" = 2013? Do those relate to different dates?
    Audere est facere

  11. #11
    Forum Contributor
    Join Date
    11-28-2011
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2007 & 2013
    Posts
    129

    Re: Help With COUNTIFS Using Greater Than Criteria

    Quote Originally Posted by daddylonglegs View Post
    Are you sure that zero isn't the correct answer?

    41274 is equivalent to 31st December 2012, why do you have to check that created date is > that date if you are already checking that "Year" = 2013? Do those relate to different dates?
    Didnt even think about what date that number actually was.

  12. #12
    Registered User
    Join Date
    03-05-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Help With COUNTIFS Using Greater Than Criteria

    Unfortunately my data has protected info in it so I can't post it. However, I have been playing around with it and got it to work this way CreatedDate,">*2012". It must be a formatting thing, even though it says it is formatted as a date. Unless you have other thoughts??
    Thanks for all your help with this!!

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

    Re: Help With COUNTIFS Using Greater Than Criteria

    Forgive me, but are you absolutely sure you have at least one result that does actually match all these criteria?

  14. #14
    Forum Contributor
    Join Date
    11-28-2011
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2007 & 2013
    Posts
    129

    Re: Help With COUNTIFS Using Greater Than Criteria

    It must be a formatting thing and without seeing it wouldn't be able to figure it out. (Understand you can't post your sheet). Glad you figured it out though that works for you!

  15. #15
    Registered User
    Join Date
    03-05-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Help With COUNTIFS Using Greater Than Criteria

    Yes, I used filters to double check all of my criteria...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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