XY Scatter Graph - Using Formulae within the Data Range

Markwales

New Member
Good morning all.

Excel Version = 2003 XP

Is it possible to use formulae within Chart Data Ranges?

What I need to do : (simplified)

Columns A & B = The data I want charting
Column C = An indicator 1, 2, 3 or 4

I have 4 charts

Each chart charting the data for the relevant indicator.

At present I have to sort the data by column C, and change the data ranges to take into account the ever increasing number of rows due to additional data.

Is it possible to say =IF(\$C:\$C=1, then chart the data in columns A and B)
Similarly for 2, 3, and 4 and so on.

I hope this makes sense!

Mark.

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Markwales

New Member
I've tried everything I can think of over the last 4 hours to solve this, but am getting nowhere.

I've even tried creating 2 other columns to chart from with IF(\$A1=1,1) and IF(\$A1=1,2) etc but the charting doesn't like the FALSE answers from cells that are 2, 3, or 4.

I am now doing some serious head scratching!!!

pgc01

MrExcel MVP
Hi Markwales

If you mark a point as Not Available the graph will interpolate it.

With you data like in the example I post, use in D2

=IF(C2=1,B2,NA())

The same for the other E:G

Then build the chart using Columns A,D:G and you'll see the 4 lines.

Hope this helps
PGC

Markwales

New Member
Brilliant - Many thanks for the help, much appreciated, and it work's a treat.

Replies
0
Views
111
Replies
0
Views
377
Replies
0
Views
125
Replies
0
Views
314
Replies
2
Views
597

1,136,878
Messages
5,678,297
Members
419,753
Latest member
Sallylwy

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back