Sorry it is really hard to understand your requirement, even looking into your same excel. You better simplify your data and require output sheet (in sample excel).