Excel Lab Manual-1
Excel Lab Manual-1
Excel Lab Manual-1
Program 2: Working with Data : Importing data, Data Entry & Manipulation, Sorting & Filtering, Data
Validation, Pivot Tables & Pivot Charts.
1. Importing Data into Excel
You can import data from sources like CSV files, databases, or websites.
• Import CSV or Excel Files:
1. Open Excel and go to Data → Get Data → From File → From Workbook/CSV.
2. Select the file you want to import and click Import.
3. Use the Navigator to preview the data and load it into the workbook.
4. Data Validation:
Data Validation ensures only valid data is entered into cells. For example, you can restrict marks to between 0 and
100.
• Steps:
1. Select the range of cells (e.g., D2
for student marks).
2. Go to Data → Data Validation.
3. In the Settings tab, choose Whole Number from the drop-down and set the minimum to 0 and maximum
to 100.
4. Click OK.
(If someone enters a number outside this range, Excel will display an error message.)
Program 3: Data Analysis Process: Conditional Formatting, What-If Analysis, Data Tables, Charts &
Graphs.
1. Conditional Formatting:
Conditional Formatting highlights data based on specific conditions, making patterns easier to spot.
Example:
• Highlight Low Scores (< 80):
1. Select the marks range (e.g., B2 for subject marks).
2. Go to Home → Conditional Formatting → Highlight Cells Rules → Less Than....
3. Enter 80 and choose a format (e.g., red fill).
• Color Scale for Performance:
1. Select the marks range.
2. Go to Home → Conditional Formatting → Color Scales.
3. Choose a gradient to visualize performance (e.g., green for high marks, red for low).
2. What-If Analysis
What-If Analysis allows you to predict outcomes based on changes to data.
Goal Seek Example:
• Scenario: You want to determine how many marks a student needs in Java to get an A (90+ average).
1. Go to Data → What-If Analysis → Goal Seek.
2. Set Set Cell to the cell containing the average marks.
3. Set To Value to 90.
4. Set By Changing Cell to the Java marks cell.
3. Data Tables
Data tables allow you to explore multiple scenarios by changing one or two inputs.
Example: Calculate Impact of Marks on Final Grade
1. Set up a column with possible marks in one subject (e.g., Java) and their effect on the average.
2. Go to Data → What-If Analysis → Data Table.
3. Use the Java marks as the Column Input.
=UPPER(A2)
Example:
If A2 contains "Amit Sharma", the result will be "AMIT SHARMA".
Field Formula
TA = C * 6%
DA = C * 20%
HRA = C * 15%
IT = C * 10%
PF = C * 12%
Net Pay = BP + TA + DA + HRA - IT - PF
Field Formula
Average Net Pay = AVERAGE(I2:I6)
Maximum Net Pay = MAX(I2:I6)
Minimum Net Pay = MIN(I2:I6)
Total TA = SUM(D2:D6)
Total DA = SUM(E2:E6)
Total HRA = SUM(F2:F6)
Total Income Tax = SUM(G2:G6)
Total PF = SUM(H2:H6)
Total Allowances = SUM(D2:F6)
Program 6: Create worksheet on Inventory Management: Sheet should contain Product code, Product name,
Product type, MRP, Cost after % of discount, Date of purchase. Use appropriate formulas to calculate the above
scenario. Analyse the data using appropriate chart and report the data.
Field Formula
Total MRP Value = SUM (D2:D6)
Average Discount = AVERAGE(E2:E6)
Most Expensive Product = MAX(D2:D6)
Total Products Purchased = COUNTA(A2:A6)
Program 7: Create worksheet on Sales analysis of Merchandise Store: data consisting of Order ID,
Customer ID, Gender, age, date of order, month, online platform, Category of product, size, quantity,
amount, shipping city and other details. Use of formula to segregate different categories and perform a
comparative study using pivot tables and different sort of charts.
Objectives of Analysis
1. Category-wise sales: Identify which category (Clothing, Shoes, Accessories, etc.) performs the best.
3. Customer Demographics: Study sales patterns based on gender and age group.
5. City-wise shipping insights: Identify cities with the highest number of orders.
Age Group Segmentation (Youth: <25, Adult: 25–40, Senior: >40):
Field Formula
Clothing Category Sales =SUMIF(H:H, "Clothing", K:K)
Best Performing Category =INDEX(H:H, MATCH(MAX(SUMIF(H:H, H:H, K:K)), SUMIF(H:H, H:H, K:K), 0))
Platform based sales – Amazon =SUMIF(G:G, "Amazon", K:K)
Platform based sales -Flipkart =SUMIF(G:G, "Flipkart", K:K)
Total sales by gender – Male =SUMIF(C:C, "Male", K:K)
Total sales by gender – Female =SUMIF(C:C, "Female", K:K)
Total sales for each Age group – =SUMIF(N:N, "Youth", K:K)
Youth
Total sales for each Age group – =SUMIF(N:N, "Adult", K:K)
Adult
Total sales for each Age group – =SUMIF(N:N, "Senior", K:K)
Senior
No of orders shipped to Mumbai =COUNTIF(L:L, "Mumbai")
No of orders shipped to =COUNTIF(L:L, "Bangalore")
Bangalore
Last Column =IF(D2<25, "Youth", IF(D2<=40, "Adult", "Senior"))