Hafsa Assignment1
Hafsa Assignment1
COMPUTATIONAL
REASONING
LAB REPORT 4
1
Task 2:
Copy the IF formula you created in Task 1 for all salespersons to determine if they met
their sales target.
Solution:
Formula: =IF(H2:H44 > 5000, "Target Met", "Target Not Met")
2
3
Task 3:
Find the maximum, minimum, and standard deviation of the sales data using the
MAX,MIN, and STDEV functions.
Solution:
Task 4:
Create the following charts from the sales_data.xlsx:
1. A Bar Chart comparing the sales of each salesperson.
Sale_amt
120,000.00
100,000.00
80,000.00
60,000.00
40,000.00
20,000.00
-
r id n r n r n n r n id al id n n
n de av ve nde are nde are are nde ve av ig av ve ve
a D Ste xa K xa K K xa Ste D S D te te
lex le le le S S
A A A A
2. A Pie Chart showing the percentage of total sales for each salesperson.
Alexander
Sale_amt
ShelliLuis David Stephen
Alexander Steven Luis Michael Alexander
Sigal Diana Karen Alexander John
Alexander Sigal Alexander Karen Shelli
John Karen David John Alexander
1
4
0
2
1
0
3
5
2
6
0
3
29
2
3
0
5
2
7
8 Stephen Luis Steven Diana David
6
0
1
3
13
2
8
%
%
%
%%
%
%
% David Shelli Alexander Sigal Shelli
%
%%
%
Stephen David Stephen Michael Steven
Luis Luis Steven
4
3. A Line Chart to display the sales trend over a period (if time data is available).
Sale_amt
120,000.00
100,000.00
80,000.00
60,000.00
40,000.00
20,000.00
-
8 8 8 8 8 8 8 8 9 9 9 9 9 9 9 9
6 /1 2/1 0/1 7/1 3/1 9/1 5/1 1/1 7/1 5/1 1/1 7/1 4/1 9/1 6/1 2/1
1/ 2/2 4/1 5/2 7/1 8/2 0/1 12/ 1/1 3/ 4/2 6/ 7/2 9/ 0/2 2/1
1 1 1
Task 5:
Add a title, axis labels, and data labels to the bar chart you created in Task 4.
80,000.00
40,000.00
-
l l
d er en ae ren ga hn der na der vid uis
n h h a S i Jo an Dia an Da L
p c
exa te Mi K
ex ex
S
Al Al Al
Sales Persons
5
Additional Tasks:
1. Create a scatter plot from a new dataset that includes hours worked and sales
figures
John 40 6,500
Sarah 35 4,200
Mike 42 5,800
Emma 30 3,500
Liam 45 7,200
Olivia 38 5,300
Noah 36 4,900
Ava 32 6,000
Ethan 44 8,100
Sophia 33 4,400
COUNTIF
=COUNTIF(B2:B11, ">40") Solution: 3
6
7