You still haven't posted sample data with expected output. We are unable to help with the information given so far.