MS Excel Operations and Calculations
MS Excel Operations and Calculations
MS Excel Operations and Calculations
In this lesson, we will learn how to do basic operations in MS Excel and Google
Spreadsheets.
Business Study
You are working as an analyst with a company that distributes goods across the
country. The goods include Office supplies such as binders, desk, and pen sets.
There are several sheets in the excel file. First, we will consider the sheet
SalesOrders .
Your manager wants you to analyze this data and answer some simple business
questions that he has in mind. Open the file and look at the content in the file. You can
https://my.ironhack.com/cohorts/6308c710cd37bd002cee5739/lms/courses/course-v1:IRONHACK+DAPREWORK+MASTER/modules/ironhack-course-chap… 1/13
4/26/23, 2:52 PM Ironhack Student Portal
either use MS Excel if you have it installed and if not, you can use Google
Spreadsheets. Upload the excel file in your google drive, and open it using the File
Menu -> Open .
This is how the data looks like in MS Excel. In the previous lesson, you looked at the
MS Excel interface. Explore through the different options on the sheet, play around
with the interface and see what different options are provided in MS Excel to
manipulate the data.
Use the shorthand CTRL + Z to undo any changes you made in the data.
This is how the data looks like in Google Spreadsheets. In the previous lesson, you
looked at the Google Spreadsheet interface. Explore through the different options on
the sheet, play around with the interface and see what different options are provided
in MS Excel to manipulate the data.
Use the shorthand CTRL + Z to undo any changes you made in the data.
If you would scroll down to rows 46, 47, and 48 you would see the text written for
Mean, median, and mode. In the cells next to the text, we will use formulas to
compute these values.
Please watch the video to see how to use simple mathematical functions in excel:
Simple Mathematical Functions in Excel.
For Google Spreadsheets also, you can calculate these values in the same way.
Here are the steps in MS Excel to calculate the mean (similarly they are applicable in
Google Spreadsheets as well).
Move to the cell E46 and enter =AVER . You would notice that MS excel
automatically provides you with some options for functions that would start with
AVE . You can use UP/DOWN arrows to move through those options.
Move to the option that you want to use and hit “Tab”.
Now select the range of data for which you want to calculate that value.
Hit “Enter/Return” after selecting a range of data.
https://my.ironhack.com/cohorts/6308c710cd37bd002cee5739/lms/courses/course-v1:IRONHACK+DAPREWORK+MASTER/modules/ironhack-course-chap… 3/13
4/26/23, 2:52 PM Ironhack Student Portal
Similarly, calculate median and mode for the Units column in the data. This is
how it will look like.
https://my.ironhack.com/cohorts/6308c710cd37bd002cee5739/lms/courses/course-v1:IRONHACK+DAPREWORK+MASTER/modules/ironhack-course-chap… 4/13
4/26/23, 2:52 PM Ironhack Student Portal
Copy the calculated values for Mean, Median, and Mode from column E and
paste them on columns F and G , in the same three rows.
Check the formulas in the cells where you pasted the content. You will notice that
the formula remains the same, but the range of values in the formula changes.
This is called relative referencing.
Excel remembers the formula and the reference of the range of cells selected
when you copy it. When you paste to a different cell, it uses the same formula but
the new reference.
You can copy a cell or a group of cells that have formulas stored and use in other
cells. Right-click on any cell/cells where you want to paste the copied content.
https://my.ironhack.com/cohorts/6308c710cd37bd002cee5739/lms/courses/course-v1:IRONHACK+DAPREWORK+MASTER/modules/ironhack-course-chap… 5/13
4/26/23, 2:52 PM Ironhack Student Portal
Excel provides us different options to paste this value. Here is a snapshot to show
those options:
This is what the data looks like (for mean, median, and mode)
To increase or decrease the number of decimal points, use the increase decimal
or decrease decimal option in the Home menu.
Please refer this link to read more about some basic mathematical functions in
excel. Here is a quick mention. You can try and test those functions out on this
data as well.
https://my.ironhack.com/cohorts/6308c710cd37bd002cee5739/lms/courses/course-v1:IRONHACK+DAPREWORK+MASTER/modules/ironhack-course-chap… 6/13
4/26/23, 2:52 PM Ironhack Student Portal
https://my.ironhack.com/cohorts/6308c710cd37bd002cee5739/lms/courses/course-v1:IRONHACK+DAPREWORK+MASTER/modules/ironhack-course-chap… 7/13
4/26/23, 2:52 PM Ironhack Student Portal
https://my.ironhack.com/cohorts/6308c710cd37bd002cee5739/lms/courses/course-v1:IRONHACK+DAPREWORK+MASTER/modules/ironhack-course-chap… 8/13
4/26/23, 2:52 PM Ironhack Student Portal
Note: You might have to change the data format for the columns Unit Cost and
Total from Accounting to Number .
Insert: resource
Draw: resource
Page Layout: resource
Formulas: resource
Data: resource
Review: resource
https://my.ironhack.com/cohorts/6308c710cd37bd002cee5739/lms/courses/course-v1:IRONHACK+DAPREWORK+MASTER/modules/ironhack-course-chap… 9/13
4/26/23, 2:52 PM Ironhack Student Portal
View: resource
Developer: resource
Click on filter for region as shown and select only east region:
https://my.ironhack.com/cohorts/6308c710cd37bd002cee5739/lms/courses/course-v1:IRONHACK+DAPREWORK+MASTER/modules/ironhack-course-cha… 10/13
4/26/23, 2:52 PM Ironhack Student Portal
Exercise 3
Performing some simple operations
After filtering the east region, check what are the new mean, median, and
mode.
Also calculate standard deviation and variance for the complete data and east
region.
(You will need to copy the filtered east region data to a new sheet in order to
create updated mean, median, mode, standard deviation and variance functions for
the east region.)
https://my.ironhack.com/cohorts/6308c710cd37bd002cee5739/lms/courses/course-v1:IRONHACK+DAPREWORK+MASTER/modules/ironhack-course-cha… 11/13
4/26/23, 2:52 PM Ironhack Student Portal
=LEFT(B2,3) : In the string B2 , select the first three characters from the left of
the string. Copy and paste the formula to the rest of the cells in a similar way as
done for the CONCATENATE function.
RIGHT function: Used to select n number of strings from the right of the string.
=RIGHT(B2,4) : In the string B2 , select the first four characters from the right.
Copy and paste the formula to the rest of the cells in a similar way as done for the
CONCATENATE function.
Apply the substitute formula in the rest of the column Substitute Function so
that the words in the column Region are changed to lower case.
Create another column Concatenate Exercise . Concatenate the columns
Left Function and Right Function to create get the complete name of the
https://my.ironhack.com/cohorts/6308c710cd37bd002cee5739/lms/courses/course-v1:IRONHACK+DAPREWORK+MASTER/modules/ironhack-course-cha… 12/13
4/26/23, 2:52 PM Ironhack Student Portal
region.
Mark as completed
PREVIOUS NEXT
https://my.ironhack.com/cohorts/6308c710cd37bd002cee5739/lms/courses/course-v1:IRONHACK+DAPREWORK+MASTER/modules/ironhack-course-cha… 13/13