+ Reply to Thread
Results 1 to 4 of 4

Organizing/Plotting Times? Countif??

  1. #1
    Registered User
    Join Date
    03-15-2014
    Location
    Nashville, TN
    MS-Off Ver
    365
    Posts
    33

    Organizing/Plotting Times? Countif??

    Hey Guys; I'm trying to find a way to organize all these times that are in the cells...these are the times a sale was made, so I'm trying to organize this in a way that I can see what our best hours are for sales, and thus for the purpose of scheduling shifts. ie. so I can see that 55 sales were made within the hours of 4-6pm, etc"

    You can see the cell has a date and a time within it...Do we need to somehow separate out the time and then do a countif if the cell is within a certain hour? I'm kind of stumped.

    I attached the file if someone may know what to do. Thanks you guys;
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,831

    Re: Organizing/Plotting Times? Countif??

    Put the time 00:00:00 in cell C2 and 01:00:00 in C3, then drag those two down to C25 - you should get all the times every hour up to 23:00:00. Then you can put this formula in D2:

    =SUMPRODUCT((MOD(A$2:A$1048,1)>=C2)*(MOD(A$2:A$1048,1)<(C2+1/24)))

    then copy this down to D25. That will give you the number of entries for each hour across a consolidated day. Then it is relatively easy to graph that.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    03-15-2014
    Location
    Nashville, TN
    MS-Off Ver
    365
    Posts
    33

    Re: Organizing/Plotting Times? Countif??

    Quote Originally Posted by Pete_UK View Post
    Put the time 00:00:00 in cell C2 and 01:00:00 in C3, then drag those two down to C25 - you should get all the times every hour up to 23:00:00. Then you can put this formula in D2:

    =SUMPRODUCT((MOD(A$2:A$1048,1)>=C2)*(MOD(A$2:A$1048,1)<(C2+1/24)))

    then copy this down to D25. That will give you the number of entries for each hour across a consolidated day. Then it is relatively easy to graph that.

    Hope this helps.

    Pete

    You nailed it. Brilliant. Thanks man; you're amazing.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,831

    Re: Organizing/Plotting Times? Countif??

    Glad to hear it worked for you - thanks for feeding back.

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, I would like to inform you that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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 falls between times
    By adam2308 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-05-2014, 09:49 AM
  2. Help plotting filled shapes (currently plotting outlines using scatter)
    By j_man2211 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-23-2012, 10:34 AM
  3. COUNTIF for times????
    By RiceKrispy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2012, 12:49 PM
  4. Countif on times
    By Benson-112 in forum Excel General
    Replies: 4
    Last Post: 08-24-2009, 10:16 AM
  5. Plotting Data against times - Dealing with missing values
    By mynci in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 10-17-2008, 06:49 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