+ Reply to Thread
Results 1 to 10 of 10

Chart items disappear unless I retype data in cell manually

  1. #1
    Registered User
    Join Date
    11-25-2019
    Location
    Somerset, England
    MS-Off Ver
    Office 365
    Posts
    5

    Chart items disappear unless I retype data in cell manually

    Sorry if the title sounds a bit obscure - the problem is a bit obscure, and quite difficult to explain.

    I have a spreadsheet that contains data imported from a .txt file. I have created simple charts that display a portion of this data graphically. Until recently, each time I have added data to the table, I have been able to copy the chart, move the datum points and display the next day's data in a fresh copy of the chart.

    But what is now happening is that, when I move the datum points by dragging the data markers (lassoes? what do you call those highlighting rectangles?) the points on the chart disappear - until I retype the data manually in the field! The figures look identical; the formatting is identical; but if I don't retype each item in one of the columns, the chart remains blank.

    I have attached a small part of the spreadsheet as an example. If you open this and click on any of the 'blobs' on the chart, you will see the data markers appear on the left. The column E (which is simply a numerical representation of the Vote column) includes all of the entries for 1st November; the Time column includes only the first six entries.

    If you now drag down the Time data marker to include the next item, all the chart entries disappear! Even more weirdly, although the data in the new cell is formatted exactly the same as the ones above it, retype it exactly as it is and abracadabra! - the chart symbols reappear, including the new one.

    The second chart is based on the data for 2nd November. In this case I have only retyped the first item, but the result is the same.

    Whilst I don't profess to being an Excel expert, I thought I was reasonably competent, but this one has me beaten!

    Any ideas, please?
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    11-05-2019
    Location
    Tiki Island, TX
    MS-Off Ver
    Office 365
    Posts
    168

    Re: Chart items disappear unless I retype data in cell manually

    This may not be of much help but if you click on the cell and then either click F2 and Enter or click into the formula edit bar and hit enter it will fix without having to retype the data thus introducing opportunity to make an error. As to why that is necessary I don't know, it should not be.

  3. #3
    Registered User
    Join Date
    11-25-2019
    Location
    Somerset, England
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Chart items disappear unless I retype data in cell manually

    You are right - I hadn't discovered that! But, as you say, it should not be necessary. Why is that happening, I wonder?

  4. #4
    Registered User
    Join Date
    11-25-2019
    Location
    Somerset, England
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Chart items disappear unless I retype data in cell manually

    So - am I to assume that NOBODY out there has any idea why this is happening?

    That's disappointing.

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Chart items disappear unless I retype data in cell manually

    The values are being treated as text rather than numeric.

    In the table if you remove the right alignment you will see some of the values are left aligned, these are text, and some right, these are numeric.

    However you are importing the txt file you need to ensure your numeric values are being read into the cells as numbers and not text
    Cheers
    Andy
    www.andypope.info

  6. #6
    Registered User
    Join Date
    11-25-2019
    Location
    Somerset, England
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Chart items disappear unless I retype data in cell manually

    Thank you! That seems to solve the problem.

    It would have been helpful if I could somehow have discovered how Excel was treating the data in the cells. I had thought that it might be something to do with formatting, so I formatted the column as TIME, but I guess the data was still stored internally as text. Is there any way of knowing how Excel is regarding data stored within individual cells - text, time, date, number etc?

  7. #7
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Bistrita, Romania
    MS-Off Ver
    2019; 365
    Posts
    231

    Re: Chart items disappear unless I retype data in cell manually

    If I tried to show how Excel is regarding data stored in those cells by using a MsgBox, it returned the correct format even for cells that were making the chart values disappear.

    However, in order to easily convert text to the desired format, you could use the following simple VBA code (which you could add as a button in your sheet or in your QAT):
    Please Login or Register  to view this content.
    You would just need to select the desired range, in this case C3:C22 and click the button.

    I had already extended the series from C15 to C22 on the 2nd chart and the series disappeared.
    After I used the above code the series "magically" appeared in the chart.
    To show your appreciation
    Click ★ Add reputation!

  8. #8
    Registered User
    Join Date
    11-25-2019
    Location
    Somerset, England
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Chart items disappear unless I retype data in cell manually

    Fascinating! But surely this highlights an odd glitch in Excel? Why would it return the 'correct' format even for those incorrect cells? And why is it necessary to carry out what, on the face of it, seems a fatuous assignment: Selection.Value = Selection.Value in order to make it right?? I don't think I am going to live long enough to understand all of the idiosyncrasies of this product.

  9. #9
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Bistrita, Romania
    MS-Off Ver
    2019; 365
    Posts
    231

    Re: Chart items disappear unless I retype data in cell manually

    I had problems with filtered data - when sorting Oldest to Newest, for example, some dates would show as text even if cell number formatting was set to Date so the sorting wasn't done properly.
    I would have had to F2 + ENTER each of the "bad" cells to set them right.
    Instead a "weird" solution like Selection.Value = Selection.Value does the trick. I've had my wtf moments too...

  10. #10
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Chart items disappear unless I retype data in cell manually

    "discover how Excel was treating the data in the cells"

    The alignment of content is a good indicator, especially if as in your case you have a mixture of data types in a block

+ 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] Correcting a Cell's Data Type Without a Manual Retype
    By No Surprises in forum Excel General
    Replies: 11
    Last Post: 10-04-2020, 11:28 PM
  2. [SOLVED] How to Allow Both Picklist items and manually entered data in a cell
    By john quinn in forum Excel General
    Replies: 5
    Last Post: 01-09-2015, 05:16 PM
  3. [SOLVED] X-Axis labels disappear when adding data table to chart
    By phacexcel in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-22-2012, 02:37 PM
  4. Chart only plots if cell value is entered manually
    By Tony Vargo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-19-2009, 12:05 PM
  5. move chart data point manually
    By calarez in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-09-2008, 03:56 AM
  6. data labels in a chart disappear
    By jtaggart2 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-01-2007, 10:46 AM
  7. [SOLVED] Pie chart data labels and lines disappear
    By Sally Sibthorpe in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 07-15-2005, 11:05 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