You are going to have to do a lot better than that at explaining the problem. We need to know about the data, what you are trying to do (what does restrict mean in this contrext), and so on.

A workbook example would also help.