+ Reply to Thread
Results 1 to 11 of 11

Sum Then Count entries

  1. #1
    Registered User
    Join Date
    01-21-2018
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    23

    Wink Sum Then Count entries

    Please assist with the following to create a Macro to run on all worksheets:

    In the image below you can see that the data comes in at different times and the amount of times it is received also varies between 1 Hour to the next.

    I need to sum on the Hour all values between, then count the number of entries that make up this sum

    Sum and Count .jpg

    also see the sample worksheet attached

    Thank you all - I know everyone does appreciate your time an efforts in helping the less knowledgeable grow.

    Mark
    Attached Files Attached Files

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Sum Then Count entries

    Quote Originally Posted by MarkKil View Post
    ...I need to sum on the Hour all values between, then count the number of entries...
    1) Do you mean you need hourly updates, or merely a breakdown showing entries by hour?
    2) Do you want to include entries occurring exactly on the hour with earlier entries OR with later entries?
    Last edited by leelnich; 01-22-2018 at 06:58 PM.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  3. #3
    Registered User
    Join Date
    01-21-2018
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    23

    Re: Sum Then Count entries

    Quote Originally Posted by leelnich View Post
    1) Do you mean you need hourly updates, or merely a breakdown showing entries by hour?
    2) Do you want to include entries occurring exactly on the hour with earlier entries OR with later entries?
    Hope this assists
    1) a breakdown showing entries by hour . As the data is only imported into the different sheets weekly
    2) include entries occurring exactly on the hour with later entries

    thanks for the reply

  4. #4
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,027

    Re: Sum Then Count entries

    Hi Mark

    Here's one way...
    I removed your comment on the sheet...
    data will continue over 7days

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Sintek; 01-23-2018 at 02:57 AM. Reason: Changed code to allow for last row
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,835

    Re: Sum Then Count entries

    MarkKil

    Try
    Please Login or Register  to view this content.

  6. #6
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Sum Then Count entries

    Quote Originally Posted by MarkKil View Post
    Hope this assists... include entries occurring exactly on the hour with later entries.
    Your partitions should begin at midnight (0 - 1, 1-2, ...23 - 24/0) to allow 24 subtotals.

  7. #7
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,027

    Re: Sum Then Count entries

    My apologies...Only after consideration of results I found errors in code for post 4...
    Herewith amended...
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    01-21-2018
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    23

    Re: Sum Then Count entries

    THANK YOU ALL,- now i am able to achieve "Sum Then Count entries"

  9. #9
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,027

    Re: Sum Then Count entries

    Glad I could contribute...Thanks for rep +

  10. #10
    Registered User
    Join Date
    01-21-2018
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    23

    Re: Sum Then Count entries

    Once again thanks --- i ve moved to own thread
    Attached Files Attached Files
    Last edited by MarkKil; 01-23-2018 at 07:28 PM. Reason: Moved to own thread as suggested..

  11. #11
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,027

    Re: Sum Then Count entries

    pls open a different thread. this has been solved and new requirement has nothing to do with current.

+ 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. Replies: 2
    Last Post: 02-16-2012, 12:53 PM
  2. Count entries
    By razaas in forum Excel General
    Replies: 11
    Last Post: 12-29-2009, 05:18 AM
  3. How to count last 365 entries...
    By lou031205 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-08-2007, 02:39 PM
  4. COUNT Entries (Help)
    By glentot in forum Excel General
    Replies: 4
    Last Post: 07-23-2007, 04:42 AM
  5. Count unique entries
    By BeSmart in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  6. [SOLVED] Count unique entries
    By Max in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-06-2005, 06:05 AM
  7. Count unique entries
    By BeSmart in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  8. [SOLVED] count entries within a row
    By thewiz in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-06-2005, 06: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