Analysing Data Using Excel
Analysing Data Using Excel
The VLOOKUP function is a frequently used function for looking up any particular data from a dataset. In
the following example, we want to know how many goals an individual (for instance, Alex) has scored.
=VLOOKUP(E5,B5:C14,2)
Here, Excel is looking for the value in cell E5 within the range B5:C14 and retrieving the corresponding
value from the second column of that range.
=INDEX(B5:C14,MATCH(E5,B5:B14,0),2)
Formula Breakdown
MATCH(E5, B5:B14, 0) → The MATCH function searches for the value in cell E5 within the range B5:B14.
The 0 as the third argument indicates an exact match.
Output: 1
↪ INDEX(B5:C14, 1, 2) → This portion retrieves the value that is in 1st row and 2nd column of the range
INDEX(B5:C14, MATCH(E5, B5:B14, 0), 2) → This becomes,
B5:C14.
Output: 17
The SUMIFS function gets the sum of a range of cells with a set of conditions.
If you want to get the goals scored by the players from Group A and Group B separately, the
formula you can use in cell G5 is:
=SUMIFS($D$5:$D$14,$C$5:$C$14,F5)
The formula sums the values in the range $D$5:$D$14 but only includes values where the corresponding
cells in the range $C$5:$C$14 match the value in cell F5.
Let’s join the first and last names of certain individuals here using the CONCAT function in Excel.
=CONCAT(B5," ",C5)
The formula joins the values in cells B5 and C5, with a space between them, resulting in a single
combined text string.
You can count the number of characters of a cell or an array using the LEN function.
=LEN(D5)
Method 2 – Data Analysis Using Excel Charts
Go to the Home tab and choose Conditional Formatting, then select a set of Data Bars.
Excel will add data bars.
Method 4 – A Pivot Table
Let’s calculate the number of goals scored by Group 1 and Group 2 players using the Pivot Table.
Go to the Data tab and select the Sort Z to A icon for descending order.
What-If Analysis in Excel refers to a set of tools and techniques that allow you to explore different
scenarios and observe the potential impact on the results of your formulas or models. Excel provides
several features for performing what-if analysis, including:
Data Tables: Data Tables allow you to create a table displaying multiple results based on input
values. You can perform either one-variable or two-variable data tables to see how changing
inputs affect the final results.
Goal Seek: Goal Seek helps you determine the input value needed to achieve a specific result.
You specify a target value, and Excel automatically adjusts the input value until it reaches the
desired outcome.
Scenario Manager: Scenario Manager enables you to create and compare different sets of input
values for your model. You can define multiple scenarios with varying inputs and switch between
them to see the impact on the calculated results.
We will show an example of the Goal Seek feature. Suppose you have 100 units of a product to be sold.
You want to see the necessary unit price if you want to get a revenue of $200.
=C4*C5
This is very simple as we all know that the unit price will have to be $2. However, the fun with this Goal
Seek feature is that you do not have to manually put the unit price. Rather, Excel will find it for you.
Go to the Data tab and select What-If Analysis, then select Goal Seek.
You want the revenue (To value) to be $200 and get the unit price in cell C5. So, the Set cell
is C6 and the cell for By changing cell is C5. Put those values in the dialog box and click OK.
Excel will put the unit price in C5. Put the Revenue in the currency format if you want.
Modify the Units Sold value and repeat the process to see how it affects the result.
Read More: How to Perform Case Study Using Excel Data Analysis
Let’s get back to our previous example (from the VLOOKUP section). We want to select a player’s name
from all the available options rather than manually typing their names.
Click OK.
You can now select the names from the drop-down icon.
Once you select a name, you will get the number of goals the player scored.
Method 9 – Excel Table
Press CTRL + T.
Click OK.
Excel will create a table.
Let’s see how you can get the total goals scored by these players without using any Excel Function.
Go to the Table Design tab (this tab will be seen only if you select a cell of the table first).
Select Table Style Options and check the Total Row box.
Excel shows the total goals scored.
Add this feature to your ribbon. Put the cursor on the Home ribbon and right-click, then
select Customize the Ribbon.
Select New Group and set its position on the Home ribbon.
Select All Commands and add Analyze Data to this newly created group.
Click OK.
Go to the Home tab and select Analyze Data.
Go to the File tab and select Options. The Excel Options box will open.
Go to Add-ins and select Excel Add-ins in the Manage field, then click Go.
Check the box for Analysis ToolPak and click OK.
Let’s do some analysis using this add-in.
Go to the Data tab and select Data Analysis (This will be available once you activate the Analysis
ToolPak add-in).
A Data Analysis box will pop up. Select the Descriptive Statistics option and click OK.
Set the input range and the output range and click OK. Check Summary statistics.
You will get the descriptive statistics of the selected input range in your Excel workbook.
Read More: How to Make Histogram Using Analysis ToolPak
ANOVA stands for Analysis of Variance. It is a statistical method used to compare the means of two or
more groups to determine if there are any significant differences between them.
Select ANOVA from the Data Analysis box and click on OK.
Set the input and output ranges.
Things to Remember
You need to refresh the Pivot Table when you change your dataset.