+ Reply to Thread
Results 1 to 8 of 8

Application data sheet

Hybrid View

  1. #1
    Registered User
    Join Date
    06-16-2018
    Location
    newcastle
    MS-Off Ver
    2016
    Posts
    3

    Application data sheet

    Hello,
    Wondering if anyone can help me with this datasheet I've been given, It asks to convert 1 minute data to 5 and then 15 minute data.
    This may sound stupid but am to take the average of those 5 minutes or the sum for the conversion?
    Also if anyone has any idea on how to answer that as its given in 3 columns - date,time and Irradiance values any suggestions for the code would be greatly appreciated.

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

    Re: Application data sheet

    Welcome to the forum!

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,938

    Re: Application data sheet

    Hi lordface and welcome.

    It might help if we can see the file.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Select the file, click 'upload file' then 'close this window' to attach it.

    BSB

  4. #4
    Registered User
    Join Date
    06-16-2018
    Location
    newcastle
    MS-Off Ver
    2016
    Posts
    3

    Re: Application data sheet

    I should of attached the file now with how I imagine the solutions to look.
    I have shown how to answer so its the sum of the 5 minutes, but I could be wrong in my approach.
    Attached Files Attached Files

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Application data sheet

    If you combine date and time in a single column,

    A
    B
    C
    D
    E
    F
    G
    1
    Interval
    0:15:00
    D1: Input
    2
    Date/Time
    Irradiance
    Date/Time
    Irradiance
    3
    12/01/2017 07:03
    0.00
    12/01/2017 07:00
    0.00
    D3: =FLOOR(A3, $E$1)
    4
    12/01/2017 07:04
    0.00
    12/01/2017 07:15
    0.00
    D4: =MROUND(D3 + $E$1, "0:00:01")
    5
    12/01/2017 07:05
    0.00
    12/01/2017 07:30
    0.00
    E3: =AVERAGEIFS($B$3:$B$767, $A$3:$A$767, ">=" & D3, $A$3:$A$767, "<" & D3 + $E$1)
    6
    12/01/2017 07:06
    0.00
    12/01/2017 07:45
    0.08
    7
    12/01/2017 07:07
    0.00
    12/01/2017 08:00
    16.92
    8
    12/01/2017 07:08
    0.00
    12/01/2017 08:15
    85.08
    9
    12/01/2017 07:09
    0.00
    12/01/2017 08:30
    148.58
    10
    12/01/2017 07:10
    0.00
    12/01/2017 08:45
    225.17
    11
    12/01/2017 07:11
    0.00
    12/01/2017 09:00
    291.83
    12
    12/01/2017 07:12
    0.00
    12/01/2017 09:15
    349.08
    13
    12/01/2017 07:13
    0.00
    12/01/2017 09:30
    405.33
    Last edited by shg; 06-16-2018 at 01:54 PM.
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Application data sheet

    Attached before discarding ...
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-16-2018
    Location
    newcastle
    MS-Off Ver
    2016
    Posts
    3

    Re: Application data sheet

    Thanks shg,
    That great although my data isn't continuous for the time values i.e not a full 24 hours and each day might have a slightly different length for the data recorded, so how can I alter the macro so it knows when to start a new day?

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Application data sheet

    There is no macro, just a formula, and I don't understand what change you need.

+ 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. User form to be used as application without Excel Sheet by other
    By eagleofmine in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-02-2018, 08:19 PM
  2. [SOLVED] Application.Sumif funciton activates the other sheet tab
    By ImranBhatti in forum Excel General
    Replies: 3
    Last Post: 01-18-2017, 07:07 AM
  3. Custom function and Application.CalculateFull does not know what sheet it is on
    By Steveapa in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-19-2015, 10:43 AM
  4. Application.Run Error When Using A Variable to Run Macro In Another Sheet
    By taylorvba in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-27-2013, 03:09 AM
  5. [SOLVED] Application.OnKey only in specific sheet
    By ZeljkoN in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-11-2013, 04:26 PM
  6. Copy sheet to new instance of Excel Application
    By Bob@Sun in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-06-2011, 03:40 PM
  7. open new sheet in to a new excel application
    By Oz in forum Excel General
    Replies: 1
    Last Post: 12-13-2005, 04:10 PM

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