> You're welcome. Note that Janis' solution and mine will report different
> values if one manufacturer uses the "single" enclosure type twice
> (Janis' will count it as 1, mine will count it as 2). I'm not sure which
> is correct but it should be fairly easy to tweak either solution to do
> the opposite thing.
although I did a quick test with a test sample I didn't notice that Janis' version count them as 1. Now I checked that with the real data and yes, there is the difference between yours and Janis' script.
I think I wasn't clear enough when I decribed my needs.