Hi,
I think it's feasible but need to know what Excel version you are using and exactly the rules the script should implement.
For previous applescript works, have a look at clients' reviews under my profile here and also in elance: http://perm.elance.com.
Feel free to ask further details.
Kind regards,
Mike