Professional Documents
Culture Documents
Coaching Excel Exercise
Coaching Excel Exercise
-
Exercises
1
1) Change the format of the data using upper case, lower case, and proper
case methods!
Solutions:
➢ Click on the cell under upper case: =Upper (A2:A11)
➢ Click on the cell under lower case: =Lower (A2:A11)
➢ Click on the cell under lower case: =Proper (A2:A11)
2
Solutions:
a) Click on the upper cell that is on Simon, then click on Data>>click on
remove duplicate.
Note that 4 columns are checked. This means that this will delete if and only
if all the columns are duplicated.
In this case we have Dominic Parr, Male, England. this has been
duplicated 2 times. So, click Ok to remove it.
Now you can see one row has been deleted [the duplicated row].
3
b) To delete rows with duplicated first name: use the same method as the
above but check only Name. that is to check if it is duplicated or not.
➢ Check marks the Name and uncheck the remaining columns. This time
we only check duplication of Name.
➢ One row with that is with Name Lisa has been removed from the table.
4
Change the above excel sheet to the following format:
Solutions:
➢ On B column, select starting from first name until the end. [ if the
cell doesn’t have a head column name, simply select the column
name]
5
Click>> Next.
6
Result:
7
4) Find the speed of animals using VLOOKUP:
Solutions:
➢ At H5, write this code: =VLOOKUP(G5,A2:C11,2,false)
➢ At H6: =VLOOKUP(G6,A2:C11,2,false)
➢ At h7: =VLOOKUP(G7,A2:C11,2,false)
➢ Note: false is the default, so you can leave it
8
5) Find the gross sales of a country using Xlookup.
a) Search a country and find its respective gross sales amount.
b) How to display France’s gross sales amount marked in yellow.
Solution:
9
6) Find the commission of Hill using VLOOKUP and Xlookup
Solutions:
➢ =Vlookup(G4,B2:B10,0) displays Null because vlookup cannot
search value toward left, only search towards right direction.
10
7) from the following excel sheet create a pivot table:
Solution a
➢ Click Insert>> Pivot Table>> then click from Table/Range
➢ The sheet has 701 rows so put a range value from A1:I701
➢ Select existing worksheet.
11
Drag: country into Filters
➢ Product into Rows
➢ Gross sales into Values
➢ Sales and profit into columns.
o You can rename the column names.
12
b) Create the following pivot table 2:
➢ Filter: by product, aggregate by country, column years, value profit
Solution b:
➢ Click Insert>> Pivot Table>> then click from Table/Range
➢ The sheet has 702 rows so put a range value from A1:I702
➢ Select existing worksheet.
13
8) from the above excel sheet Create the following pivotal chart:
Solution:
➢ Follow the following screenshots:
Click Ok.
14
➢ Change the style to select the pivot chart and click on
15
9) Clean and prepare the following excel sheet using power query:
• Split datetime into date and time columns
• Remove duplicated rows.
• Split name into first name and surname
• Replace budget’s null value with $20,000.
• Remove column name “store name.”
Solution:
➢ Click Data>> Get Data>> from File
16
Click>> Transform Data
17
➢ Click By Delimiter and select Space from the drop-down list
18
❖ Result: Name has been split.
➢ To rename click on Name 1 and Name 2 and time first name, surname
respectively.
19
➢ Split datetime into date and time: use similar steps as the above one.
20
Remove store name column:
Select the column, right click>> click Remove.
Result:
21
➢ After removing duplication:
➢ To fill or replace the null or any values, you can follow these
steps.
➢ Select the column that you want to fill or replace the values!
▪ Click>>Replace Values
➢ Write: null,
➢ Replace: 20000
22
Result:
Finally, after preparing, close the editor and load the data:
To load the prepared and cleaned data:
➢ click File>> Close and load.
===========================================
23