+ Reply to Thread
Results 1 to 2 of 2

Cannot CountIfs for Workday Criterion?!?!

  1. #1
    Registered User
    Join Date
    06-04-2019
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1

    Cannot CountIfs for Workday Criterion?!?!

    In column A, I have the date that the order was received. In column B, I have the date or time the order went into review. In column C, I have the date the order was completed. In column D, I have the date the order is due.
    The due date (col. D) is either 1, 5, 7, or 10 days after the order was received (col. A).
    If D is 5 or more days after A, then column B is populated by a date.
    If D is 1 day after A and goes into review (B) the same day it is due (D), then column B is populated by a time.
    If D is 1 day after A and goes into review after the day it is due, then column B is populated by a date.

    I am trying to count how many 5 or more day turnarounds are completed per month. Using the following formula counts each cell in column B that contains a date (and not a time) during the specified completion date (C) range. But this counts all of the 1 day turnarounds that went out late.
    =COUNTIFS(C:C,">="&date(2019,1,1),C:C,"<"&date(2019,2,1),B:B,">="&date(2019,1,1),B:B,"<"&date(2019,2,1))

    Any ideas?

    Sample Table.JPG

  2. #2
    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
    53,052

    Re: Cannot CountIfs for Workday Criterion?!?!

    1. That formula is counting all instances of when C >=Jan 1 AND C < Feb 1 (ie all of Jan), and then the same for B. Is that what you are going for?

    2. I would strongly advise against mixing dates (a regular number) and time (a fraction/decimal of 1) in the same column.

    3. Consider adding a helper column that will ID those rows that match your criteria, then count those?

    4. When all else fails, upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    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)

Similar Threads

  1. COUNTIFs: Multiple ranges, single criterion with OR logic
    By A.Khan in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-20-2017, 06:05 AM
  2. Product If [Criterion], Sum If [Criterion]
    By STBTC in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-07-2016, 12:50 PM
  3. Find value based on item number (first criterion) and date (second criterion)
    By ivan.stajin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-19-2014, 10:47 AM
  4. Workday.INTL or Workday function issue
    By junoon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-17-2013, 03:14 PM
  5. [SOLVED] Countifs with Multiple Criterion
    By JohnDear in forum Excel General
    Replies: 7
    Last Post: 05-28-2012, 03:56 PM
  6. Replies: 0
    Last Post: 12-16-2011, 09:01 AM
  7. COUNTIFS using year as one criterion
    By Sonnydl in forum Excel General
    Replies: 1
    Last Post: 11-11-2011, 02:58 PM

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