+ Reply to Thread
Results 1 to 3 of 3

Need to count if due within two weeks AND status equals two specific values in another col

  1. #1
    Registered User
    Join Date
    01-07-2013
    Location
    Jersey City, New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    14

    Cool Need to count if due within two weeks AND status equals two specific values in another col

    I have a due date column and a status column. Status column can be one of five values.

    Need to count if record is within two weeks of due date AND status field is NOT "In Review" or "Complete".

    Should I use Countif or Sumif - and how can I do this with the multiple criteria?

    Thanks.

  2. #2
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Need to count if due within two weeks AND status equals two specific values in another

    neither may suit this need since COUNTIF and SUMIF do not allow for any manipulation in the RANGE argument, SUMPRODUCT might work better.

    it could be structured as:

    =sumproduct(((due_date-today's_date)<=14)*((status<>"in review")+(status<>"complete")))
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Need to count if due within two weeks AND status equals two specific values in another

    or, take a look at using countifS(), it allows for more criteria to be specified
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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