+ Reply to Thread
Results 1 to 3 of 3

combine data associated with multiple date/time columns

  1. #1
    Registered User
    Join Date
    06-06-2013
    Location
    hawaii
    MS-Off Ver
    Ecxel in Windows XP
    Posts
    9

    combine data associated with multiple date/time columns

    I have 4 sets of columns. each has a date and time in column one, and a number in column two. the dates and times are close, but are not the exact same. I want to add the numbers of all the non-date columns that are closest in time. i.e. i want all the numbers that are close to noon on the 15th to be added, and all the numbers that are close to 1:00 on the 15th to be added and so on. Example attached. Any suggestions will be greatly appreciated.
    Very Respectfully,
    Dan
    Attached Files Attached Files

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: combine data associated with multiple date/time columns

    Hi Dan,

    Could you be a bit more specific? What defines 'close to'? Within 30 minutes or less from each time? (So that 13:29 would be 'close to 13:00' and 13:31 'close to 14:00' - what about 13:30?)

    For which values do you want to return sums? Every hour of every day (you have over 5,500 times in there covering approximately 171 different dates)?

    Are comparisons to be made across all four columns, or must each restrict itself to looking in the same column, so that you want to keep the 'close to 13:00' sum for [64] - AC2 CAPACITY separate from the 'close to 13:00' sum for [24] - AC1 CAPACITY, etc.?

    Please try and provide as much information as you can.

    Regards
    Last edited by XOR LX; 06-06-2013 at 04:16 AM.
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    06-06-2013
    Location
    hawaii
    MS-Off Ver
    Ecxel in Windows XP
    Posts
    9

    Re: combine data associated with multiple date/time columns

    Thanks for the response. I will try to provide as much info as possible. 30 minutes is close enough. combining 1329 with 1300 is fine. 1330 could go to 1300 or 1330.

    I would like to return sums for every two hours or so.

    I want to sum all values that occured at the same time. So if all four columns had a value between 1300 and 1329, I would want the SUM of all four columns (as well as the number of columns that were included in the calculation, for reference).

    The non-date numbers are loads. I am trying to calculate the average load.

    thank you!
    Dan

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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