+ Reply to Thread
Results 1 to 4 of 4

Graphing swim times by stroke

  1. #1
    Registered User
    Join Date
    08-12-2017
    Location
    Washington
    MS-Off Ver
    Excel for Mac 15.36
    Posts
    7

    Question Graphing swim times by stroke

    Please help. I have searched this forum and spent hours messing with excel. This is what I am trying to do:

    I would like to create a pivot graph of my son's swim times. The horizontal axis needs to be a date, preferably spaced out according to when the swim time occurred (not evenly based on data). The vertical axis needs to be time, down to the millisecond. I would like the graph to be a line graph, with points on each swim time, each stroke being a different color. I saw one graph where each stroke could be selected via radio button, which I thought would work even better.

    Last, I need to be able to input more times as they happen in the future, without having to modify a bunch of things in the Pivot graph.

    This seems like a lot to ask, so any help would be greatly appreciated. I attached the raw data.
    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: Graphing swim times by stroke

    The horizontal axis needs to be a date, preferably spaced out according to when the swim time occurred (not evenly based on data).
    This kind of "value/date" axis is not available to any pivot chart. The first thing to understand is that, in order to get a date/value axis, you will need to create a regular chart from pivot data. Read through this (https://peltiertech.com/regular-char...-pivot-tables/ ) carefully, because you will need to be able to follow Peltier's instructions, as Excel is going to want to convert your chart to a pivot chart and you must do all you can to make sure it doesn't.

    That said, it shoud be fairly straightforward. Your sample file did not include any of your attempts at creating a pivot table. I would expect a process like:

    1) Create pivot table:
    1a) Date as row label
    1b) stroke as column label
    1c) sum of time as the value field.
    1d) If you make sure that Excel knows that the source data is a "table", then the pivot table's source data should automatically expand as you expand the table (https://www.dummies.com/software/mic...l-data-models/ ).

    2) Create regular line chart from pivot table data using procedures from Peltier's tutorial. Format chart as desired (making sure that the horizontal axis is a date axis).

    It should be that easy. Will that work for you? Where do you get stuck?
    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
    08-12-2017
    Location
    Washington
    MS-Off Ver
    Excel for Mac 15.36
    Posts
    7

    Re: Graphing swim times by stroke

    Your instructions worked great, thank you. I do have two problems though.

    Problem 1: I record swim times in the custom format mm:ss.00 that's minutes, seconds, milliseconds. When the data is carried over to the pivot table, the milliseconds don't carry over. They all say 00.

    Problem 2: I input some test data to see if the pivot table and graph refresh with the new data. I got the pivot table to update, but the graph will not.

    Can you assist with these problems? The raw data is on sheet 1 and pivot table and chart on sheet 2. Thanks!
    Attached Files Attached Files

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

    Re: Graphing swim times by stroke

    Problem 1: I don't know why the pivot table ignored the fractions of a second. I expect that somewhere inside of the pivot table's brain, it is programmed to ignore fractions of a second? Recognizing that times are just decimal numbers (representing fractions of a day), I changed the number format from time to general in column B of sheet1 (so those times show their full decimal number), then refreshed the pivot table. The fractions of a second reappeared in the pivot table. Probably need to do something so that the pivot table does not know that the source data in time (by changing number format or something).

    Problem 2: The chart's data ranges only extended to row 22. In order to get the chart to see the expanding pivot table, I would probably delete the grand total row, then extend the data ranges for the chart to cover more rows than you will ever need? Will 100 rows be enough (define chart series to extend to row 100)?

+ 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. [SOLVED] Graphing Entry and Exit Times
    By MichaelSheahan in forum Excel General
    Replies: 2
    Last Post: 10-17-2018, 08:51 AM
  2. [SOLVED] Help graphing login logout times over a 24 hour period
    By aengus01 in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 05-22-2018, 06:36 AM
  3. Replies: 9
    Last Post: 02-13-2018, 11:42 AM
  4. Input data validation of swim times: mm:ss.milli
    By michellepace in forum Excel General
    Replies: 6
    Last Post: 07-11-2016, 02:22 AM
  5. Graphing completion times across midnight
    By wrudiger in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-28-2013, 03:18 PM
  6. Graphing overlapping dates and times
    By fusionnv in forum Excel General
    Replies: 0
    Last Post: 11-16-2011, 01:14 PM
  7. Graphing of times longer than 24 hours
    By nickthib in forum Excel General
    Replies: 1
    Last Post: 02-03-2009, 02:19 AM

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