Attached is a sheet with my own (clumsy?) attempt to produce something that I now suspect is an ARRAY process.
Arrays.ods (78.1 KB)
I’m sure some of you true magicians can point me in the right direction. Thanks in advance.
Firstly, in real use, the sheet is sorted descending on B and the dates C are filtered to exclude everything later than the current week, so it’s imperative that the process will still correctly account for the inversion of all the formulae. The “Grouped” columns are obviously normally hidden.
At the end of each calendar month, the overall array is extended into the boundaries defined at the bottom of the sheet to accommodate the additional days. O1:R3 help define the new dimensions and the appropriate 8 row array is simply replicated into the newly inserted extension and all the cells are thereby incorporated into all the Conditional Formatting and Range Expressions.
Conditional formatting is a real dog’s dinner as it creates new entries for each cluster of 8 rows so I end up with a shotgun approach to the columns with 20+ overlapping entries in the CF register for EVERY column. I’m becoming quite proficient at editing the dross.
The proliferation of filters permit almost infinitely variable selection criteria and some of the columns are filtered source data for another sheet in the file and four charts.
My procedure is to enter the value in C1:C5 which I want to count in the respective columns identified in D1:D5 with the results shown in E1:E5.
I’m aware that internally, the columns are numbered so O5:S5 are pressed into action as “Helpers” to accumulate the results for their respective columns. The individual cells in the column are simply “switches” to identify the existence of the defined value in the appropriate “real” column.
I’m sure I can learn at least two new things today.