Thank you, I glad it worked for you. I simply used Excel Pivot table feature which is most suitable in this type of situations.