0% found this document useful (0 votes)
33 views

SEC_ Advanced Excel

The document provides a series of exercises for using advanced Excel functions to calculate grades, bonuses, bills, results, commissions, and taxes based on various criteria. It includes step-by-step instructions for entering data, applying formulas like HLOOKUP, VLOOKUP, and IF, and creating charts. Additionally, it covers filtering data based on specific conditions for student categories and fees.

Uploaded by

nidhi gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views

SEC_ Advanced Excel

The document provides a series of exercises for using advanced Excel functions to calculate grades, bonuses, bills, results, commissions, and taxes based on various criteria. It includes step-by-step instructions for entering data, applying formulas like HLOOKUP, VLOOKUP, and IF, and creating charts. Additionally, it covers filtering data based on specific conditions for student categories and fees.

Uploaded by

nidhi gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 16

SEC- Data using Advanced Excel

Lab Record Exercise


Q.1 The following worksheet contains Roll.No. & Marks in 5 subject of a student.
Calculate his grades as per the following :

Marks Grades

0-40 4
40-50 3
50-60 2
60 & above 1

A B C D E F
1 Roll No. ENG HINDI SCIENCE MATHS SO. SCI
2 110 45 56 67 78 60
3 GRADE
4
5
6
7
8
9
10
11

Answer:

Enter headings & data as shown in columns A to F To

calculate GRADES using HLOOKUP

1. Enter Marks & Grades in rows 8 & 9 as follows

A B C D E
8 MARKS 0 40 50 60
9 GRADE 4 3 2 1
2. At B3 enter =HLOOKUP(B2, $B$8:$E$9 , 2)
3. Grade is displayed for the first subject. Drag the formula up to F3 to get grades for
all the subjects.

Q.2 The following worksheet contains Names & Sale for 10 salesmen.

Calculate their bonus as per the following :

Sale Bonus
0-30000 0
30000-40000 3000
40000-50000 4000
50000-60000 5000
60000-70000 6000
70000-80000 7000
80000 & above 8000
A B C D H I
1 NAME SALE BONUS 0 0
2 Deep 30000 30000 3000
3 Jayesh 40000 40000 4000
4 Yash 45000 50000 5000
5 Sara 48000 60000 6000
6 Gita 55000 70000 7000
7 Jinal 32000 80000 8000
8 Kavita 66000
9 Minal 23000
10 Naresh 43000
11 Rima 37000

Answer:

Enter headings & data as shown in columns A to F To

calculate BONUS using VLOOKUP

1. Enter Sale & Bonus in columns H & I as follows

H I
0 0
30000 3000
40000 4000
50000 5000
60000 6000
70000 7000
80000 8000

2. At C2 enter =VLOOKUP(B2, $H$1:$I$7 , 2)


3. BONUS is displayed for the first salesman. Drag the formula up to C11 to get bonus
for all the salesmen.
Q.3 The following worksheet contains Customer No. , Number of units consumed for
10 customers.

Calculate their bill amount as per the following :

Number of units Rate


< 200 Rs. 3
>=200, < 500 Rs. 6
>= 500 Rs. 10

A B C D H I
1 Cust. No.of Rate Bill Units Rate
No. Units Amount
2 1101 340 0 3
3 1102 180 200 6
4 1103 400 500 8
5 1104 600
6 1105 350
7 1106 470
8 1107 890
9 1108 200
10 1109 500
11 1110 360

Answer:

Enter headings & data as shown in columns H to I To

calculate RATE using LOOKUP

1. Enter Units & Rate in columns H & I as follows

H I
0 3
200 6
500 8

2. At C2 enter =LOOKUP(B2, $H$2:$H$4 , $I$2:$I$4)


3. Rate is displayed for the first customer. Drag the formula up to C11 to get
bonus for all the customers.
4. In D2 enter the formula = B2*C2
5. Bill amount is displayed for the first customer. Drag the formula up to D11 to get
bonus for all the customers.
Q4. A worksheet contains Roll Number , Marks in 2 subjects for 50 students in a class.
Calculate Result and Grade using the following:

A student is declared as PASS if he gets 40 or more in both the subjects , Otherwise


FAIL.

All FAILED students will be given Grade IV

For PASSED students Grade will be obtained as follows :

AVERAGE GRADE

>=60 I

<60 but >=50 II

<50 but >=40 III

A B C D E F

1 ROLL SUB1 SUB2 AVERAGE RESULT GRADE

51

Answer:

Enter headings and data as shown above

To calculate AVERAGE

In cell D2 enter the formula = AVERAGE (B2:C2) or = (B2 + C2)/2 and press enter key

It shows AVERAGE for the first student

Drag the formula up to D51

To find RESULT

In cell E2 enter the formula = IF(AND(B2>=40,C2>=40),”PASS”,”FAIL”) and press enter key

It shows Result for the first student

Drag the formula up to E51

To find GRADE

In cell E2 enter the formula = IF(E2=”FAIL”,”IV”,IF(D2>=60,”I”,IF(D2>=50,”II”,”III”))) and


press enter key

It shows Grade for the first student

Drag the formula up to E51


Q5. The following worksheet contains Name & Sales of 10 salesmen .Calculate commission
as per the following:

Sales Commission

First 30,000 5%

Next 40,000 10%

Excess 15%

A B C
1 NAME SALE COMMISSION
2
:
:
11
Answer:

Enter headings and data as shown above

To calculate commission

In cell C2 enter the formula

= IF(B2 <30000, B2*5%,IF(B2<=70000,1500+(B2-30000)*10%, 1500 +4000+ (B2-70000)*15%))


and press enter key

It shows Commission for the first salesman. Drag the formula up to C11.

Q6. The following worksheet contains Name & Taxable Income for 50 employees .Calculate
Income Tax Surcharge and Total Tax for the following worksheet

A B C D E
1 NAME TAXABLE INCOME SURCHARGE TOTAL
INCOME TAX TAX
2
:
:
50

Income Tax is calculated as follows :

Taxable Income Income tax

First 1,50,000 Nil

Next 1,00,000 10%

Next 75,000 20%

Excess 30%

Surcharge is 3% on Income Tax if Taxable income is above 5,00,000


Answer:

Enter headings and data as shown above

To calculate INCOME TAX

In cell C2 enter the formula

= IF(B2 <150000, 0,IF(B2<=250000,(B2-150000)*10%,IF(B2<=325000, 10000 + (B2-


250000)*20%,25000+(B2-325000)*30%)))

and press enter key

It shows Income Tax for the first employee

Drag the formula up to C51

To calculate SURCHARGE

In cell D2 enter the formula = IF(B2 <500000, 0,C2*3%)and press enter key

It shows Surcharge for the first employee

Drag the formula up to D51

To calculate TOTAL TAX

In cell E2 enter the formula = C2+D2 and press enter key

It shows Total Tax for the first employee

Drag the formula up to E51


Q.7. A worksheet contains following data :

A B C D E
1 NAME GENDER CLASS CATEGORY FEES
2 Deep M FY Open 3000
3 Jayesh M SY Reserved 1000
4 Yash M TY Reserved 1000
5 Sara F FY Reserved 500
6 Gita F FY Open 3000
7 Jinal F TY Open 5000
8 Kavita F SY Open 4000
9 Minal F SY Reserved 1000
10 Karan M TY Reserved 1000
11 Abhay M TY Open 5000
12 Bina F FY Open 3000
13 Seema F FY Reserved 500
14 Naresh M FY Reserved 500
15 Rima F TY Open 5000
16 Gajendra M SY Open 4000

Filter the worksheet to show

a) Female students from Reserved category


b) Male students from TY
c) Open category students paying fees > 3000

Answer:

a) To display female students from Reserved category

1. Copy paste the header row to some other location in the worksheet say G1
2. Under Gender and Category type F and Reserved respectively
3. Select the entire data A1 : E16
4. From the data tab select Filter Advanced
5. Advanced filter window is displayed
6. Under – Action, select Copy to another location say A20
7. It displays the list range as $A$1:$E$16
8. Click at criterion range. Select the range you have created along with the header row
9. Click at OK

b) To display Male students from TY

1. Copy paste the header row to some other location in the worksheet say G5
2. Under Gender and Class type M and TY respectively
3. Select the entire data A1 : E16
4. From the data tab select Filter Advanced
5. Advanced filter window is displayed
6. Under – Action, select Copy to another location say G20
7. It displays the list range as $A$1:$E$16
8. Click at criterion range. Select the range you have created along with the header row
9. Click at OK
c) To display Open category students paying fees > 3000

1. Copy paste the header row to some other location in the worksheet say G10
2. Under Category and fees type Open and >3000 respectively
3. Select the entire data A1 : E16
4. From the data tab select Filter Advanced
5. Advanced filter window is displayed
6. Under – Action, select Copy to another location say A20
7. It displays the list range as $A$1:$E$16
8. Click at criterion range. Select the range you have created along with the header row
9. Click at OK

Q8.A worksheet contains name and marks in 3 subjects . Calculate Total Marks

A B C D E
1 NAME SUB 1 SUB 2 SUB 3 TOTAL
MARKS
2 Deep 30 34 44
3 Jayesh 40 35 45
4 Yash 45 36 47
5 Sara 48 32 50
6 Gita 35 32 43
7 Jinal 32 31 37
8 Kavita 36 28 38
9 Minal 23 25 40
10 Naresh 43 27 50
11 Rima 37 44 46

d) Construct 3D Pie Chart for Total marks


e) Construct 2D Line Chart for Subject 1 and Subject 3
f) Construct 2D Column Chart for Sub1,Sub2,Sub3
g) Construct Stacked Column Chart for Sub1,Sub2,Sub3

Answers:

3D Pie Chart for Total marks

1. Select entire column of Total Marks ie E1:E11


2. Insert Tab—Chart group – Pie option—3D Pie Chart
3. 3D Pie diagram appears
4. Click at Chart tools – layout– Chart Title – Above the
chart It displays a box above the chart.
Click inside the box and type the title as

3D PIE CHART FOR TOTAL MARKS

5. Click on the Legend area , right Click and Click at select Data

6. Click on Edit at Horizontal Axis Labels

7. Select range as A2:A11 ( Click and drag) and OK

8. Names of students will be displayed in the legend area


2D Line Chart for Subject 1 and Subject 3

1. Select B1:B11 Keep pressing Cntrl Key & Select D1:D11


2. Insert Tab—Chart group – Line option— sub option 2D
3. 2D Line Chart appears
4. Click at Chart tools – layout– Chart Title – Above the
chart It displays a box above the chart.
Click inside the box and type the title as

LINE CHART FOR SUBJECT 1 AND 3

5. Under layout menu of Chart tools, select Axis Title - sub option Primary
horizontal axis – and position Below the Axis

Axis Title box appears below the horizontal axis


Click inside the box and type the title as Student Names

6. Under layout menu of Chart tools, select Axis Title - sub option Primary vertical
axis – and position Rotated

Axis Title box appears at the vertical axis in rotated position


Click inside the box and type the title as Marks
7. Click on labels at Horizontal Axis , Right Click and select Data Labels option
Click on Edit at Horizontal Axis Labels
It asks for the range for Horizontal Axis Labels Select
the range as A2:A11
Names of students will be displayed in the Horizontal Axis area OK

2D Column Chart

1. Select A1 : D11
2. Insert Tab—Chart group – Column option— sub option 2D
3. 2D Column Chart appears
4. Under layout menu of Chart tools, select Chart Title , sub option Above the chart
5. It displays a box above the chart.
Click inside the box and type the title as

COLUMN CHART FOR SUBJECT 1 ,2 AND 3

6. Also specify the axis titles as explained above


7. Also specify the Horizontal axis labels as explained above

2D Stacked Column Chart

1. Select A1 : D11
2. Insert Tab—Chart group – Column option— sub option 2D – Stacked Column
3. 2D Stacked Column Chart appears
4. Under layout menu of Chart tools, select Chart Title , sub option Above the
chart Click inside the box and type the title as

STACKED COLUMN CHART FOR SUBJECT 1 ,2 AND 3

5. Also specify the axis titles as explained above


6. Also specify the Horizontal axis labels as explained above
Q9. For the following worksheet containing amount spent for various items during the
year , prepare scenarios where

a) Machinery increases to 80,000 , carriage increases to 9000 & Postage increases


to 8000
b) Carriage increases to 10,000 Office equipment increases to 7000 and postage increases to
9000
A B
1 Items Costs
2 Machinery 60000
3 Carriage 8000
4 Transport 30000
5 Office equipment 6000
6 Postage 7000
7 Miscellaneous 3000
8 Generator 5000
9 Total 119000

Answer:
1. Select Data tab – What if Analysis – Scenario Manager
2. Scenario Manager dialogue box appears
3. Click on Add in Scenario Manager Add
Scenario dialog box appears

At scenario name -type name as Current Expenses In

changing sales -type B2:B8 – OK

4. Click on Add in Scenario Manager Add


Scenario dialog box appears

At scenario name -type Increase in Machinery and carriage Click on

OK

5. At Scenario Values dialog box , type


For Machinery Text box at $B$2 type 80000 For
Carriage Text box at $B$3 type 9000 For Postage
Text box at $B$6 type 8000

Click on OK

6. Click on Add in Scenario Manager Add


Scenario dialog box appears

At scenario name -type Increase in carriage and office equipment Click on OK


7. At Scenario Values dialog box , type
For Carriage Text box at $B$3 type 10000
For office equipment Text box at $B$5 type 7000 For
Postage Text box at $B$6 type 9000

Click on OK

8. At Scenario Manager dialog box , click on Summary


9. At Scenario Summary dialog box , click on Scenario Summary Type B9
in Result Cell

10. Scenarios are displayed on a new scenario worksheet

Q10.For the following worksheet obtain the solution for the cost price so that the
profit will be 20000

A B C D
1 CP ADVT SP PROFIT
2 9000 900 22000
3

Answer:

1. At D2 enter formula =C2-A2-B2


2. Click at D2
3. Click on Data--- Data Tools group --- What if analysis Subgroup --- Goal Seek
option
4. Goal Seek dialogue box appears
5. Enter the following data at the Goal seek Dialogue box Set Cell
$D$2
To value 20000 By
changing cell A2 OK
6. It displays Goal Seek status as follows Goal
seeking with cell D2
Found a solution Target value 20000 Current
value 20000
OK
7. It displays the output

Q. 11 Maximize the profit for the following

Current selling price of the bridal costume is Rs. 22000, The cost price is Rs. 10,000 The
advertising expenses are Rs.500

The constraints are :


The cost budget should be between Rs.9000 and Rs.12000 &

the advertising expenditure ranges between Rs. 400 and Rs.1000

Answer:

Type the data as follows

A B C D
1 CP ADVT SP PROFIT
2 10000 500 22000
3

1. Click on D2- Data---Analysis group --- Solver


2. Solver Parameters dialogue box appears . Enter the value as below Set
objectives $D$2
To Max
By changing variable cells $A$2:$B$2
Subject to constraints - Type the constraints one by one by clicking on Add When done
Click on Solve.
3. It displays solver results dialogue box Click
at Save scenario
It asks you to enter name for scenario Enter
S1
OK
4. It displays the value . It also generates the reports
5. To view Answer Report
At Solver results dialogue box
Select Answer at Reports Tab OK

Q12: Highlight all values in a column that are above the average.

Ans:
Steps:

1.Select the column (e.g., B2:B100).

2.Go to Home → Conditional Formatting → Highlight Cells Rules → More Rules.

3. Choose Use a formula and enter:

=B2>AVERAGE(B$2:B$100)

4. Choose a format (e.g., green fill).

Q13. Restrict input in a cell to only allow dates within 2024.


Ans:
Steps:

1. Select the cell(s).


2. Go to Data → Data Validation.
3. Choose Date as the criteria.
4. Set start date: 01/01/2024 and end date: 31/12/2024.

Q14. Check if a student has passed if they scored 50 or above in both Math and English.

Answer:
=IF(AND(B2>=50, C2>=50), "Pass", "Fail")
Explanation:

 B2 is Math marks, C2 is English marks.


 AND(B2>=50, C2>=50) checks if both conditions are true.
 IF(condition, "Pass", "Fail") returns "Pass" if true, otherwise "Fail".

📌 Modify Logic with OR:

=IF(OR(B2>=50, C2>=50), "Pass", "Fail")

This version returns "Pass" if either subject is ≥ 50.

Q15. Question:

You have sales data with columns like Region, Product, and Sales. You need to summarize sales by region
and product.

Answer:

Steps:

1. Select the full dataset, including headers (e.g., A1:C100).


2. Go to Insert → PivotTable.
3. In the popup, click OK.
4. Drag fields:
o Drag Region to Rows.
o Drag Product to Columns.
o Drag Sales to Values (it will default to SUM).
5. Your Pivot Table will now show total sales for each product by region.

Why Use PivotTables?

 Easy data summarization.


 Automatically calculates totals.
 Useful for reports and dashboards.

Q.16.

You have two sheets:

 Sheet1: Employee ID and Employee Name


 Sheet2: Employee ID and Salary

You need to get the Salary of an employee in Sheet1 using the Employee ID from Sheet2.
Answer (with steps):

Use this formula in Sheet1:

=VLOOKUP(A2, Sheet2!A:B, 2, FALSE)

📝 Explanation:
Component Meaning
A2 The value you’re searching for (Employee ID)
Sheet2!A:B The table range in Sheet2 where the Employee ID and Salary are stored
2 Return the value from the 2nd column of the range (i.e., Salary)
FALSE Ensures exact match is found

If the Employee ID in A2 is "E102", Excel will search column A in Sheet2 for "E102" and return the
corresponding value from column B (Salary).

✅ Use Case: Joining tables based on unique IDs — like linking student data to their grades.

Q 17. Only allow dates from January 1, 2024 to December 31, 2024 in a cell.

Answer:

1. Select the range (e.g., A2:A50).


2. Go to Data → Data Validation.
3. In the Settings tab:
o Allow: Date
o Data: Between
o Start Date: 01/01/2024
o End Date: 31/12/2024
4. Optional: In the Error Alert tab, enter a custom message like:
o “Only dates in 2024 are allowed.”

Why Use It?

 Prevents incorrect or out-of-range entries.


 Useful for managing forms or logs.

Q 18. Plot monthly sales on a line chart to see the trend.

Answer:

1. Ensure your data looks like:

Month | Sales
Jan | 12000
Feb | 13500
Mar | 14000
... | ...

2. Select the entire data (e.g., A1:B13).


3. Go to Insert → Line or Area Chart → Line with Markers.
4. Customize:
o Chart Title: “Monthly Sales Trend”
o Add Axis Titles via Chart Elements
o Format Line & Points if needed
Why Use It?

 Line charts are ideal for time-based trends.


 Easy to compare monthly or yearly performance.

Q19. You want to calculate the discounted price for each item. The discount rate is in cell E1 and should
be fixed when copied.

A B C D E
1 Product Price Discounted 0.10
2 Apple 50 Discount
3 Banana 60
4 Orange 40

In D2, calculate the price after 10% discount using the value in E1.

Answer:
=C2 - (C2 * $E$1)
Explanation:

 $E$1 is an absolute reference.


 When you copy the formula down, C2 becomes C3, C4, etc., but $E$1 always stays the same.

Use When: You want to lock a reference to a specific cell in all copied formulas.

Q20. You have a table where you're calculating sales for multiple years. The tax rate for each product is in
Column B, and needs to remain fixed when copied across columns, but not down rows.

A B C D E
Tax 2022 2023 2024
1
2 Apple 0.05 10000 12000
3 Banana 0.08 8000 9000

In F2, calculate total tax for Apple in 2022:

Answer : Using Mixed Reference:


=C2*B$2
Explanation:

 B$2 locks row 2 (so it doesn't become row 3 when copied down), but allows the column (B) to
change when dragged across.
 In this case, you'll want the tax rate to stay in row 2, while the yearly sales (C2, D2, E2) update.

You might also like