Closed Thread
Results 1 to 13 of 13

Hourly timeline visualization

  1. #1
    Registered User
    Join Date
    09-24-2022
    Location
    Egypt
    MS-Off Ver
    2013
    Posts
    19

    Hourly timeline visualization

    Hello,

    i have two tabs (file attached), one tab for production lines running , the other tab for the production time downtime.
    in a new tab im trying to show for a day a timeline visualization for the production lines if running to show the product name, if not running shows the downtime

    production line name :
    product name
    downtime name
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Hourly timeline visualization

    Your picture looks like a basic stacked bar chart. I find that a lot of the work of creating charts is arranging the data in the spreadsheet. It's far from final, but here's what I did to get something like your picture.

    1) My stacked bar chart needs to know what "time" to start. According to your picture, this is 6:45. In AT245 of Performance, I enter =H235.
    2) The length of each stacked bar will be the corresponding duration, so I need to retrieve duration from each table. The first "Pane" stack appears to come from "performance," so I enter =I235-H235 into AT246.
    3) The next "Change over" bar is the duration from row 390 of DT, so I enter =DT!G390-DT!F390 into AT247.
    4) Continue the process of manually pulling durations from the appropriate table into AT248:AT251 until all of the appropriate durations are copied into this range of cells.
    5) To create the chart, I simply select AT246:AT251 -> Insert chart -> Stacked bar chart. If necessary, I execute "switch row/column." Then format chart elements as desired.

    At this point, the hardest part of creating the chart is compiling the necessary start time and durations from the different source tables. I'm not sure how you intend to interact with these spreadsheets, but my main recommendation is to look at your source data and how you are manipulating everything and find a better way to combine the two tables into one table with the data arranged so your start time + durations will be easier to work with. Without knowing how you create these two tables and how you interact with them, I cannot make any specific suggestions towards that goal.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    09-24-2022
    Location
    Egypt
    MS-Off Ver
    2013
    Posts
    19

    Re: Hourly timeline visualization

    thanks for your time, unfortunately the two tables come from different sources, its not possible to combine them in one table

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Hourly timeline visualization

    I'm usually optimistic that most things (like combining two tables into one) are possible (unless my boss tells me that I am forbidden from combining them). What would prevent you from combining the two tables into one?

    In order to create the stacked bar chart you show, we must somehow combine the necessary information from the two tables into one. I've shown what the final table needs to look like (we need a contiguous range of cells with start time at the top/left and durations going down/right). If we can get a table that combines the two sources into one with that kind of arrangement, then it will be easy to create the stacked bar chart. If we are not able to combine the two tables into one, then our task of creating the stacked bar chart is more difficult.

    What do you think? What are our hurdles to combining the necessary information from the two tables into one table that the chart can use?

  5. #5
    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,830

    Re: Hourly timeline visualization

    Moved to the VBA section at the OP's request.
    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.

  6. #6
    Registered User
    Join Date
    09-24-2022
    Location
    Egypt
    MS-Off Ver
    2013
    Posts
    19

    Re: Hourly timeline visualization

    Quote Originally Posted by MrShorty View Post
    I'm usually optimistic that most things (like combining two tables into one) are possible (unless my boss tells me that I am forbidden from combining them). What would prevent you from combining the two tables into one?

    In order to create the stacked bar chart you show, we must somehow combine the necessary information from the two tables into one. I've shown what the final table needs to look like (we need a contiguous range of cells with start time at the top/left and durations going down/right). If we can get a table that combines the two sources into one with that kind of arrangement, then it will be easy to create the stacked bar chart. If we are not able to combine the two tables into one, then our task of creating the stacked bar chart is more difficult.

    What do you think? What are our hurdles to combining the necessary information from the two tables into one table that the chart can use?
    Actually changing the current format will affect too many dependent formulas and pivot tables in the hidden tabs

  7. #7
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Hourly timeline visualization

    What if we combined a copy of the data into a single table while leaving the existing tables intact? Would that be allowed?

  8. #8
    Registered User
    Join Date
    09-24-2022
    Location
    Egypt
    MS-Off Ver
    2013
    Posts
    19

    Re: Hourly timeline visualization

    this needs the data entry to reformat or combine the data on daily basis, tbh i was looking for a simpler way for the user.
    but its ok lets try
    Last edited by Mahmoud Elnemr; 02-12-2023 at 12:14 AM.

  9. #9
    Registered User
    Join Date
    09-24-2022
    Location
    Egypt
    MS-Off Ver
    2013
    Posts
    19

    Re: Hourly timeline visualization

    i wonder if VBA can help with that

  10. #10
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Hourly timeline visualization

    I'm sure that VBA can help. I would expect that Power Query would be a better programming language, since it is specifically designed for reading, filtering, and shaping data. Regular worksheet functions (lookup functions and such) could also be used. At this point in my understanding of the process, it is less about which programming language to use and really understanding the data extraction/lookup/filter/etc. process that is needed. Your example picture in the OP shows the result for only one production line, but your data include multiple production lines with lots of different possibilities.

  11. #11
    Registered User
    Join Date
    09-24-2022
    Location
    Egypt
    MS-Off Ver
    2013
    Posts
    19

    Re: Hourly timeline visualization

    yes, multiple lines
    but i need that for all lines for a specific chosen day.

  12. #12
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Hourly timeline visualization

    try this
    (I don't know what are trying to do so don't ask for the rest)
    XL2013 require Power Query add-in
    Attached Files Attached Files

  13. #13
    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,830

    Re: Hourly timeline visualization

    Thread closed. The OP has chosen to ask the question in the Commercial Services section. Apologies to those who have invested time in trying to help him.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Multiple questions about Excel project timeline, % formulas, refresh timeline
    By Please Help in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-27-2016, 07:13 PM
  2. Visualization Plugin/Add-On Excel
    By markvee in forum Excel General
    Replies: 0
    Last Post: 01-15-2015, 10:43 AM
  3. How do I add a number from each Hourly data to 1/4 hourly about 8,000 times?
    By Louis59 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-26-2014, 01:02 AM
  4. Vacation Visualization
    By paulrh in forum Excel General
    Replies: 5
    Last Post: 03-13-2012, 12:51 PM
  5. Comment toolbar visualization
    By Fitter in forum Excel General
    Replies: 5
    Last Post: 08-05-2009, 06:08 AM
  6. [SOLVED] data visualization
    By utefan001 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-01-2005, 12:05 PM
  7. data visualization
    By [email protected] in forum Excel General
    Replies: 1
    Last Post: 05-31-2005, 11:05 PM

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