Apologies, but this is a lot of questions and a fairly complicated spreadsheet and I am not 100% clear how it works and what it is supposed to achieve exactly.
I describe below my understanding and solutions to certain individual problems.
And I attach a revised worksheet, all changes marked in yellow, based on what I think you're trying to achieve.
Certain formulas also look wrong to me, e.g. "Average>0" - you're ignoring zeroes for the average but where an actual items yields zero, that very zero should not be ignored. Otherwise your average is wrong.
But this is just me guessing what the outcome should be like.
For problem 3 as denoted in the Excel file, the following is a possible solution:
btw - I would avoid full column references, it's slow and error prone (e.g. if non-numeric headings are included etc.)
If you prefer to stick with COUNTIFS, try the following:
Next topic: for "COUNT ONLY THESE IDENTIFIERS" I would suggest the following:
Create a named range of unique identifiers first:
1) Helper column to identify all unique Identifiers:
- for me this formula is in AU23
The result is the same as the above formulas (164), so it appears there are no duplicates identifiers.
2) List all unique identifiers:
- for me the formula starts in AS25
Fill this formula as far down as necessary - at least 164 rows in this case; it must be array entered with CTRL+SHIFT+ENTER
3) Create a Names Range for these values and make the range dynamic, e.g. in this form:
4) Use this dynamic range for data validation for the "COUNT ONLY THESE IDENTIFIERS" - this list could further be sorted alphabetically (either manually or via formula, but the formulas are not
straight forward, so I'll save this bit for now)
And so on.
Have a look if the attached sheet already solves some of your problems.
As general advice because you said the data download does not always start in the same row etc.:
- Sheet 1 = Raw Data Copy Pase: Keep one input sheet where you just raw input the data on a copy paste basis
- Sheet 2 = Cleaned Up Rawe Data: Do another sheet where you bring the raw data into the same format, e.g. by determining where the data starts and then offsetting all data from the original data into the cleaned up input data sheet
- Sheet 3 = Output Sheet: Have a third sheet as the output sheet which uses only the cleansed up input data sheet: this should make formulas more straight-forward; e.g. your raw data seem to be stored as text etc. -
I e.g. quick and dirty fixed this with a the double unary character "--" infront of some formulas
Hope this help and is going into the right direction.
Any feedback, let me know.
Regards
Bookmarks