
Last Friday, we had a fun little Excel challenge – Calculate Maximum Change. More than 170 people commented and shared their solutions to this problem.
And the best part?
The best part is the variety of solutions & thinking displayed by our community. So if you are one of those 170, puff your chest & pat yourself on the back. Go ahead, I will wait.
Today, lets take a look at some of these awesome formulas and understand how they work. Read on and watch the video you below to gain few awesomeness pounds.
First, lets understand the problem
Here is a look at the problem:

We need more information to answer this question.
- Are we talking about positive change, negative change or absolute change?
- Are we talking about % change or value change?
In the original problem, even though I did not mention it, most people assumed that we want absolute change of value (ie the answer is 40, for Product 2).
But in real life, you may want to understand the problem a little more before writing any formulas.
Note: The data is in C3:C8 for last month and D3:D8 for this month.
Solution #1: Using MAX array formula
This is the solution most people got.
The array formula:
=MAX(C3:C8-D3:D8)
press CTRL+Shift+Enter after typing.
How it works?
C3:C8-D3:D8 portion: This gives the result {-20;40;15;21;0;-25} in array form.MAX(…) portion: This simply calculates the maximum value of above array and returns 40 as answer.
Why press CTRL+Shift+Enter (CSE)?
We need to press CTRL+Shift+Enter because MAX() is not capable of handling arrays. If you write MAX({-20;40;15;21;0;-25}) you would get 40, but the same array when calculated by doing math on ranges will not work. To force MAX to treat arrays, we need to press CTRL+Shift+Enter.
Solution #2: Using MAX+ABS array formula
Quite a few people figured out that the formula needs to work even when the change is negative. And that is where this new solution comes handy.
The array formula:
=MAX(ABS(C3:C8-D3:D8))
press CTRL+Shift+Enter after typing.
How it works?
ABS() portion: converts the change values {-20;40;15;21;0;-25} to positive {20;40;15;21;0;25}
Rest of the formula is same as solution #1.
Solution #3: Using INDEX to avoid Ctrl+Shift+Enter
The thing with Ctrl+Shift+Enter is that you have to remember it. If you accidentally press Enter instead of CSE, the formula stops working. One way to avoid this is to route the calculation thru an Excel function that can natively process arrays. This is where INDEX (or SUMPRODUCT etc.) come handy.
The formula:
=MAX(INDEX(C3:C8-D3:D8,0))
or
=MAX(INDEX(ABS(C3:C8-D3:D8),0))
How it works?
Same as Solution #1, except for this formula you do not have to press Ctrl+Shift+Enter. The INDEX will automatically calculate the array and send numbers to MAX. Then MAX feels mighty comfortable dealing with those numbers and spits out the answer as 40.
Learn more:
Solution #4: Using AGGREGATE
AGGREGATE() is a new function introduced in Excel 2010. This too, like INDEX & SUMPRODUCT can process arrays natively (provided you are using one of the aggregates like LARGE). Kyle, one of our commenters shared 2 brilliant solutions that involve AGGREGATE.
The formula:
=AGGREGATE(14,4,(C3:C8)-(D3:D8),1)
How it works?
14, 4 portion: This tells AGGREGATE that you want to calculate LARGE value (14) and you want to consider all cells (4). To understand more about AGGREGATE see the links below.
(C3:C8)-(D3:D8) portion: As seen above, this just gives an array – {-20;40;15;21;0;-25}
1 portion: This tells AGGREGATE that you want 1st largest number.
Learn more:
Solution #5: Using MMULT and AGGREGATE
Now this is what I call a scary formula. It can potentially waste your entire afternoon when you try to understand it first time. But once you get it, you feel awesome. This too is posted by Kyle.
The formula:
=AGGREGATE(14,4,MMULT(C3:D8,{1;-1}),1)
How it works?
Watch the video. Explaining how this works in text is difficult.
Learn more:
I am still trying to understand MMULT(). It can be as complex and deep as string theory (or recipe of making bread at home). Go thru below links to learn more about it. Make sure you put on your helmet, cause it will blow your mind.
More ways to get maximum change + Bonus problem
Watch below video to understand how to solve the maximum change problem and another related problem.
Click here to watch if you can’t see the video above
Download Answer workbook
Click here to download answer workbook and examine the formulas to learn more.
What did you learn from this formula challenge?
I learned how to use AGGREGATE, Array SUMIFS and got a better handle on MMULT.
What about you? What did you learn thru this challenge. Please comment and let us all know.

















14 Responses to “Group Smaller Slices in Pie Charts to Improve Readability”
I think the virtue of pie charts is precisely that they are difficult to decode. In many contexts, you have to release information but you don't want the relationship between values to jump at your reader. That's when pie charts are most useful.
[...] link Leave a Reply [...]
Chandoo,
millions of ants cannot be mistaken.....There should be a reason why everybody continues using Pie charts, despite what gurus like you or Jon and others say.
one reason could be because we are just used to, so that's what we need to change, the "comfort zone"...
i absolutely agree, since I've been "converted", I just find out that bar charts are clearer, and nicer to the view...
Regards,
Martin
[...] says we can Group Smaller Slices in Pie Charts to Improve Readability. Such a pie has too many labels to fit into a tight space, so you need ro move the labels around [...]
Chandoo -
You ask "Can I use an alternative to pie chart?"
I answer in You Say “Pie”, I Say “Bar”.
This visualization was created because it was easy to print before computers. In this day and age, it should not exist.
I think the 100% Bar Chart is just as useless/unreadable as Pies - we should rename them something like Mama's Strudel Charts - how big a slice would you like, Dear?
My money's with Jon on this topic.
The primary function of any pie chart with more than 2 or 3 data points is to obfuscate. But maybe that is the main purpose, as @Jerome suggests...
@Jerome.. Good point. Also sometimes, there is just no relationship at all.
@Martin... Organized religion is finding it tough to get converts even after 2000+ years of struggle. Jon, Stephen, countless others (and me) are a small army, it would take atleast 5000 more years before pie charts vanish... patience and good to have you here 🙂
@Jon .. very well done sir, very well done.
good points every one...
I've got to throw my vote into Jon's camp (which is also Stephen Few's camp) -- bars just tend to work better. One observation about when we say "what people are used to." There are two distinct groups here (depending on the situation, a person can fall in either one): the person who *creates* the chart and the person who *consumes* the chart. Granted, the consumers are "used to" pie charts. But, it's not like a bar chart is something they would struggle to understand or that would require explanation (like sparklines and bullet graphs). Chart consumers are "used to" consuming whatever is put in front of them. Chart creators, on the other hand, may be "used to" creating pie charts, but that isn't an excuse for them to continue to do so -- many people are used to driving without a seatbelt, leaving lights on in their house needlessly, and forwarding not-all-that-funny anecdotes via email. That doesn't mean the practice shouldn't be discouraged!
[...] example that Chandoo used recently is counting uses of words. Clearly, there are other meanings of “bar” (take bar mitzvah or bar none, for [...]
[…] Grouping smaller slices in pie chart […]
Good article. Is it possible to do that with line charts?
Hi,
Is this available in excel 2013?