+ Reply to Thread
Results 1 to 6 of 6

Curious about a more optimized method

  1. #1
    Registered User
    Join Date
    01-21-2014
    Location
    moon
    MS-Off Ver
    Excel 2010
    Posts
    6

    Post Curious about a more optimized method

    I came up with a solution, but was curious if anyone else knows a better way. Ideally i'd like to avoid VBA for the ease of portability and security.
    Attachment 360227

    I get dataloggers to log temperature/humidity/battery voltage for our system. This occurs every 10 minutes, so a lot of data can be provided. I'm looking to get what the average values are for each day in an easy list. This way I can pull the data into other documents and for ease of use of other uses. I've attached a portion of the data so it's clear.

    I don't want to be touching the original data. This ensures anyone can perform the operation on any new job, and also keeps raw data untouched.

    So my thought of the basic process'
    - Clean date from logged value (Col - H)
    - Determine unique dates from list (Col - M)
    - Locate all data in each day (Col - N,O,P)
    - Average data for each day (Col - N,O,P)
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-09-2014
    Location
    New York
    MS-Off Ver
    Excel 2013
    Posts
    84

    Re: Curious about a more optimized method

    sample-temp-logger.xlsx

    See attached, eliminated middle step.

  3. #3
    Registered User
    Join Date
    01-21-2014
    Location
    moon
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Curious about a more optimized method

    The main reason the middle step is needed is to automatically generate the dates in the log. Without it, it just makes the copy/paste anyone using it a little more difficult. I'd need to think how useful it is, I probably can assume the days should always be consecutive.

    Interesting. Thanks.

    I seem to have a problem. When i run those functions in N,O,P columns i get '0' instead of the numbers present (i'm getting errors from the 'sumproduct' function). Is there some option that i need to have checked to get this working??

  4. #4
    Registered User
    Join Date
    02-09-2014
    Location
    New York
    MS-Off Ver
    Excel 2013
    Posts
    84

    Re: Curious about a more optimized method

    sample-temp-logger.xlsx

    try averageif and i added middle step.

  5. #5
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: Curious about a more optimized method

    If you are taking this into another document for later analysis, I would recommend simply linking to the original document

    =DOC NAME A1 and drag it across so that it is an up to date workbook but is ALWAYS just the copy. By getting averages for a day you put your self in a limited box... Averages of Averages for when you want to look at a week, month, quarter, year etc... And if the data is as is, just an abundant amount... you may want to just throw it in a Pivot table and throw a couple calculated fields in there! Then the data/report you create is more end user friendly (Add some slicers) as it sounds like the management of data is risky which is forcing you to compile and split the report from the data... Just thoughts -
    -If you think you are done, Start over - ELeGault

  6. #6
    Registered User
    Join Date
    01-21-2014
    Location
    moon
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Curious about a more optimized method

    I'm still having trouble. I think the main reason the middle step originally was (the way it was) was because i couldn't get column 'B' to be handled as a Date/Time.

    Apparently it seems you guys can use the original Date Time as a number (and not straight text). Is there some way to make this happen? Whenever i open the examples you guys post i get #Value, #Div/0, or 0 (since the 'B' column isn't being interpreted correctly).

    Basically, maybe i'm missing something obvious, but for example

    =Datevalue("09/03/2014 11:48:42")
    Gives me an error (#Value!), any idea how to fix this?

+ 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. Optimized Product Selection Problem
    By Atticus_Finch in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-09-2013, 09:33 AM
  2. Create an Optimized Schedule (Warning: A lot of reading!)
    By BYizz in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-03-2013, 02:48 PM
  3. Optimized cutting length help needed
    By mr63249 in forum Excel General
    Replies: 2
    Last Post: 05-31-2013, 08:06 AM
  4. Working Code: Can it be optimized?
    By qcity in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 06-17-2011, 01:00 AM
  5. Just curious
    By famdamly in forum Excel General
    Replies: 2
    Last Post: 12-06-2005, 09:45 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