+ Reply to Thread
Results 1 to 3 of 3

suming date and time to countif value is less than cell

  1. #1
    Registered User
    Join Date
    03-08-2015
    Location
    cleveland, ohio
    MS-Off Ver
    2013
    Posts
    48

    suming date and time to countif value is less than cell

    i have a spreadsheet where is data imported from an outside program. It breaks the date and time into 2 separate columns. On my summary page i need to test each entry to determine how many entries are older than a set date and time. However, when i try to use countif or sumproduct i am unsuccessful.

    Example:
    Column C Column D
    3/18/15 1:00
    3/18/15 2:00
    3/19/15 13:10
    3/19/15 15:30

    Test date/time
    3/19/15 8:00

    if column c row 1 + column d row 1 is less than test date time count entry and return # of entries older than 3/19/15 8:00. Thank you!

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: suming date and time to countif value is less than cell

    You could use a helper column (for instance, column E) that combines columns C and D, using this formula:

    =C1+D1

    Then use this formula to count the number of entries that are prior to your test date/time:

    =COUNTIF($E$1:$E$4,"<"&TestDateCell+TestTimeCell)

    - Moo
    Last edited by Moo the Dog; 03-20-2015 at 12:00 PM.

  3. #3
    Registered User
    Join Date
    03-08-2015
    Location
    cleveland, ohio
    MS-Off Ver
    2013
    Posts
    48

    Re: suming date and time to countif value is less than cell

    i would really like to avoid adding a column as the person/s using the spreadsheet will be copying and pasting data several times a day and are not everyday Excel users. Avoiding this would be more user friendly. I know there has to be a way to accomplish what i am trying to do, however i am not enough of an Excel wizard to know what that is. Also the cell that it is being tested against is already in a mm/dd/yyyy hh:mm format.

+ 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 between date and time range
    By Siops in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-06-2013, 03:00 PM
  2. Replies: 2
    Last Post: 11-17-2011, 05:13 PM
  3. COUNTIF with Date/Time format from another Workbook
    By adam1230 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-18-2011, 11:56 AM
  4. countif between a date/time range
    By okl in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-25-2009, 08:13 AM
  5. Using countif with date and time cells
    By monty_mm in forum Excel General
    Replies: 0
    Last Post: 01-14-2005, 08:29 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