Hi, am trying to find a way of counting "variations".
The raw data is as per columns A&B, and I'm trying to do a count in Col C of the number of different types listed for each model.
At the moment, I use a long winded method of:
1. copy original info 2. dedupe 3. pivot table with counts of (only) the models 4. lookup back to the original info 5. hope I haven't left anything off any of the steps 6. try and get back my train of thought (oops!)
I normally use this on pretty big datasets, up to 100K, but there are only ever 2 fields.
The added complications seem to be:
i) although there is always a model, there isn't always a type listed - sometimes they are left blank).
ii) both the model and the type can be alphanuemeric strings, but also some are made entirely of digits and some are just letters
I'd be happy to use helper columns, code or whatever could help to make this a bit quicker / easier / foolproof (especially with my stickY fingers!)
Thanks for looking.
The raw data is as per columns A&B, and I'm trying to do a count in Col C of the number of different types listed for each model.
Model | Type | Count-Of-Types |
ABC123 | black | 1 |
54123 | black | 3 |
54123 | 14 | 3 |
54123 | grey | 3 |
54123 | grey | 3 |
54123 | grey | 3 |
54123 | grey | 3 |
XYZ789 | white | 3 |
XYZ789 | red | 3 |
XYZ789 | 3 | |
XYZ789 | 12 | 3 |
At the moment, I use a long winded method of:
1. copy original info 2. dedupe 3. pivot table with counts of (only) the models 4. lookup back to the original info 5. hope I haven't left anything off any of the steps 6. try and get back my train of thought (oops!)
I normally use this on pretty big datasets, up to 100K, but there are only ever 2 fields.
The added complications seem to be:
i) although there is always a model, there isn't always a type listed - sometimes they are left blank).
ii) both the model and the type can be alphanuemeric strings, but also some are made entirely of digits and some are just letters
I'd be happy to use helper columns, code or whatever could help to make this a bit quicker / easier / foolproof (especially with my stickY fingers!)
Thanks for looking.