+ Reply to Thread
Results 1 to 5 of 5

Scatterplot values = 0

Hybrid View

  1. #1
    Registered User
    Join Date
    08-21-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Scatterplot values = 0

    I created and populated a spreadsheet using VB.net. When I try to scatterplot the data the x values look fine but the y axis values are recognized as zeros. I've checked and reformatted the fields, but no luck. When I try the same thing with another worksheet in the same workbook, everything works as it should.

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

    Re: Scatterplot values = 0

    A sample spreadsheet will probably be necessary. My first guess is that, for whatever reason, your VB.net code is entering the y values as text rather than numbers, and Excel is not able to interpret those text strings as numeric. I would probably start debugging this by using one of the IS functions http://office.microsoft.com/en-us/ex...632.aspx?CTT=1 to see what data type those y values are. If they are text, then we can work out how to get Excel to see them as numbers.
    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-21-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Scatterplot values = 0

    MrShorty,
    Wow a response. I haven't figured out how to send an attachment but here is an ftp link to the file.
    Chart 1 was built using the Ambient Worksheet and Chart 2 Ambienttest. The problem occurs in the Ambienttest data...Plots are where I am heading...
    ftp://starfish.mar.dfo-mpo.gc.ca/pub...TempTest1.xlsx
    Cheers

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

    Re: Scatterplot values = 0

    Upon opening the file, the first thing I notice is a little green arrow in the upper left corner of each cell in columns A,C-I. I don't know what error checking options you have turned on and disabled, but this is Excel's way of highlighting a possible error -- in this case, the notification is, as I first suspected, a number stored as text. At this point, forcing Excel to perform some math operation will usually get Excel to convert these to numbers. Try putting 1 in an out of the way cell, then copy this cell, select the text values to convert, paste special -> multiply. Excel will attempt to multiply each cell in the destination by 1, which should convert numbers as text to actual numbers.

    If this is going to be a frequent problem, you might look at your VB code to see if it can be adapted so that it inputs the values as numbers instead of text.

  5. #5
    Registered User
    Join Date
    08-21-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Scatterplot values = 0

    Mr.Shorty,
    I had the error checking set off in the options, so didn't see the flag. I had tried reformatting but I guess that doesn't wave the error. Looks like you got it, I'll fix my code...Thanks!

+ 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. excel counting multiple values as different series in scatterplot
    By SuperFritz in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-21-2013, 08:50 PM
  2. Replies: 1
    Last Post: 01-03-2012, 02:34 PM
  3. Values in a Scatterplot
    By raychel_87 in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 11-25-2008, 12:53 PM
  4. Scatterplot....
    By tru- in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-20-2007, 08:17 AM
  5. How can i create a scatterplot with small and medium values?
    By casa3819 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 12-01-2005, 07:35 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