If you post a sample workbook describing the problem and the expected output it will be much easier to help you.