Hi Paul,
I hope this is what you are looking for.
For example
cells a2:b2 containing titles
cells a3:a5 = jan, feb, mrt
cells b3:b5 = 150, 200, 600
When you want the change the chart based on the value of B5 :
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Range("B5") < 500 Then
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.SeriesCollection(3).Interior.ColorIndex = 50
Else
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.SeriesCollection(3).Interior.ColorIndex = 3
End If
Range("B5").Select
End Sub
-----
...to accomplish this without resorting to VBA is
to create a Stacked Column Chart. For example,
suppose cells A1:A5 contains...
{"Series1"
;400
;600
;750
;250}
Enter the formula, =MAX(0,A2-500), into cell B2
and copy down to cell B5. Select cells A1:B5 and
create a chart using the Stacked Column chart type.
A variation of the same approach...
In the event that you want the entire column set
to a different pattern (not just the "tip" that
exceeds your limit). Then (using the same data
as before) enter the formula, =IF(A2>500,A2,0),
into cell B2 and copy down to cell B5. Create a
standard (side by side) column chart. Select
a data series, choose the Format | Selected Data
Series... menu command, and set the Options
"Overlap" value to 100.
Just what I was looking for!!
Exactly what I was looking for!! Thanks Mark