+ Reply to Thread
Results 1 to 5 of 5

Is it possible to summarize this data?

  1. #1
    Registered User
    Join Date
    11-29-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    46

    Is it possible to summarize this data?

    Hi,

    I have some raw data that is in the below format;

    HTML Code: 
    I have roughly 1,000 lines of this data. The columns headers are just times in a 24-hr format and the rows are rating values.

    I basically want to see when the ratings were “active” (i.e, not zero) for each type (Type A, TypeB etc). So at the moment I’m manually going through and recording the below;

    HTML Code: 
    I can see myself making an error doing this manually and it is also a boring repetitive process. Does anyone know of a quicker way to do this? Through a macro or a pivot table? - I'm having problems uploading an example spreadsheet, hence why I've put the data tables in this post.

    I’d be grateful for any advice/help. Thanks.
    Last edited by Bandicoot; 01-28-2013 at 08:56 AM.

  2. #2
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Is it possible to summarize this data?

    change were needed

    Please Login or Register  to view this content.
    If you like my contribution click the star icon!

  3. #3
    Registered User
    Join Date
    11-29-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Is it possible to summarize this data?

    OllieB, wow, that is excellent and really helpful. This will save me loads of time.

    I have one question about your code - At the moment if the last time value, for example 23:00 is active, (i.e not 0), then the code won't recognize that as the final end-time. It only brings back the final end time if the value for the last time slot is 0.

    Whilst this isn't really an issue, Is there a line that I'd need to add to the vba for it to recognise the final time?

  4. #4
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Is it possible to summarize this data?

    Try this code.

    For the last column it takes the hour for the preceding column and add one hour as the "closing time"


    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-29-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Is it possible to summarize this data?

    Thank you OllieB, that addition works well.

    Thanks again

+ Reply to Thread

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