Excel Assignment SyBCA Sem 4
Excel Assignment - 1
1. Create a table with two columns (A & B) and 10 rows of numbers. In a new column, calculate the sum of each row using the +
operator.
Steps:
- Enter numbers in Column A and Column B (10 rows).
- In Column C, type the formula to add A and B:
=A1+B1
(Press Enter).
- Drag the formula down for 10 rows to get the sum for each row.
2. Create a table with two columns: Original Price & Discount. Calculate the Final Price using subtraction.
Steps:
- In Column A, enter "Original Price" values.
- In Column B, enter "Discount" values.
- In Column C (Final Price), apply the formula:
=A1-B1
(Press Enter).
- Drag the formula down for all rows.
3. Enter Total Marks and Number of Subjects for students. Calculate the Average Marks using division.
Steps:
- In Column A, enter "Total Marks".
- In Column B, enter "Number of Subjects".
- In Column C (Average Marks), use the formula:
=A1/B1
(Press Enter).
- Drag the formula down for multiple students.
4. Enter a list of 10 numbers in a column, calculate the square of each number using multiplication.
Steps:
- Enter numbers in Column A.
- In Column B (Square), use the formula:
=A1*A1
(Press Enter).
- Drag the formula down for 10 rows.
5. Enter a list of 10 numbers in a column, calculate the square root.
Steps:
- Enter numbers in Column A.
- In Column B (Square Root), use the formula:
=SQRT(A1)
(Press Enter).
- Drag the formula down for 10 rows.
6. Given Marks in 5 subjects, calculate Total Marks, Percentage & Grade using IF function.
Steps:
- Enter marks for 5 subjects in Columns A to E.
- In Column F (Total Marks), use the formula:
=SUM(A1:E1)
- In Column G (Percentage), use the formula:
=(F1/500)*100
(assuming each subject is out of 100).
- In Column H (Grade), use the
IF
function:=IF(G1>=90,"A+",IF(G1>=80,"A",IF(G1>=70,"B",IF(G1>=60,"C",IF(G1>=50,"D","Fail")))))
- Drag all formulas down for multiple students.
Excel Assignment - 2
1. Create a table with 10 products and their prices in two columns. Use the SUM function to calculate the total price for all products.
Steps:
- In Column A, enter product names (Product 1 to Product 10).
- In Column B, enter their respective prices.
- In Cell B11, use the SUM function:
=SUM(B1:B10)
- Press Enter to get the total price.
2. You have a list of sales amounts for 7 days. Use the MAX function to find the highest sales recorded.
Steps:
- In Column A, enter "Day 1" to "Day 7".
- In Column B, enter sales amounts for each day.
- In Cell B8, use the MAX function:
=MAX(B1:B7)
- Press Enter to get the highest sales amount.
3. Create a list of students and their marks. Use the IF function to display "Pass" if the student’s marks are greater than or equal to 50, otherwise show "Fail".
Steps:
- In Column A, enter student names.
- In Column B, enter their marks.
- In Column C (Result), use the IF function:
=IF(B1>=50,"Pass","Fail")
- Drag the formula down for all students.
4. In a table of employees, use the AND function to check if an employee’s salary is greater than 50,000 and they have been in the company for more than 5 years.
Steps:
- In Column A, enter employee names.
- In Column B, enter salaries.
- In Column C, enter years of experience.
- In Column D (Check), use the AND function:
=AND(B1>50000,C1>5)
- This will return TRUE if both conditions are met, otherwise FALSE.
- Drag the formula down for all employees.
5. Create a table with First Name and Last Name. Use the CONCATENATE function to join both names into a full name.
Steps:
- In Column A, enter first names.
- In Column B, enter last names.
- In Column C (Full Name), use the CONCATENATE function:
=CONCATENATE(A1," ",B1)
- Alternatively, use
=A1&" "&B1
. - Drag the formula down for all names.
6. Given a date (in a cell), use the TEXT function to display it in the format "Day, Month Date, Year".
Steps:
- Enter a date in Cell A1 (e.g., 01/02/2024).
- In Cell B1, use the TEXT function:
=TEXT(A1,"dddd, mmmm dd, yyyy")
- Press Enter to display the formatted date (e.g., Thursday, February 01, 2024).
7. Create a list of names in mixed case. Use the UPPER function to convert all names to uppercase and the LOWER function to convert all names to lowercase.
Steps:
- Enter names in Column A (mixed case).
- In Column B (Uppercase), use the UPPER function:
=UPPER(A1)
- In Column C (Lowercase), use the LOWER function:
=LOWER(A1)
- Drag both formulas down for all names.
8. You have a list of product codes in the format "ABC123". Use the LEFT function to extract the first 3 characters (ABC) and the RIGHT function to extract the last 3 digits (123).
Steps:
- Enter product codes in Column A (e.g., ABC123).
- In Column B (First 3 Characters), use the LEFT function:
=LEFT(A1,3)
- In Column C (Last 3 Digits), use the RIGHT function:
=RIGHT(A1,3)
- Drag the formulas down for all product codes.
Excel Assignment - 3
1. Create a table with 5 employees' names and their salaries. Change the font style of the employee names column to Arial, and set the font size to 12.
Steps:
- In Column A, enter employee names.
- In Column B, enter their salaries.
- Select all employee names (Column A).
- Go to the Home tab → In the Font section:
- Select Arial as the font style.
- Set Font Size to 12.
2. Create a list of sales data for 5 products. Format the sales amount column as Currency with two decimal places.
Steps:
- In Column A, enter product names.
- In Column B, enter sales amounts.
- Select Column B (Sales Amount) → Go to the Home tab.
- In the Number Format section, click on the drop-down and select Currency.
- Ensure that the number format has two decimal places.
3. Create a list of student names and their marks. Apply conditional formatting to highlight the marks greater than or equal to 50 in green and marks less than 50 in red.
Steps:
- In Column A, enter student names.
- In Column B, enter marks.
- Select Column B (Marks) → Go to the Home tab → Click Conditional Formatting.
- Click New Rule → Select Format cells based on values.
- Choose "Format only cells that contain", then:
- For marks ≥ 50 → Set the condition as "Cell Value ≥ 50", click Format, choose a Green Fill, and press OK.
- For marks < 50 → Set the condition as "Cell Value < 50", click Format, choose a Red Fill, and press OK.
4. Create a list of cities in your spreadsheet. Use conditional formatting to highlight any duplicate cities in the list.
Steps:
- Enter city names in Column A.
- Select Column A → Go to the Home tab → Click Conditional Formatting.
- Select Highlight Cell Rules → Click Duplicate Values.
- Choose a color (e.g., Light Red Fill) → Click OK.
- Now, all duplicate cities will be highlighted.
5. Create a list of student scores. Apply color scales to the scores, with green for high scores and red for low scores, to visually differentiate them.
Steps:
- In Column A, enter student names.
- In Column B, enter their scores.
- Select Column B (Scores) → Go to the Home tab → Click Conditional Formatting.
- Click Color Scales → Choose the Green-Yellow-Red scale (Green for highest, Red for lowest).
- Now, high scores will appear green, medium scores yellow, and low scores red.
6. Create a table with Employee Names and Departments. In the Department column, apply data validation to allow only the following entries from a dropdown list: HR, Sales, IT, Marketing.
Steps:
- In Column A, enter employee names.
- In Column B (Department), select all the cells where department names will be entered.
- Go to the Data tab → Click Data Validation.
- In the Allow box, select List.
- In the Source box, type:
HR, Sales, IT, Marketing
- Click OK.
- Now, only these values can be selected from the dropdown list.
7. Create a table with Product Names and Quantities. In the Quantity column, apply data validation to allow only whole numbers greater than or equal to 1.
Steps:
- In Column A, enter product names.
- In Column B (Quantity), select all the cells where quantities will be entered.
- Go to the Data tab → Click Data Validation.
- In the Allow box, select Whole Number.
- In the Minimum box, enter 1.
- Click OK.
- Now, users can only enter whole numbers that are 1 or greater.
Excel Assignment - 4
1. Create a list of student names and their scores. Use a nested IF function to assign grades based on the following criteria:
- 90 and above = "A"
- 80 to 89 = "B"
- 70 to 79 = "C"
- Below 70 = "Fail"
Steps:
- In Column A, enter student names.
- In Column B, enter their scores.
- In Column C (Grade), use the following formula:
=IF(B1>=90,"A",IF(B1>=80,"B",IF(B1>=70,"C","Fail")))
- Press Enter and drag the formula down for all students.
2. Create a table with Product ID and Product Price. Use the VLOOKUP function to find the price of a product by using its Product ID.
Steps:
- In Column A, enter Product IDs.
- In Column B, enter Product Prices.
- In another cell (e.g., E1), enter the Product ID you want to look up.
- In Cell F1, use the VLOOKUP formula:
=VLOOKUP(E1,A:B,2,FALSE)
- Press Enter, and it will return the corresponding price for the entered Product ID.
3. Create a table with Employee Names in the first row and their respective Departments in the second row. Use the HLOOKUP function to find which department a specific employee is in.
Steps:
- In Row 1, enter employee names (e.g., A1, B1, C1, etc.).
- In Row 2, enter their departments.
- In Cell A4, enter the employee name you want to search for.
- In Cell B4, use the HLOOKUP formula:
=HLOOKUP(A4,A1:E2,2,FALSE)
- Press Enter, and it will return the corresponding department for the entered employee name.
4. Create a list of employee performance scores. Use the COUNTIF function to count how many employees have scored above 80.
Steps:
- In Column A, enter employee names.
- In Column B, enter performance scores.
- In Cell D1, use the COUNTIF function:
=COUNTIF(B1:B10,">80")
- Press Enter, and it will return the count of employees who scored above 80.
5. Create a table with Product Names and Sales Figures. Use the SUMIF function to calculate the total sales for a specific product.
Steps:
- In Column A, enter product names.
- In Column B, enter sales figures.
- In Cell D1, enter the product name you want to find total sales for.
- In Cell E1, use the SUMIF function:
=SUMIF(A1:A10,D1,B1:B10)
- Press Enter, and it will return the total sales for the specified product.
6. Create a list of test scores for 10 students. Use the MEDIAN function to find the middle value of the scores.
Steps:
- In Column A, enter student names.
- In Column B, enter test scores.
- In Cell D1, use the MEDIAN function:
=MEDIAN(B1:B10)
- Press Enter, and it will return the median score (the middle value when scores are arranged in order).