🔍
Trend Analysis in Excel - YouTube
Channel: 365 Data Science
[1]
In this lesson, I will provide a practical
example of how trend analysis can be used
[7]
to uncover patterns in a company’s data.
[10]
To make this exercise as close to real-life
as possible, I’ll use some Excel formulas,
[16]
so I will have to assume some pre-existing
Excel knowledge.
[21]
However, if you feel that you’re unable
to follow along, please consider going through
[26]
our Excel lessons.
[28]
Now, having said that, let’s go ahead and
engage with the trend analysis task.
[35]
Here’s the database we will work with.
[39]
This is a company that operates in 4 countries
– the USA, Canada, Mexico, and Brazil.
[48]
What we have is monthly data for the following
financials and KPIs - revenue, cost of goods
[56]
sold, advertising spend, staff costs, headcount,
employee engagement score, and website traffic.
[67]
And we can see that each row shows the data
for the respective month.
[73]
When we talk about trend analysis, we know
we’ll have to deal with dates, right?
[79]
Basically, we want to study how a variable
or two evolved over a given time span.
[87]
To be able to do that, I will add a new column
right after the ‘year’ field.
[93]
And I’ll name the new column ‘date’.
[97]
Now, in this case, we can apply the DATE function,
which results in a date output understandable
[105]
by Excel.
[108]
This function is based on three inputs – year,
month, and day.
[114]
The first two inputs are in columns B and
C, but we do not have a cell, which shows
[121]
the respective day because this is monthly
data.
[125]
So, let’s type 1 in brackets.
[131]
The date we obtained is the 1st of January
2019.
[136]
However, the financials shown here are for
month-end, so, to avoid any confusion, I will
[144]
add the EOMONTH function right before the
date function.
[151]
This would allow me to obtain the last date
of the respective month.
[157]
In this instance, EOMONTH needs only two inputs
– a starting date, which is the date we
[164]
defined with the DATE function, and a months
input standing for ‘’the number of months
[171]
before or after the start date’’.
[176]
The input we need is 0, as we want to obtain
the last day of the current month and hence
[183]
there’s no need to create a time lag with
a number different than 0.
[190]
Very well – the 31st of January.
[194]
The formula worked!
[195]
Let’s copy and paste to the bottom of the
table.
[204]
Perfect.
[210]
The next thing on my to-do list is to fill
in the empty table in the trend analysis sheet.
[218]
In this case, the trend analysis we will carry
out will be a comparison between the development
[225]
of revenues and cogs in the three years under
analysis.
[231]
Let’s use a SUMIF function to calculate
the amount of revenue and cogs the company
[237]
had in each month.
[239]
The SUMIF function requires three parameters
– range, criteria, and range to be summed.
[248]
The range we will use as criteria is in column
D of the database sheet.
[255]
This is the ‘date’ column we just created.
[258]
I’m fixing its references to allow easier
pasting of the function afterwards.
[266]
The criterion is the date that we have in
the trend analysis sheet.
[271]
I’m fixing the row reference.
[276]
And finally, the range to be summed is the
‘revenue’ column in the database sheet.
[285]
Ok.
[288]
Great.
[291]
We have the first revenue figure.
[294]
Now, to adjust the function for cost of goods
sold, I’ll go ahead and replace column F
[301]
with column G in the SUMIF function.
[310]
Column F is where we have revenues and column
G is the one where we have Cogs in the database
[317]
sheet.
[318]
This isn’t the most elegant way to do this
in Excel, but I’d prefer for us to stick
[324]
to a rather simple solution.
[326]
I’ll even add a minus sign in front of Cogs.
[330]
The reason I am doing this is that I want
Cogs figures to be shown as positive here
[337]
because this will facilitate the visualization
which we need for a good trend analysis.
[343]
Now, we can copy and paste the functions and
fill in the entire table.
[355]
Excellent!
[363]
All that’s left to do is to create a regular
line chart for the two variables we would
[368]
like to compare.
[371]
I’ll go to ‘Insert’ and will select
2-dimensional line charts, creating the simplest
[379]
type of chart.
[387]
Some additional formatting is needed here,
of course.
[390]
I’m not sure why but default Excel charts
continue to be horrendous even with the latest
[397]
versions of Excel.
[399]
We’ll need to adjust the title.
[425]
Perhaps the colours of the two lines?
[439]
And some additional work on the vertical axis
as well.
[454]
Ok.
[459]
This is much better.
[461]
Overall, what we can see from the chart is
that Revenue and Cogs didn’t increase proportionally.
[469]
One can probably conclude that Cogs for this
business have a prevalently fixed component,
[476]
and some additional analysis would be needed
to understand the reason for that.
[481]
But at first glance, we can say that this
is a business that can benefit greatly from
[487]
economies of scale and higher revenues.
[489]
The trend that we see here is that the gross
profit margin improved dramatically because
[496]
cogs didn’t increase in line with revenues.
Most Recent Videos:
You can go back to the homepage right here: Homepage





