jeffreybrown
Well-known Member
- Joined
- Jul 28, 2004
- Messages
- 5,152
I have a scatter diagram which I want to allow the user to remove data points from the chartted data.
My Y's are in column B and the X's in column C with a Worksheet_BeforeDoubleClick event on column D. DoubleClick in column D and the values in columns C/D change into #N/A so the values will not plot on the chart.
The formula below will ignore zero's, but can't seem to get it to work with the #N/As. Actually there will never be a zero in the data, only an #N/A that needs to be excluded.
CSE
=CORREL((IF(B2:B13<>0,B2:B13,"")),(IF(C2:C13<>0,C2:C13,"")))
My Y's are in column B and the X's in column C with a Worksheet_BeforeDoubleClick event on column D. DoubleClick in column D and the values in columns C/D change into #N/A so the values will not plot on the chart.
The formula below will ignore zero's, but can't seem to get it to work with the #N/As. Actually there will never be a zero in the data, only an #N/A that needs to be excluded.
CSE
=CORREL((IF(B2:B13<>0,B2:B13,"")),(IF(C2:C13<>0,C2:C13,"")))