Hacker News new | ask | show | jobs
by phonon 1778 days ago
Have you looked at the "What-if Analysis" functionality in Excel? Scenario Manager and Data Table is designed for that kind of use case (one set of formulas, multiple sets of inputs/scenarios.)

Here are some videos on how to use them.

Data Table https://www.youtube.com/watch?v=y7S9ecg1wdQ

Scenario Manager https://www.youtube.com/watch?v=b_eFIdsV1Bk

1 comments

Those are really cool. I didn't know about them (I was also using Google Sheets :|).

Perhaps because I'm comfortable writing software it still feels very limiting to work within spreadsheets.

Think of spreadsheets as an IDE for functional programming so your brain treats them as software.

Arguably, the more code works like a spreadsheet (functions transforming values, lists, or matrices) rather than stepwise ‘if this then that’ sequences, the better.

Put another way, logic can be woolier than math, in that concise mathematical formulation tends to removes ambiguity when reasoning over inputs to generate outputs.