Here is a cool Excel file that will generate combinations based on the Sum you request.
Thanks to GillesD at Lotto649 for the code.
The example below is using the 5/59 game with no bonus ball and selecting the Sum 150 (52662 total combinations)
You can change the Sum 150 (see image above) to any number between 15 and 285
You can also change the number 55 through 59 to your Pick 5 game. e.g. 5/43