I think that a little more information about your data and the goals you have in mind, could hallow people here to provide sounder help.
So, for example:
-what are your goals?
-what kind of data you have?
-why did you pick up MW test?
-why you are interested in calculating the mean based on rank sum?