use excel solver for multiple cells. There are any references about use excel solver for multiple cells in here. you can look below.