+ Reply to Thread
Results 1 to 6 of 6

Counting events in a date table over 24 hours based on a condition.....

  1. #1
    Registered User
    Join Date
    07-10-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    15

    Counting events in a date table over 24 hours based on a condition.....

    Hello!

    I am creating a date table to count certain events which have occured over 24 hours ago.

    Thanks to help in this forum, i am using the following formula for this:

    =COUNTIF(A2:A100,"<="&H1-1)

    The events are in column A and todays date is in cell H1.

    I need to add another column to this table which shows whether the event is Complete or Incomplete. These will be in I2:I100 in the same table

    I need to add the total of events that happened yesterday which are still incomplete.

    How do i do this?

    Thank you in advance!!!!

  2. #2
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Counting events in a date table over 24 hours based on a condition.....

    =SUMPRODUCT(--(A2:A100<=H1-1),--(I2:I100=G1))
    Where G1 is Complete or Incomplete
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  3. #3
    Registered User
    Join Date
    07-10-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Counting events in a date table over 24 hours based on a condition.....

    Works a treat...thank you!!!

  4. #4
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Counting events in a date table over 24 hours based on a condition.....

    You are welcome.
    Would you midn to add reputation?

  5. #5
    Registered User
    Join Date
    07-10-2013
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Counting events in a date table over 24 hours based on a condition.....

    All done - thanks again!

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Counting events in a date table over 24 hours based on a condition.....

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. Counting events in a date table over 24 hours old.
    By sambashir in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-06-2013, 10:38 PM
  2. Need help counting events within a certain date ranges
    By i.suck.at.excell in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-25-2012, 11:32 PM
  3. Calculate hours based on condition
    By Busman in forum Excel General
    Replies: 0
    Last Post: 07-20-2011, 02:55 PM
  4. Counting in specific events in a date range
    By chamaile0n in forum Excel General
    Replies: 5
    Last Post: 08-18-2008, 04:00 PM
  5. [SOLVED] I need to measure hours between two events(time/date) to give me .
    By iartis in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-11-2005, 10:06 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