Hi Rurangwa,
Instead of having Crystal format the data, I would recommend doing this on the database side or in Excel or something else. Crystal will have a hard time doing what you want and it would be extremely inefficient.
Crystal is great for formatting data for display but if the data is not in a optimal structure, it makes designing a report very difficult.
Good luck,
Brian