This reminds me off when i was creating an RTS, this part was the most simplistic
When moving, you get the point in which you want them to move, and re-arrange the formation to suit what you want.
E.g. you want them to go to the top screen so you'd pick the middle top.
From this point you do a for loop from 1 to max enemies and from there position them accordingly.
Depending on what formation you want you could make hundreds depending on how well you code

.
THUS everyunit could have a way point from the formation results

, and just move them to it. If you were to add collision between them this can make difficulties as i found out, but in general if you add some nifty code for movement this can get around that problem.
Hope that helps, if you want more info feel free to ask in more specific areas and i'll try help.
----------------------------------
http://www.hybridwolves.co.uk
----------------------------------