Constraint Solving in Spreadsheets

Can we create a tool that allows users to specify constraints in a spreadsheet and then solve them?