# Variable Charting

#### Makk14

##### Board Regular
Hello experts,
There are formulas in A1:A100 and B1:B100 that refer to another sheet. The values returned from the another sheet could be blank or a value. If a blank is returned, there should be no point plotted on the graph. On the another hand, the value should be plotted.

My graph now keep graphing all 100 rows even if some of them are blank.

### Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
If change your formula to return NA() rather than "" the point will be skipped in a line or a xy scatter chart.

Thank you for your idea, the points disepeared! Do you have also any suggestions on how to shorten up the graph? I am using 100 lines to show eventually on the graph, but because only couple of first lines are populated, the graph shows couple of points on the left of the graph with a long blank space on the right. Thank you again for your previous response!

My formula in A is currently:
=(test!\$B467)

and in B it is
=IF(test!C467<>0,test!C467,#N/A)

Replies
2
Views
265
Replies
1
Views
137
Replies
1
Views
215
Replies
0
Views
542
Replies
5
Views
137

### Forum statistics

1,203,728
Messages
6,056,997
Members
444,902
Latest member
ExerciseInFutility

### 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.

### Which adblocker are you using?

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