Data Centres for Cash Flow Modellers - Github Repos and Excel Labs
The world of open-source software has driven innovation, fuelled collaboration worldwide and yielded libraries to spawn a whole range of new ideas. One major influence has been Github, which is a type of repository. Imagine dropbox of documents, but for programmers to share, duplicate, refine and track changes. There was some scepticism when Microsoft took the plunge and bought it for an astronomic price. Would the corporate, infamous for self-promotion, nurture this open-source project? Thankfully, the consensus appears to be that it has continued to be a resounding success.
To date, Github hasn’t been a great repository for Excel spreadsheets. The tracked changes feature does not work for different versions of Excel files. For example, if someone changes cell A1 from Value X to Value Y, Github will not highlight these changes. This is very different to text-based coding where each line and character of code is tracked for every coding author to see who made the change. In Github terms you literally track the ‘blame’ apportioned to each change: who made and “pushed” the change, and at what time.
But now Github is incredibly useful for advanced Cash Flow modellers. If they like working with Lambda Functions in Excel, they can benefit from Github’s platform power. If they benefit from Github (more on that below), then Corporates may ensure analysts write formulae only once for an entire national or international team. They can neatly document Cash Flow functions to reduce the risk management issues Excel modellers are embroiled with today.
At the heart of the interaction between Github and Excel are Github Gists. These are shareable snippets of code. As per below, they can be shared via internet links (URLs), embedded in web page or simply circulated via email and social media.
Cash Flow modellers can take the following simple steps to explore Github Gists and Excel:
Firstly, download Excel Labs which is like a code or text editor that sits within the Excel workbook interface.
Secondly, get a Github.com account.
Go to the Github Gist page and create any new Lambda function.
Copy a shareable Gist URL
Use Excel Labs to import the Gist URL.
A Github URL is shareable with anyone. For example: https://gist.github.com/MMMUK1/b3d0bb1be292a606a4d19c48e44b1dee.js
The Github Gist content looks like the following embedded item here:
Between “/ * " and " * / " you can write any comments that will be ignored by the Excel workbook Lambda function editor. This helps document anything your team needs to know about your Lambda function.
Excel Labs Add-In
The Excel Labs Add-in looks like the following when it has imported the above Github Gist:
When the Github Gist is downloaded successfully into your Excel Workbook, start typing and you should see your imported Lambda function appear quickly like any other ready-made Excel formula.