Results 1 to 4 of 4

Count values in 1 column, based on time values in another column

Threaded View

  1. #1
    Registered User
    Join Date
    03-05-2010
    Location
    Oregon
    MS-Off Ver
    Excel 2007
    Posts
    75

    Count values in 1 column, based on time values in another column

    I have a spreadsheet with 4 columns.

    Column A is 'Invoice #'.

    Column B is 'Date and Time Shipped'

    Column C is the 'Day of the Month' 01-31.

    Column D is a 3 digit 'Customer #' (AAA,BBB,CCC,111,222,etc..)

    I need to count the number of orders, per customer, per day. This would be easy enough in a pivot table putting customer in the rows, day of month in the columns, and count of invoice # in the values but some invoices that are to the same customer #, within a small amount of time, (1 hour), of each other, should actually be counted as 1 transaction. See below

    10:12
    10:23
    11:16
    13:06
    15:16
    15:23

    Assuming the times above are all for the same customer I should count 4 transactions. The 10:12 and 10:23 should be counted as 1, the 15:16 and 15:23 should be counted as 1, and all others should be counted as 1 by themselves. The hard part is establishing a base using the earliest time when 2 or more time values are within an hour, then re-establishing a base when a value falls outside of the 1 hour parameter. The 11:16 value is within 1 hour of the 10:23 but it should only be evaluated against 10:12, therefore not qualifying to be combined and needing to be counted on its own.

    I'm stumped, thanks in advance!!!
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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