+ Reply to Thread
Results 1 to 11 of 11

Graph for Times (Formatting issue?)

  1. #1
    Registered User
    Join Date
    10-25-2018
    Location
    Manchester, England
    MS-Off Ver
    MS 365 Enterprise
    Posts
    73

    Graph for Times (Formatting issue?)

    Hi,
    I have a bit of a strange one, I hope I am in the right place?

    I have some graphs that include dates and times (h):mm:ss, when I paste my data into excel it is already in this format and also the column that includes the times is is also formatted as (h):mm:ss.

    When I paste the data into my feed sheet, it all pulls through correctly to the table I am using for the graphs via a look up, but the data will not appear in the graph until after I double click on the cell that contains the (h):mm:ss. Visually when I double click it moves the text from the left of the cell to the right.

    So, I am hoping someone can explain this or knows a solution as it is very frustrating.

    Brief overview:

    Paste data into sheet1 in excel,
    Data pulls through correctly to table in sheet 2 via a look up.
    Graphs remain blank.
    Go to table on sheet 2 and double click - data will appear in the graph for that cell, to get them all in I have to manually double click each cell.

    Any help on this would be greatly appreciated.

    Thanks
    Tom
    Attached Files Attached Files
    Last edited by t0mrogers; 07-17-2023 at 03:19 AM.

  2. #2
    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,937

    Re: Graph for Times (Formatting issue?)

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    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.

  3. #3
    Registered User
    Join Date
    10-25-2018
    Location
    Manchester, England
    MS-Off Ver
    MS 365 Enterprise
    Posts
    73

    Re: Graph for Times (Formatting issue?)

    Thanks Ali,

    I have added an example.

  4. #4
    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,937

    Re: Graph for Times (Formatting issue?)

    When you copy and paste, do you paste values?

    Type this into any cell below the table:

    =--B4:C9

    It converts the tables to values (you can format the table to show these values as time if you wish).

    You haven't said what the lookup is - that's probably the issue.

  5. #5
    Registered User
    Join Date
    10-25-2018
    Location
    Manchester, England
    MS-Off Ver
    MS 365 Enterprise
    Posts
    73

    Re: Graph for Times (Formatting issue?)

    Hi Ali,

    Thanks so much for the quick response.

    When I paste in the values, I paste them as text. The look up is actually an index/match function.

    Thanks
    Tom

  6. #6
    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,937

    Re: Graph for Times (Formatting issue?)

    That's the problem - text values are not number values.

    But you said there was a lookup to create the table, so I am a bit confused.

    Anyway, you can use my suggestion instead of copy and paste.

    For further help, provide a workbook with the whole picture (source data and INDEX MATCH).

  7. #7
    Registered User
    Join Date
    10-25-2018
    Location
    Manchester, England
    MS-Off Ver
    MS 365 Enterprise
    Posts
    73

    Re: Graph for Times (Formatting issue?)

    Sorry for the confusion - for example I paste the values on sheet 1, sheet 2 is another table that uses index match to pull through data from sheet 1. Which all pulls through fine, but then the graph doesn't recognise the data until I double click the index match cells on sheet 2, if that makes sense.

    I will try the suggestion above, but just wondering would it work better if I used v or x look ups?

  8. #8
    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,937

    Re: Graph for Times (Formatting issue?)

    Provide the full picture in a workbook and I shall advise. I need to see the formula at the very least.

    Sounds like you could be making use of new 365 functions, actually.

  9. #9
    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,937

    Re: Graph for Times (Formatting issue?)

    Can you at least share the INDEX MATCH formula that you are using?

  10. #10
    Registered User
    Join Date
    10-25-2018
    Location
    Manchester, England
    MS-Off Ver
    MS 365 Enterprise
    Posts
    73

    Re: Graph for Times (Formatting issue?)

    Sorry I didn't get back to you sooner, the actual workbook itself is pretty big and at the moment I don't have time to amend to create an example (sorry), but the formula for the Index Match is actually an xlookup (I got it mixed up with another formula I am using on the same sheet).

    =IF(XLOOKUP(A30, 'Head Office Feed'!$N$3:$N$42, 'Head Office Feed'!$U$3:$U$42, "n/a", 0, 1) = "0:00:00", "n/a", XLOOKUP(A30, 'Head Office Feed'!$N$3:$N$42, 'Head Office Feed'!$U$3:$U$42, "n/a", 0, 1))

  11. #11
    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,937

    Re: Graph for Times (Formatting issue?)

    I'd have to see a sample of the data - sorry. It's not clear exactly what the nature of the data is.

    When you have time to create a small sample subset, I'll have a look.

+ 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. Times after midnight not displayed on graph
    By peterderrington in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 10-07-2022, 07:29 AM
  2. [SOLVED] Creating a graph with start times and end times vs time
    By khoadphamm in forum Excel General
    Replies: 14
    Last Post: 12-31-2019, 02:57 PM
  3. Unable to Plot Graph correctly (Possibly just a Graph Type Issue)
    By BernieLee02 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-29-2019, 12:45 PM
  4. Graph times from a schedule
    By twentyfourproduction in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-10-2018, 10:08 AM
  5. [SOLVED] Bar graph and scatter graph issue (all in one)
    By jw01 in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 05-16-2017, 09:21 AM
  6. Line graph lap times
    By hjtrbo in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-17-2013, 03:45 AM
  7. Issue with X axis values NOT graphing on Scatter graph and issue with Labels
    By lmausolf in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-17-2012, 07:20 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