Please post sample data and expected output. This is the easiest way for others to understand your need.