+ Reply to Thread
Results 1 to 3 of 3

How to make countifs work correctly

  1. #1
    Forum Contributor
    Join Date
    02-24-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Office 2010
    Posts
    164

    How to make countifs work correctly

    I have two tables.

    The table that is being counted has a "Start Time" and "End Time" column.

    The other table , that is counting, has a "Start" and "End" column, already formatted for every 30 minutes for every day.

    All of the these columns are datetime fields.

    I have the following, but this is not working correctly. Any ideas on how to fix this to count in between or every 20 minutes of the start and end columns?

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: How to make countifs work correctly

    Try

    COUNTIFS(Table_Project_and_Task_Database.accdb[Start Time],">"&[@Start],Table_Project_and_Task_Database.accdb[End Time],"<"&[@End])

  3. #3
    Forum Contributor
    Join Date
    02-24-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Office 2010
    Posts
    164

    Re: How to make countifs work correctly

    Thanks for help, but I messed something up again. I have to think about this logically and could use some more help.

    The table that this is counting, it needs to count this if the project time is anywhere within that half hour, or time period notated on the table that is doing the count. Right now, I thing the whole thing, the "Start Time" and "End Time" column have to be between the "Start" and "End" columns. So if something ends 5 minutes before 7 am, if will still be counted. (Does that make any sense). It will count if it the "Start Time" and "End Time" columns fall anywhere between the "Start" and "End" columns.

+ 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] How to correctly place a range of numbers in COUNTIFS and SUMIFS formulas?
    By nerkaszatana in forum Excel General
    Replies: 2
    Last Post: 06-07-2016, 11:35 AM
  2. [SOLVED] COUNTIFS is not calculating correctly
    By heresteve2 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-02-2016, 02:02 PM
  3. [SOLVED] COUNTIFS - am I using it correctly?
    By paulstan in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-18-2015, 12:31 PM
  4. Excel COUNTIFS not counting data correctly
    By Linda Borza in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 08-21-2013, 09:19 PM
  5. COUNTIFS OR COUNTIFS needs to work
    By joshbellfi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-23-2013, 10:55 AM
  6. please help with IFERROR - Solved
    By urak in forum Excel General
    Replies: 4
    Last Post: 08-09-2012, 06:28 AM
  7. Need help on Logic to make formula work correctly
    By cdotyii in forum Excel General
    Replies: 1
    Last Post: 06-06-2012, 08:23 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