Your problem will be a lot easier to understand and solve if you supply a small data sample in a workbook. If you've figured out how to attach a PDF, I'm sure you'll be able to attach a workbook.