+ Reply to Thread
Results 1 to 5 of 5

Creating Graphable Hourly Data

  1. #1
    Registered User
    Join Date
    06-25-2011
    Location
    Chicago, IL
    MS-Off Ver
    MS 365 apps for business
    Posts
    63

    Creating Graphable Hourly Data

    I need to graph the average, by hour, by day that a room is occupied.

    I've attached my data to help give a visual, but I'll try and explain it anyway.

    I'm working with ~2500 rows of data. Unfortunately, my data is presented in a manner where I have the InHour and OutHour for each row, but each stay is not broken down to the hours the room is occupied. For example, for the first row the InHour is 7 and the OutHour is 12 on a Friday. When I graph the data I need this stay to go to the Friday average for 1 hour at 7, 8, 9, 10, 11 and 12.

    I'm not sure the quickest way to break this down, is it a calculated field in a PivotTable, or a formula I'm not aware of?

    Thanks in advance for any help and, please, let me know if I can provide any more clarification.
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Creating Graphable Hourly Data

    What does your intended graph look like? You could probably use some sample data and populate one ...would be easier to resolve
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    06-25-2011
    Location
    Chicago, IL
    MS-Off Ver
    MS 365 apps for business
    Posts
    63

    Re: Creating Graphable Hourly Data

    Thanks for the response Ace.

    I've attached a graphed example of my data. I extrapolated out the rows to the hours contained in the row. For instance the first data row has 7, 8, 9, 10, 11, and 12. This extrapolation is what I need the formula to accomplish. I then divided my count of the hours by how many weeks there were, in this case 4, to graph the average occupancy of the rooms by hour.

    Please, let me know if I can clarify further or provide additional examples.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-25-2011
    Location
    Chicago, IL
    MS-Off Ver
    MS 365 apps for business
    Posts
    63

    Re: Creating Graphable Hourly Data

    I'm worried my question may be too vague. I think the question comes down to how can I create an Hour column that adds a row for each hour elapsed? In the row is the addition of HourIn and an elapsed hour. If the elapsed hour is 3, I'd have 2 additional rows. If HourIn is 13, I'd have three rows, one with 13, 14, 15.

  5. #5
    Registered User
    Join Date
    06-25-2011
    Location
    Chicago, IL
    MS-Off Ver
    MS 365 apps for business
    Posts
    63

    Re: Creating Graphable Hourly Data

    I've attached my solution. It's definitely not the most elegant, but it boils down to the Offset formula.
    Attached Files Attached Files

+ 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