Thanks for the pointer Tony you are a STAR!
For completeness on this bit here is what I've done and it works
{AandB} {AandC} {AandD} {AandE} {AandF} {AandG}
{BandC} {BandD} {BandE} {BandF} {BandG}
{CandD} {CandE} {CandF} {CandG}
{DandE} {DandF} {DandG}
{EandF} {EandG}
{FandG}
The number of times you selected A was {count(AandB=='A', AandC=='A', AandD=='A', AandE=='A', AandF=='A', AandG=='A')}
The number of times you selected B was {count(AandB=='B', BandC=='B', BandD=='B', BandE=='B', BandF=='B', BandG=='B')}
The number of times you selected C was {count(AandC=='C', BandC=='C', CandD=='C', CandE=='C', CandF=='C', CandG=='C')}
The number of times you selected D was {count(AandD=='D', BandD=='D', CandD=='D', DandE=='D', DandF=='D', DandG=='D')}
The number of times you selected E was {count(AandE=='E', BandE=='E', CandE=='E', DandE=='E', EandF=='E', EandG=='E')}
The number of times you selected F was {count(AandF=='F', BandF=='F', CandF=='F', DandF=='F', EandF=='F', FandG=='F')}
The number of times you selected G was {count(AandG=='G', BandG=='G', CandG=='G', DandG=='G', EandG=='G', FandG=='G')}
Anybody got any ideas on how I can sort these in descending count order?
Thanks in advance
Steve