In-string tag search

HI all,

I have created a tag called formats which may contain none, one or several 3 character codes separated by a space. ie:

file1.mp3 FORMATS:NOG SWI BIG RAG TBR

file2.mp3 FORMATS:NOG SWI

file3.mp3 FORMATS: BIG

file4.mp3 FORMATS:RAG NOG SWI

As shown above, the codes will not always be in the same position.

I need to create a report based on all tracks within my library, showing a cumulative total for each individual code found in the format field. Unfortunately, I am not sure how to achieve this.

Chris