If you attach a workbook (not pictures) with some data and the expected output it will be much easier to help you.