Make another column with (D) where D1 =
Plot column A on the X-axis, plot column D on the Y-axis.Code:=IF(C1="yes",B1,#N/A)
Excel won't plot #N/A errors and will skip the ones with 'no'.
Edit: Re-read. This is a solution áfter you found a way to find the 'highs' and the 'lows' of course.
This should get you started:It's finding the highs and lows that is time-consuming. I don't yet have a yes/no column in my 45000 lines of data!
Assuming your data is in A:B, starting in row 2, in C2 enter:
=OR(ISTEXT(B1),AND(B2>B1,B2>B3),AND(B2 < B1,B2 < B3))
and copy down. Now AutoFilter column C for TRUE and your chart should plot only the visible cells (check the setting under Tools|Options|Chart).
Try copying the visible cells to another sheet (in chunks if necessary) and plotting that.
Okay, I finally managed it. I had to break the data into smaller chunks to copy it to a new sheet due to the complexity message cropping up again, but i finally got there.
45000 lines of data is reduced to 18000 lines. That's makes it just about manageable I hope.
Thanks for all your help.
Dave