+ Reply to Thread
Results 1 to 10 of 10

Taking averages of values based on time

  1. #1
    Registered User
    Join Date
    07-30-2020
    Location
    EU
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Taking averages of values based on time

    Hi!

    I am struggling to automatically obtain a certain value from my worksheet.

    INFO: (File added as ZIP in attachments)
    Column E in the excel file represents values measured approximately each 100ms (represented in column A).
    I added column B to represent the run time in a TIME format.
    Column C adds this TIME format to the real time the measurements started.


    QUESTION:
    For each 5 seconds that elapsed I would like to have an average value of all the measured values (of column E) that were registered in those 5 seconds for the entire file.
    These values can be pasted underneath each other in column K with next to them the time of column C on which they took place (eg 11:13:21 , 11:13:26 , 11:13:31 , ...)

    Looking forward to your comments!
    Attached Files Attached Files
    Last edited by NielsDS; 08-02-2020 at 10:12 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Taking averages of values based on time

    Welcome to the forum.

    There are instructions at the top of the page explaining how to create and attach a suitable sample workbook. There is no need for us to have to download and extract a massive workbook - please trim it down accordingly and post again. Thanks.

    Administrative Note:

    Although we value your privacy as much you do, it could be important that members have a rough idea of your location as the solutions they offer may be affected by your locale. For instance, you might in the future post questions which are related to your regional settings.

    With this in mind, please update your profile to something more precise (something such as UK, Europe, USA, UAE, etc. will suffice).

    Thank you for helping us to help you.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-30-2020
    Location
    EU
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Re: Taking averages of values based on time

    Done. Excuse me for the inconvenience!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Taking averages of values based on time

    Please tell us where to find the 10-15 rows of manually mocked up result data.

  5. #5
    Registered User
    Join Date
    07-30-2020
    Location
    EU
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Re: Taking averages of values based on time

    Measurements start flowing at row 5542

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Taking averages of values based on time

    OK - but you have removed the workbook ...

    You are not making this easy for your helpers.

  7. #7
    Registered User
    Join Date
    07-30-2020
    Location
    EU
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Re: Taking averages of values based on time

    Apologies, it should be back now!

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Taking averages of values based on time

    Perhaps the following will do what you want.
    Cell I3 is populated using: =MIN(C2:C8805)
    Cells I4 and down are populated using: =SUM(I3,TIME(0,0,5))
    Cells J3 and down are populated using: =AVERAGEIFS(E$3:E$8805,C$3:C$8805,">="&I3,C$3:C$8805,"<="&I4)
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  9. #9
    Registered User
    Join Date
    07-30-2020
    Location
    EU
    MS-Off Ver
    Microsoft 365
    Posts
    5

    Re: Taking averages of values based on time

    The solution you provided was exactly what I was looking for.
    Thank you so much!

    Title will be edited to [SOLVED].

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Taking averages of values based on time

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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. Sub-sectioning a data set and taking averages
    By PhilAuck in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-23-2013, 07:31 AM
  2. [SOLVED] Merge rows while taking the weighted averages for the new cell values
    By engineerlady in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-18-2013, 04:10 PM
  3. [SOLVED] Taking simple averages with variable ranges using multiple criteria
    By Lycium in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-26-2012, 11:20 AM
  4. [SOLVED] Taking weighted averages of many different ranges?
    By Lycium in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-22-2012, 12:40 PM
  5. Taking a top 50 list into averages
    By IndieIPA in forum Excel General
    Replies: 6
    Last Post: 03-06-2012, 11:23 AM
  6. Excel 2007 : Pivot Table Averages based on Unique Values
    By Fishbubbles in forum Excel General
    Replies: 1
    Last Post: 07-28-2011, 12:03 PM
  7. taking monthly averages from daily data
    By driggers in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-21-2005, 06:19 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