Excel tutorials

The only Excel books you will ever need

  • The only constantly updated Excel 365 titles more…
  • Thoroughly covers Power Pivot and Power Query more…
  • Covers business intelligence and OLAP features more…
  • Simple, easy, understandable, 2-page lessons more…
  • Available as both printed books and e-Books more…
  • Used by schools, colleges and universities  more…
  • Available for 365, 2021, 2019, 2016 and Mac versions more…

Forcing Solver to return whole numbers

What is Solver?

Solver is an Excel Add-In that automatically ‘solves’ mathematical problems. You could use it, for example, to calculate which products would make the best use of the materials you have on hand.

While Solver is an Add-In it is included with every copy of Excel and can be enabled very easily. There is also a simpler calculation tool called Goal Seek that can be found on Excel’s Data Ribbon tab.

Goal Seek and Solver are both explained in depth in our Expert Skills Books and E-books.

Adding a constraint for whole numbers

Solver supports ‘constraints’, which supply rules that Solver must follow when calculating its results. To limit Solver to whole numbers you would need to create an Integer (or int) constraint:

This will force Solver to use only whole numbers in the specified cells.

Share this article

Share on facebook
Share on twitter
Share on linkedin
Share on stumbleupon
Share on email

Recent Articles

Wholesale Order Complete

Wholesale Order Complete Thank you for your order We’ll confirm your order and the likely delivery date via e-mail within the next 24 hours. If

Leave a Reply

Your email address will not be published.

Which tutorial do you need?