
Originally Posted by
BadlySpelledBuoy
OK, is this anywhere near what you're after?
Select the start date in the green cell and the end date in the red cell. (Note, I've set them up so you cannot select an end date that's prior to the start date.)
The number of times each occurrence appears between (and including) those dates will calculate in column J and the chart will populate from there.
I've put the chart on the same sheet. This is for demonstration purposes only so you can easily see it changing when you change the dates. It's a simple enough task to have that show on a separate sheet.
If this is what you need and you want to replicate it in your main workbook then press Ctrl+F3 to bring up the name manager to see how the named ranges work and replicate the formulas in column J. At the moment I have the formulas set to capture any data down to row 5000. You can obviously adjust this to suit your needs but be wary that this method uses SUMPRODUCT and if you reference entire columns with this formula things will become very sluggish very quickly!
You could set the whole thing up to work with dynamic named ranges for the date and data columns too so the formulas would auto adjust to your data.
BSB
Bookmarks