You are here:

Excel/Excel 2003 scatter graph


Hello Bob,

Thank you for your help with the following matter.

I am not overly experienced with MS Excel so apologize if I am not making myself clear.

I want to turn data from a pivot table into a scatter graph but am unable to do so as this format is not supported.

I have included a copy of the type of data I recieved from the pivot table that I wish the scatter graph to show.

The x axis should start at 24.
The y axis should range from 0 to 2000 at equal increments.
The data points on the graph should equal the value currently represented by an x.

Please can you explain how I can make this into a scatter chart so I can do this for future graphs?

Many thanks

Assuming you have columns O&P totally available:

Sub MakeXY()
   Dim Rg As String
   For Each thing In Range("A2").CurrentRegion
       If thing.Value = "x" Then
         n = n + 1
         Cells(n, 15).Value = Cells(1, thing.Column).Value
         Cells(n, 16).Value = Cells(thing.Row, 1).Value
       End If
   Cells(1, 15).CurrentRegion.Select
   With ActiveChart
       .ChartType = xlXYScatter
       Rg = Range("O1").CurrentRegion.Address
       .SetSourceData Source:=Range("Sheet1!" & Rg)
       .Axes(xlCategory).MinimumScale = 0
       .Axes(xlCategory).MinimumScale = 24
       .Axes(xlValue).MinimumScale = 0
       .Axes(xlValue).MaximumScale = 1000
       .Axes(xlValue).MaximumScale = 2000
   End With
End Sub

About Excel
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here


All Answers

Answers by Expert:

Ask Experts


Bob Umlas


I`m a Microsoft Excel MVP (Most Valuable Professional) and have been since the inception of the program in 1995. I can answer every kind of Excel question except: API, Importing/exporting to other programs (powerpoint, word,...) Also check out my in-person training link at


Worked with MS Excel since version 0.99 (on the Mac!). Was contributing editor to Excellence Magazine, having written >300 articles. John Walkenbach said of me "I finally met someone who knows as much about Excel as I do."

Excellence, The Expert, Microsoft

BA in math, Hofstra University, 1965

Awards and Honors
Led sessions for the Convergence 2004-2006 seminar on Excel tips & tricks

©2017 All rights reserved.