+ Reply to Thread
Results 1 to 6 of 6

get a count depending on the interval

Hybrid View

  1. #1
    Registered User
    Join Date
    01-10-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    37

    get a count depending on the interval

    HI,i have a spreadsheet with time intervals. What i'd like to do is get a count depending on the interval.

    I not sure which function to use. I have 0 to 24 hours, 24:01 to 48 hours, and 48:01 to 72 hours and 72:01 hours or more.

    The data is on sheet1 column F. The count of the different time intervals goes in to sheet2 B2 for 0 to 24 hours, C2 for 24:01 to 48 hours, D2 for 48:01 to 72 hrs, E2 for over 72 hours.

    Thanks
    Last edited by FDibbins; 01-19-2014 at 07:53 PM.

  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,048

    Re: get a count depending on the interval

    Yyou could use the countifs() function for this.

    If your hours are aactually hours, remember that hours are actually decimals of 1 (day)
    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

  3. #3
    Registered User
    Join Date
    01-10-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: get a count depending on the interval

    The cells are formatted as [h]:mm, is that what you mean by actually hours?

  4. #4
    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,048

    Re: get a count depending on the interval

    Yes, thats what I meant. If (as a test), you format to general, you will see 12:00 changes to 0.5

  5. #5
    Registered User
    Join Date
    01-10-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    37

    Re: get a count depending on the interval

    Thanks worked a treat.

  6. #6
    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,048

    Re: get a count depending on the interval

    Happy to help and thanks for the feedback

+ 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. index function error using match function to get data from a cell in an array
    By mabildgaard in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-17-2013, 02:21 AM
  2. [SOLVED] IF Function referencing IsNumber, Match, Left function on separate sheets
    By Touch9713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-12-2013, 10:09 PM
  3. Replies: 1
    Last Post: 03-21-2012, 11:22 AM
  4. Replies: 2
    Last Post: 03-20-2009, 01:29 PM
  5. Excel - User Defined Function Error: This function takes no argume
    By BruceInCalgary in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2006, 04:05 PM

Tags for this Thread

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