Excel Analysis Toolpak

Running Statistical Data Analysis (EDA) using Excel Functions and Formulas.

Back in August Microsoft made a momentous announcement of good ole’ Excel now supporting Python scripts (at least for those Office 365 subscribers who are part of the Beta Insider channel.) While this functionality brings an array of virtually unlimited possibilities to an already powerful tool, many analysts recognize that support for various statistical analysis techniques is one of the most promising areas to capitalize here. Having said that, some users do not realize that they don’t need to leverage sophisticated Python functions to conduct exploratory data analysis of their datasets – they can instead install Excel add-in called “Analysis Toolpak” to get them started on their statistical learning journey. In this post we will use this tool to analyze weight distribution of players appearing on the 2023/24 Chicago Bears Roster. These summary statistics will help us get a quick overview of this dataset, and in turn, make it easier for us to spot patterns and outliers. We will then recreate these capabilities via Excel functions and formulas.

Continue reading

Sentiment Analysis in MS Excel

Utilizing Microsoft Azure ML add-in to perform Sentiment Analysis within an Excel worksheet.

Modern day business tasks require us to consume ever-increasing volume of data, which often comes in an unstructured form. Whether you’re looking to get to know your customer preferences better via a survey or seek to understand their opinions on the products you sell by scraping online product reviews, chances are you will need to find a way to efficiently analyze large stacks of text. You would be best served to take advantage of a sentiment analysis tool to undertake such a labor-intensive task. Last week I had a great opportunity to share my take on understanding the basics of Sentiment Analysis with the Strategic Finance Magazine. While I briefly covered fundamentals of textual preprocessing (tokenization, POS tagging, stop word removal, stemming, etc.) as well as various ways to perform actual analysis in this journal, those who are interested in an unabridged version of this article might want to head to my LinkedIn post on this subject for a more detailed overview.

Continue reading

Array Functions in MS Excel

Working with MS Excel Array Functions (FILTER, RANDARRAY, SEQUENCE, UNIQUE, SORT, SORTBY)

It’s hard to keep up with seemingly non-stop additions to Excel’s impressive catalog of functions. If you happen to belong to Office Beta channel you might have started working with the newest release of text and array functions. As a regular Office 365 subscriber I’ve already covered newish XLOOKUP and LAMBDA functions on this blog. It was last year when the Excel team introduced dynamic array functions, also known as spilled array functions. These functions return arrays of of values of different sizes and spill them into adjacent cells. You can usually specify how long and how wide the output ranges should be. These functions include – UNIQUE (returns unique values from the range of values), SEQUENCE (retrieves a sequence of values), SORT, SORTBY, RANDARRAY(array of random numbers based on specified parameters), and FILTER. In this post we will explore examples on how to use these functions.

Continue reading

LAMBDA Function - MS Excel - MPG

Having fun with Excel LAMBDA function – building a BMI calculator and MPG conversion formulas

Let’s face it, despite the ever-growing catalog of 500(!) or so Excel functions, we cannot expect Microsoft developers to create all functions that meet the needs of every Excel user. Even if this feat were possible, the program itself would become unusable due to the sheer number of functions made available blocking us from using a few that we actually need. Traditional solution is age-old – using VBA to code a User Defined Function (UDF.) In fact, we’ve already covered the process of creating UDFs here and here.

Fast forward to 2016, when Excel teased the idea of the LAMBDA function, initially limiting its release to Office 365 subscribers opted in into the Office Insider edition. Since then this “ultimate” Excel function went through a number of revisions and enhancements and while it didn’t make its wider debut in time for Excel 2021 version, it was eventually released to the general public (i.e. all current Office 365 subscribers) earlier this month. We can now create a custom Excel function without having to deal with the Visual Basic Editor window ever again.

Continue reading