ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   Display count of data points in a scatter graph (https://www.excelbanter.com/charts-charting-excel/113705-display-count-data-points-scatter-graph.html)

npa100

Display count of data points in a scatter graph
 
I've been banging my head on what must be a simple problem (yet one
that I apparently can't solve). How can I display a count of the
number of data points actually plotted on an XY graph? I have a range
of, let's say, 100 cells. 70 of these cells contain a number and 30
contain N/A (and therefore aren't plotted). I'd like to display "n=70"
somewhere on my chart. Can anyone help? Thanks...


Andy Pope

Display count of data points in a scatter graph
 
Hi,

Put this formula in a cell, adjust range to suit. Assumes N/A is on the
X values only.

="n=" & COUNT(A1:A20)

To display the contents of the cell with the formula use a textbox or
chart text item such ax chart title or axis titles. See here how to link
textboxes to cells.
http://www.andypope.info/tips/tip001.htm

Cheers
Andy

npa100 wrote:
I've been banging my head on what must be a simple problem (yet one
that I apparently can't solve). How can I display a count of the
number of data points actually plotted on an XY graph? I have a range
of, let's say, 100 cells. 70 of these cells contain a number and 30
contain N/A (and therefore aren't plotted). I'd like to display "n=70"
somewhere on my chart. Can anyone help? Thanks...


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info

npa100

Display count of data points in a scatter graph
 
Perfect! Thanks Andy


Andy Pope wrote:
Hi,

Put this formula in a cell, adjust range to suit. Assumes N/A is on the
X values only.

="n=" & COUNT(A1:A20)

To display the contents of the cell with the formula use a textbox or
chart text item such ax chart title or axis titles. See here how to link
textboxes to cells.
http://www.andypope.info/tips/tip001.htm

Cheers
Andy

npa100 wrote:
I've been banging my head on what must be a simple problem (yet one
that I apparently can't solve). How can I display a count of the
number of data points actually plotted on an XY graph? I have a range
of, let's say, 100 cells. 70 of these cells contain a number and 30
contain N/A (and therefore aren't plotted). I'd like to display "n=70"
somewhere on my chart. Can anyone help? Thanks...


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info




All times are GMT +1. The time now is 08:09 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com