Hi Oren ,
The problem is clearly stated , no problem.
To test the macro , at least 20 to 50 rows of data would be required , so that there is enough variety ; if you can upload a file with some real data , not made-up values , that would help.
It would be nice if you could upload a file where you have already manually worked out the outputs , so that what ever results are obtained with the macro can be cross-checked with the manually obtained results.
Narayan