+ Reply to Thread
Results 1 to 13 of 13

X/Y Scatter plot

  1. #1
    Registered User
    Join Date
    08-22-2018
    Location
    Switzerland
    MS-Off Ver
    Excel for Mac Version 16.15
    Posts
    6

    X/Y Scatter plot

    Hi all!

    I have gathered data through a survey which has the following layout:

    NameA | Value 1 | Value 2
    NameB | Value 1 | Value 2
    NameC | Value 1 | Value 2
    NameD | Value 1 | Value 2
    ...
    ..
    .

    All values are between 1 and 5. I would now like to visualize the results using a scatter plot, X axis values 1-5 and Y axis values 1-5.

    E.g.: NameA scored 3 in value 1 and 5 in value 2, so there is one datapoint on the scatterplot on 3/5.

    For some reason I couldn't figure out how to do that in Excel. Excel keeps auto-summarizing my data on the X axis, but all I want is both scales to be 1-5. I appreciate every input!


    Thanks,
    David
    Last edited by DavidCPRE; 08-22-2018 at 10:11 AM.

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: X/Y Scatter plot

    Can you post an example workbook showing what you've got? There shouldn't be an issue plotting that as an XY scatter, though Excel is usually better at guessing if you leave the header cell for the first column blank.
    Rory

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

    Re: X/Y Scatter plot

    I don't understand what is going on. What do you mean by "autosummarize" data on the x-axis.

    If I were creating a scatter chart, I would expect to:

    1) Select the "value 1" column and the "value 2" column.
    2) Insert chart -> XY scatter -> desired subtype
    3) If Excel gets something wrong (such as giving me two data series plotted against "point number"), bring up the Select Data dialog and fixing Excel's mistakes.
    4) If the X values are still "point number" instead of the actual Value 1 values, then I would expect to find a text string (including a number stored as text) somewhere in the value 1 range. Test using the ISTEXT() function and fix by doing whatever I need with the text strings in that range.

    Does that help? If not, can you upload a sample sheet (with dummy data, if needed) that illustrates your problem?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    08-22-2018
    Location
    Switzerland
    MS-Off Ver
    Excel for Mac Version 16.15
    Posts
    6

    Re: X/Y Scatter plot

    Name Value1 Value2
    A 1 4
    B 3 4
    C 5 5
    D 3 1

    This is how it looks, around 90 names/individual responses. Thanks!

  5. #5
    Registered User
    Join Date
    08-22-2018
    Location
    Switzerland
    MS-Off Ver
    Excel for Mac Version 16.15
    Posts
    6

    Re: X/Y Scatter plot

    Screen Shot 2018-08-22 at 16.22.08.png

    As you can see, on the X axis there are numbers way higher than 1-5 and I haven't figure out how to solve this.

  6. #6
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: X/Y Scatter plot

    You'll need to upload a workbook, not a picture.

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

    Re: X/Y Scatter plot

    Did you read through my whole post? It looks to me like you are up to step 4 -- you have text strings in your X values range. The strongest evidence for this is that the 6th data point (Name F) is plotted at x=6 and y=0, even though the picture suggests that point F is "blank". This suggests to me that point F is not truly blank, but that these cells contain some kind of non-printing character (empty string "", or space, or something similar).

    I think the best thing you could do right now is to read this: https://peltiertech.com/mind-the-gap...g-empty-cells/

    Onedit: after looking at your file, I see that B7 contains a 0 length text string, which is causing Excel's scatter chart to ignore the X values column, and plot some of Y values as 0. You need to do something different with those "empty - but not really empty" cells.
    Last edited by MrShorty; 08-22-2018 at 10:44 AM.

  8. #8
    Registered User
    Join Date
    08-22-2018
    Location
    Switzerland
    MS-Off Ver
    Excel for Mac Version 16.15
    Posts
    6

    Re: X/Y Scatter plot

    Of course - here you go. Thanks!
    Attached Files Attached Files

  9. #9
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: X/Y Scatter plot

    Your issue is as MrShorty says. (You can tell because Ctrl+Down arrow/Up arrow will not stop at any of the "blank" cells)

  10. #10
    Registered User
    Join Date
    08-22-2018
    Location
    Switzerland
    MS-Off Ver
    Excel for Mac Version 16.15
    Posts
    6

    Re: X/Y Scatter plot

    Ahh thank you so much! It seems to work now. Really appreciate it a lot. Now, is there a way to make the points larger where more data points overlap?

  11. #11
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,913

    Re: X/Y Scatter plot

    Not easily. What I usually do is to use a semi-transparent fill, so that when you have more points overlapping, they get darker.

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

    Re: X/Y Scatter plot

    Now what you are describing sounds like a bubble chart to me. Where you need to have a summary table that will show the existing A & B combinations and count how many of each combination, then use that table to create a bubble chart. A pivot table might be a convenient way to create that summary table. If you use a pivot table for this, you need to know that a pivot chart cannot be a bubble chart, so you will need to employ some "trickery" to get a bubble chart built off of a pivot table (https://peltiertech.com/regular-char...-pivot-tables/ ).

    Do you need help building the summary table, or do you already know how to do that?

  13. #13
    Registered User
    Join Date
    08-22-2018
    Location
    Switzerland
    MS-Off Ver
    Excel for Mac Version 16.15
    Posts
    6

    Re: X/Y Scatter plot

    That makes sense. I'll check out the link you posted and will get back to you if I need help. 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. Replies: 3
    Last Post: 02-07-2018, 04:43 PM
  2. How to plot 3 variables in scatter plot with excel formula
    By tanvir in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-13-2017, 04:10 AM
  3. Converting Scatter plot to Line plot and back
    By SPDavern in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-26-2015, 10:49 AM
  4. Excel 2010 - X Y scatter plot will not plot empty cells as gap
    By bjeffers0306 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-12-2013, 12:56 AM
  5. Replies: 2
    Last Post: 07-26-2012, 09:27 AM
  6. [SOLVED] Can I copy x-y scatter plot data direct from one plot to another?
    By Chris in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-03-2005, 09:05 AM
  7. Converting XY Scatter plot to Line Plot and back
    By SPDavern in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-09-2005, 10:06 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