It always helps if you post a sample formula and explain, if necessary, the layout of your data and briefly, perhaps with a small example, what results you expected and what results you got.