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

it project 2

Uploaded by

Ratnraj Nigam
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)
47 views

it project 2

Uploaded by

Ratnraj Nigam
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/ 64

Project

On
IT skills Lab1
KMBN-151

Submitted To: Submitted By:

Mr. Anand Kumar Dixit Abhishek Sharma

Assistant Professor AKTU Roll No:

MBA Department MBA Batch 2023-25


ACKNOWLEDGEMENT
“No Learning Is Possible Without Proper Guidance”

This entitled “IT skills Lab1” cannot be complete without a word of thanks to
those who have provided invaluable support and guidance that leads to its
successful completion.
I acknowledge with sincerity and a deep sense of gratitude, given to me by my
guide and Faculty mentor” Mr. Anand Kumar Dixit, Assistant Professor”. His
suggestion and discussion were enlightening and a constant source of inspiration
during the project work. His/Her guidance and support encouraged me for the
betterment of the project.
Last but not the least, I would like to take the opportunity to express my thanks
to all colleagues for their help.
CERTIFICATE
This is to certify that Mr. Abhishek Sharma student of MBA first semester (session
2023-2025 has successfully completed his IT skills project The work is original
and carried out under the guidance and supervision of project guide

We wishes all the success and good luck for bright future

Mr. Anand Kumar Dixit

Project guide
Q1. Define Microsoft Excel and its advantages in brief.

Ans. Microsoft Excel is one of the most widely used software programmers worldwide. Excel

has powerful tools and functions used in international IT companies' applications. It makes data

entry, reading, and processing simple. Excel keeps the information in a table format in Rows and

Columns.

Excel is the industry standard for financial modelling and analysis in all organisations.

According to a survey conducted by Statista, more than 86% of survey respondents reported

using Excel products for work-related daily tasks. MS Excel is used by everyone, including

receptionists, accountants, data engineers, and human resource professionals, to do jobs with

Excel skills quickly and effectively.

Its advantage

 Microsoft Excel is an incredibly powerful and versatile spreadsheet software program,

offering numerous advantages for both businesses and professionals.

 Excel’s features and functions make it an ideal choice for data organization, analysis, and

calculations.

 Excel is also compatible with other Microsoft applications, making it easy to create

reports and presentations.

 One of the primary advantages of using Excel is that it allows users to easily manipulate

data and create powerful visualizations.

 Excel offers a wide range of features, such as pivot tables, data visualizations, and

formulas, that make it easier to process and analyze data.


 This makes it incredibly useful for businesses and professionals alike, as it allows them to

quickly and accurately assess data and make informed decisions.

 Excel also offers a wide range of features that allow users to easily collaborate and share

data with other users.

 This makes it an incredibly useful tool for businesses, as it allows them to easily

communicate with each other and work together on projects.

Q2. Define the some layout and components of Microsoft Excel Window

Ans. Worksheet: After opening an Excel workbook, we get a window of Excel to perform any

required operation that is the worksheet.

Cell: The cell is the shortest part of Excel. Usually, a cell is denoted by the combination of row

and column headings. Cell A1 means that the cell is located in the first column and first row.

Cell numbers are unique.

Active Cell: When we click on any cell, it becomes the active cell. The address of the active cell

is shown in the Name Box at the upper left corner of the sheet.

Row: Row is the horizontal collection of cells and is denoted by a number. On the left side of the

sheet, you can see the row bar that indicates all rows. Excel has 1,048,576 rows in total.

Column: The column is the vertical collection of cells and is denoted by alphabetic characters.

You will have a bar on the upper side of the worksheet consisting of alphabetic characters

starting from A, that is the column bar. Each character of this bar indicates individual columns.

Excel has 16,384 columns in total.

Title Bar: The Title bar is the horizontal bar that contains the name of the Excel file and is

located at the top of the workbook.


Quick Access Toolbar: The Quick Access Toolbar or QAT is a customized toolbar, located at

the left-upper side of the workbook. We gather all the frequently used commands here so that

there is no need to search for them.

Control Buttons: Control buttons are located at the upper-right side of the workbook and are

used for control purposes like minimizing, maximizing, and closing.

Ribbon: The Ribbon is the key interface in Excel that organizes and contains various

commands. It is divided into tabs, each housing groups of related commands. It was first

introduced in Excel 2007 and is available in all the latest versions including Excel 365.

Formula Bar: Formula bar is located below the ribbon. We can insert, modify, and delete any

value or formula in Excel from this bar. We can also see the formula of any cell in this bar.

Name Box: The Name Box is on the left side of the Formula Bar. We can see the address cell or

name of a range from this box. We can also go to the desired cell or select the range by inserting

the cell reference or name in this box.

Scroll Bar: The scroll bar is used to navigate the Excel worksheet in 4 directions. There are two

scroll bars: the horizontal scroll bar for left and right, and the vertical scroll bar for up and down

directions.

Sheet Tab: The sheet tab contains the names of all available sheets on the workbook. We can

also create new sheets from there. It is also called the leaf bar. It is located at the bottom left

corner of a workbook above the Status Bar.

Status Bar: The status bar is a horizontal bar located at the bottom of the workbook. It indicates

the current status of the selected cell and other mathematical calculations like sum, average,

count, etc.
Zoom Slider: It refers to the zoom adjustment of Excel workbooks that ranges from 10% to

400%. It is located at the bottom-right corner of the Excel workbook.

View Buttons: This button refers to different ways to present the workbook in Excel. There are

three modes: Normal, Page Layout, and Page Break Preview.

Q3. Explain the concepts of Relative, Absolute and Mixed cell referencing with suitable

examples

Ans3. default, a cell reference is a relative reference, which means that the reference is relative

to the location of the cell. If, for example, you refer to cell A2 from cell C2, you are actually

referring to a cell that is two columns to the left (C minus A)—in the same row (2). When you

copy a formula that contains a relative cell reference, that reference in the formula will change.

As an example, if you copy the formula =B4*C4 from cell D4 to D5, the formula in D5 adjusts

to the right by one column and becomes =B5*C5. If you want to maintain the original cell

reference in this example when you copy it, you make the cell reference absolute by preceding

the columns (B and C) and row (2) with a dollar sign ($). Then, when you copy the

formula =$B$4*$C$4 from D4 to D5, the formula stays exactly the same.

Less often, you may want to mixed absolute and relative cell references by preceding either the

column or the row value with a dollar sign—which fixes either the column or the row (for

example, $B4 or C$4).

To change the type of cell reference:

1. Select the cell that contains the formula.

2. In the formula bar , select the reference that you want to change.
3. Press F4 to switch between the reference types.

The table below summarizes how a reference type updates if a formula containing the

reference is copied two cells down and two cells to the right.

Relative cell references are useful when you have to create a formula for a range of cells

and the formula needs to refer to a relative cell reference.

Unlike relative cell references, absolute cell references don’t change when you copy the formula

to other cells.

For example, suppose you have the data set as shown below where you have to calculate the

commission for each item’s total sales.

Absolute cell references are useful when you don’t want the cell reference to change as you

copy formulas. This could be the case when you have a fixed value that you need to use in the

formula (such as tax rate, commission rate, number of months, etc.)

While you can also hard code this value in the formula (i.e., use 20% instead of $G$2), having it

in a cell and then using the cell reference allows you to change it at a future date

Q4. Explain the concepts of spread sheet and Google sheet

**What is a Spreadsheet?**
A spreadsheet is a digital document that allows you to store, organize, and manipulate data in a

tabular format. It's like a virtual notebook with rows and columns where you can enter, calculate,

and analyze data. Spreadsheets are widely used for personal and professional purposes, such as

managing finances, tracking inventory, creating budgets, and analyzing data.

**Key Features of a Spreadsheet:**

1. **Rows**: Horizontal lines that separate data into rows.

2. **Columns**: Vertical lines that separate data into columns.

3. **Cells**: The individual boxes where you can enter data, formulas, or functions.

4. **Formulas**: Mathematical equations that perform calculations on data in cells.

5. **Functions**: Pre-built formulas that perform specific tasks, such as SUM, AVERAGE, or

COUNT.

6. **Formatting**: Customizing the appearance of cells, such as font styles, colors, and

alignment.

7. **Conditional Formatting**: Highlighting cells based on specific conditions, such as values or

formulas.
8. **Charts and Graphs**: Visual representations of data to help analyze and understand trends.

**What is Google Sheets?**

Google Sheets is a free online spreadsheet application provided by Google within their Google

Drive service. It's a web-based alternative to traditional desktop spreadsheet software like

Microsoft Excel or LibreOffice Calc.

**Key Features of Google Sheets:**

1. **Collaboration**: Real-time collaboration allows multiple users to edit a single spreadsheet

simultaneously.

2. **Cloud-Based**: Access your spreadsheets from anywhere, on any device with an internet

connection.

3. **Automatic Saving**: Your work is saved automatically as you type.


4. **Revision History**: Track changes made to your spreadsheet and revert to previous

versions if needed.

5. **Integration with other Google Apps**: Seamlessly integrate with other Google apps like

Google Docs, Slides, and Forms.

6. **Add-ons**: Expand your spreadsheet's capabilities with third-party add-ons, such as

automation tools or financial calculators.

7. **Revision History**: Track changes made to your spreadsheet and revert to previous

versions if needed.

**Benefits of Using Google Sheets:**

1. **Collaboration**: Easy collaboration with others in real-time.

2. **Accessibility**: Access your spreadsheets from anywhere, on any device.

3. **Cost-effective**: Free to use, with no need for expensive software or hardware upgrades.

4. **Automatic Saving**: No more worrying about losing your work due to system crashes or

power outages.
5. **Revision History**: Easily track changes made to your spreadsheet and revert to previous

versions if needed.

In summary, a spreadsheet is a digital document used for storing, organizing, and analyzing data

in a tabular format, while Google Sheets is a free online spreadsheet application that offers real-

time collaboration, automatic saving, and integration with other Google apps.

Q5. Write the syntax of ten mathematical and trigonometry functions along with examples

Ans5 Here are ten mathematical and trigonometry functions with their syntax and examples:

1. SUM()

Syntax: SUM(range)

Example: =SUM(A1:A10) - adds up the values in cells A1 to A10

2. AVERAGE()

Syntax: AVERAGE(range)

Example: =AVERAGE(A1:A10) - calculates the average of the values in cells A1 to A10

3. COUNT()

Syntax: COUNT(range)

Example: =COUNT(A1:A10) - counts the number of cells in the range A1:A10 that contain

numbers

4. MAX()
Syntax: MAX(range)

Example: =MAX(A1:A10) - returns the maximum value in cells A1 to A10

5. MIN()

Syntax: MIN(range)

Example: =MIN(A1:A10) - returns the minimum value in cells A1 to A10

6. TAN()

Syntax: TAN(angle)

Example: =TAN(A1) - calculates the tangent of the angle in cell A1

7. SIN()

Syntax: SIN(angle)

Example: =SIN(A1) - calculates the sine of the angle in cell A1

8. COS()

Syntax: COS(angle)

Example: =COS(A1) - calculates the cosine of the angle in cell A1

9. LN()

Syntax: LN(number)

Example: =LN(100) - calculates the natural logarithm of 100

10. POWER()

Syntax: POWER(base, exponent)

Example: =POWER(2, 3) - calculates 2 raised to the power of 3 (i.e., 8)


Note:

Q6. Write the syntax of ten Text or string related functions along with examples.

Here are ten text or string-related functions along with their syntax and examples:

1. **CONCATENATE()**

Syntax: `CONCATENATE(text1, [text2], ... )`

Example: `=CONCATENATE("Hello, ", "World!")` - returns the string "Hello, World!"

2. **LOWER()**

Syntax: `LOWER(text)`

Example: `=LOWER(A1)` - converts the text in cell A1 to lowercase

3. **UPPER()**

Syntax: `UPPER(text)`

Example: `=UPPER(A1)` - converts the text in cell A1 to uppercase


4. **PROPER()**

Syntax: `PROPER(text)`

Example: `=PROPER(A1)` - converts the text in cell A1 to proper case (first letter capitalized)

5. **LEFT()**

Syntax: `LEFT(text, num_chars)`

Example: `=LEFT(A1, 3)` - returns the first 3 characters of the text in cell A1

6. **RIGHT()**

Syntax: `RIGHT(text, num_chars)`

Example: `=RIGHT(A1, 3)` - returns the last 3 characters of the text in cell A1

7. **MID()**

Syntax: `MID(text, start, num_chars)`


Example: `=MID(A1, 2, 3)` - returns the characters starting from the 2nd character to the 5th

character (inclusive) of the text in cell A1

8. **FIND()**

Syntax: `FIND(find_text, within_text)`

Example: `=FIND("abc", A1)` - returns the position of the first occurrence of "abc" within the

text in cell A1

9. **LEN()**

Syntax: `LEN(text)`

Example: `=LEN(A1)` - returns the length (number of characters) of the text in cell A1

10. **REPLACE()**

Syntax: `REPLACE(original_text, old_text, new_text)`

Example: `=REPLACE(A1, "old", "new")` - replaces all occurrences of "old" with "new" in the

text in cell A1
Note:

* In these examples, "text" refers to a cell or range of cells that contain text.

* "num_chars" refers to the number of characters you want to extract or replace.

* "find_text" refers to the text you want to find within another text.

* "old_text" and "new_text" refer to the texts you want to replace.

These are just a few examples of text or string-related functions available in spreadsheets. There

are many more functions available, depending on the specific spreadsheet software you are using

(e.g., Google Sheets, Microsoft Excel, LibreOffice Calc).

Q7. Write the syntax of five logical functions along with examples

Ans7. Here are five logical functions along with their syntax and examples:

1. **IF()**

Syntax: `IF(logical_test, [value_if_true], [value_if_false])`

Example: `=IF(A1>10, "Greater than 10", "Less than or equal to 10")` - returns "Greater than 10"

if the value in cell A1 is greater than 10, otherwise returns "Less than or equal to 10"

2. **IFS()**
Syntax: `IFS(logical_test1, [value_if_true1], logical_test2, [value_if_true2], ...)`

Example: `=IFS(A1>10, "Greater than 10", A1<5, "Less than 5", A1=5, "Equal to 5")` - returns

the first true condition: if A1 is greater than 10, returns "Greater than 10", if A1 is less than 5,

returns "Less than 5", otherwise returns "Equal to 5"

3. **AND()**

Syntax: `AND(logical_test1, logical_test2, ...)`

Example: `=AND(A1>5, A2>10)` - returns TRUE if both conditions are true (A1 is greater than

5 and A2 is greater than 10)

4. **OR()**

Syntax: `OR(logical_test1, logical_test2, ...)`

Example: `=OR(A1>5, A2<10)` - returns TRUE if at least one condition is true (A1 is greater

than 5 or A2 is less than 10)

5. **NOT()**
Syntax: `NOT(logical_test)`

Example: `=NOT(A1>10)` - returns the opposite of the condition (TRUE if A1 is not greater

than 10)

Note:

* In these examples, "logical_test" refers to a condition that can be evaluated as TRUE or

FALSE.

* "value_if_true" and "value_if_false" refer to the values to be returned if the condition is true or

false respectively.

* In IFS function, you can have multiple conditions and corresponding values.

* AND and OR functions return TRUE or FALSE based on the conditions.

These are just a few examples of logical functions available in spreadsheets. There are many

more functions available, depending on the specific spreadsheet software you are using (e.g.,

Google Sheets, Microsoft Excel, LibreOffice Calc).

Q8. Write the syntax of five financial functions along with examples

Ans. Here are five financial functions along with their syntax and examples:

1. VLOOKUP()

Syntax: VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])


Example: =VLOOKUP(A2, B:C, 2, FALSE) - looks up the value in cell A2 in the first column

of the range B:C and returns the corresponding value in the second column (column 2)

2. XLOOKUP()

Syntax: XLOOKUP(lookup value, table_array, col_index_num, [if_not_found])

Example: =XLOOKUP(A2, B:C, 2) - looks up the value in cell A2 in the first column of the

range B:C and returns the corresponding value in the second column (column 2)

3. NPV()

Syntax: NPV(rate, value1, [value2], ... )

Example: =NPV(0.08, A1:A10) - calculates the net present value of the values in cells A1:A10

using a discount rate of 8%

4. IRR()

Syntax: IRR(values)

Example: =IRR(A1:A10) - calculates the internal rate of return for the values in cells A1:A10

5. XNPV()

Syntax: XNPV(rate, dates, values)

Example: =XNPV(0.08, A1:A10, B1:B10) - calculates the net present value of the values in cells

B1:B10 using a discount rate of 8% and dates in cells A1:A10

Note:

 In these examples, "lookup_value" refers to the value to be looked up.

 "table_array" refers to the range of cells containing the lookup table.


 "col_index_num" refers to the column number containing the value to be returned.

 "range_lookup" is a boolean value (TRUE or FALSE) indicating whether to perform an exact or

approximate match.

 "if_not_found" is an optional argument specifying what to return if no match is found.

 "rate" refers to the discount rate used for NPV calculation.

 "values" refer to the array of values for which to calculate NPV or IRR.

Q9 How do you create Dropdown List in MS Excel

Ans. To create a dropdown list in MS Excel, you can use the following steps:

1. Select the cell where you want to create the dropdown list.

2. Go to the "Data" tab in the ribbon.

3. Click on the "Data Validation" button in the "Data Tools" group.

4. In the "Data Validation" dialog box, select "Allow" and then click on "List".

5. In the "Source" field, enter a range of cells that contains the options you want to display in the

dropdown list.

6. Click "OK" to apply the data validation.

Alternatively, you can also use the following steps:

1. Select the cell where you want to create the dropdown list.

2. Right-click on the cell and select "Format cells".


3. In the "Format cells" dialog box, select the "Alignment" tab.

4. Click on the "Fill" button and select "Colors".

5. In the "Fill Colors" dialog box, click on the "Patterned Fill" tab.

6. Select a pattern or color scheme from the available options.

7. Click "OK" to apply the format.

Note: The above steps will only create a dropdown list with a specific set of values, but it will

not automatically populate the list with data from another range of cells.

To create a dropdown list that populates automatically from another range of cells, you can use

VLOOKUP or INDEX-MATCH functions. Here's an example:

1. Select the cell where you want to create the dropdown list.

2. Type `=VLOOKUP(A2, B:C, 2, FALSE)` (assuming your data is in columns A and B).

3. Press Enter to apply the formula.

In this example, `A2` is the cell containing the value to look up, `B:C` is the range containing

your data, and `2` is the column number containing your data.

You can also use `INDEX-MATCH` function instead of `VLOOKUP`. Here's an example:

1. Select the cell where you want to create the dropdown list.
2. Type `=INDEX(B:B, MATCH(A2, A:A, 0))` (assuming your data is in columns A and B).

3. Press Enter to apply the formula.

In this example, `A2` is the cell containing the value to look up, `A:A` is the range containing

your data, and `B:B` is the range containing your data.

These formulas will automatically populate your dropdown list with values from another range

of cells.

Q10. What is VLOOKUP in excel? How does VLOOKUP function work?

Ans10.VLOOKUP is a powerful function in Microsoft Excel that allows you to look up and

retrieve data from a table or range of cells based on a value in another cell. It is a type of lookup

function that searches for a value in the first column of a table and returns a corresponding value

from another column.

** Syntax: **

The syntax of the VLOOKUP function is as follows:

`=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])`

Where:

* `lookup_value` is the value you want to look up


* `table_array` is the range of cells that contains the data you want to search

* `col_index_num` is the column number that contains the value you want to return

* `[range_lookup]` is an optional argument that specifies whether you want an exact match or an

approximate match

**How VLOOKUP works:**

1. VLOOKUP searches for the `lookup_value` in the first column of the `table_array`.

2. If it finds a match, it returns the corresponding value from the column specified by

`col_index_num`.

3. If it doesn't find a match, it returns a #N/A error.

**Example:**

Suppose you have a table with employee names in column A and their salaries in column B:

| Employee | Salary |

|----------|--------|

| John | 5000 |

| Jane | 6000 |

| Joe | 7000 |
You can use VLOOKUP to find John's salary by entering the following formula:

`=VLOOKUP("John", A:B, 2, FALSE)`

This formula looks up the value "John" in the first column (A) of the table and returns the

corresponding value from the second column (B), which is John's salary.

**Common uses of VLOOKUP:**

1. Looking up customer information based on a customer ID

2. Retrieving product information based on a product code

3. Finding employee information based on an employee ID

4. Merging data from two tables based on a common column

**Tips and considerations:**

1. VLOOKUP is case-sensitive, so if your data is in uppercase or mixed case, make sure to use

uppercase or mixed case in your formula.

2. If you want an approximate match instead of an exact match, set the `[range_lookup]`

argument to `TRUE`.

3. If you want to return multiple values from multiple columns, use INDEX-MATCH function

instead of VLOOKUP.

4. Make sure your table_array is properly formatted and structured before using VL
Q11. . How can we Pivot tables and define its significance?

Ans. A pivot table is a powerful data analysis tool in Microsoft Excel that allows you to

summarize, organize, and analyze large datasets by rotating and summarizing data from different

perspectives. It's like a dynamic summary table that can be easily manipulated to show different

views of your data.

How to create a pivot table:

1. Select the cell range that contains your data.

2. Go to the "Insert" tab in the ribbon.

3. Click on the "PivotTable" button in the "Tables" group.

4. Choose a cell where you want to place the pivot table.

5. Click "OK".

Pivot table components:

1. Fields: These are the columns in your data that you want to use in your pivot table.

2. Rows: These are the fields that you want to use as the row headers in your pivot table.

3. Columns: These are the fields that you want to use as the column headers in your pivot table.

4. Values: These are the fields that you want to summarize or calculate in your pivot table.

Significance of pivot tables:

1. Data summarization: Pivot tables allow you to summarize large datasets by aggregating data

based on various criteria, such as sum, average, count, etc.

2. Data analysis: Pivot tables enable you to analyze data from different perspectives by rotating

and summarizing data from different angles.


3. Flexible reporting: Pivot tables allow you to create custom reports by selecting specific fields

and aggregations, making it easy to present data in a way that is meaningful to your audience.

4. Data visualization: Pivot tables can be used to create interactive charts and graphs that allow

users to explore and analyze data in real-time.

5. Data filtering: Pivot tables allow you to filter data based on specific criteria, making it easy to

focus on specific subsets of data.

Common uses of pivot tables:

1. Sales analysis: Analyzing sales data by region, product, time period, etc.

2. Customer analysis: Analyzing customer data by demographics, purchase history, etc.

3. Financial analysis: Analyzing financial data by department, product, time period, etc.

4. Marketing analysis: Analyzing marketing campaign results by channel, target audience, etc.

Tips and considerations:

1. Use a clean and organized dataset when creating a pivot table.

2. Use meaningful field names and labels to make it easy to understand the data.

3. Use filters and slicers to narrow down the data and focus on specific subsets.

4. Use conditional formatting to highlight important trends or patterns in the data.

5. Use pivot charts and other visualization tools to make it easy to understand complex data.

Q12. Define the Macros and its importance. How to write Macros in MS Excel?

Ans. **What is a Macro?**


A macro is a set of instructions that automates a series of tasks in Microsoft Office applications,

such as Microsoft Excel. Macros are created using Visual Basic for Applications (VBA) and can

be used to perform repetitive tasks, automate workflows, and enhance the functionality of the

application.

**Importance of Macros:**

1. **Automation:** Macros automate repetitive tasks, freeing up time for more important tasks.

2. **Increased productivity:** Macros can perform tasks much faster and more accurately than

manual entry.

3. **Error reduction:** Macros can reduce errors by performing tasks consistently and

accurately.

4. **Customization:** Macros can be customized to fit specific business needs and workflows.

5. **Integration:** Macros can integrate with other Office applications and systems.

**How to write Macros in MS Excel:**

1. **Open the Visual Basic Editor:** Press Alt + F11 or navigate to Developer > Visual Basic in

the ribbon.

2. **Create a new module:** Right-click on the "Modules" folder in the Project Explorer and

select "Insert" > "Module" to create a new module.

3. **Write the code:** Write the VBA code in the module, using Excel's VBA syntax.
4. **Save the macro:** Click "File" > "Save" to save the module with a file name (e.g.,

"MyMacro").

**Basic VBA syntax:**

1. `Sub` keyword: Begins a new subroutine (macro).

2. `End Sub` keyword: Ends a subroutine (macro).

3. `Dim` keyword: Declares a variable.

4. `Range` object: Represents a range of cells.

5. `Select` statement: Selects a range or cell.

6. `Do...Loop` statements: Loops through a set of actions.

**Example Macro Code:**

```vb

Sub AutoFitColumns()

Dim ws As Worksheet

Set ws = ActiveSheet

ws.Columns.AutoFit

End Sub

```

This macro automates the task of auto-fitting columns in the active worksheet.
**Tips and considerations:**

1. **Debugging:** Use the Immediate window (Ctrl + G) to debug macros and troubleshoot

issues.

2. **Security:** Be cautious when sharing macros, as they can potentially contain malicious

code.

3. **Documentation:** Document your macros with comments and notes to make them easier to

understand and maintain.

4. **Testing:** Test your macros thoroughly before deploying them to production.

Q13 Q13. What is Data Validation illustrating with an example

Ans13.What is Data Validation?

Data Validation is a feature in Microsoft Excel that allows you to restrict the type of data that can

be entered into a cell. It helps ensure that the data is accurate, consistent, and follows a specific

format. Data Validation can be applied to a single cell or a range of cells.

Types of Data Validation:

1. Text length: Restricts the number of characters that can be entered into a cell.

2. Number: Restricts the type of number that can be entered (e.g., whole numbers, decimal

numbers, dates).

3. Date: Restricts the date format and range that can be entered.

4. Time: Restricts the time format and range that can be entered.

5. List: Restricts the values that can be entered to a specific list.


6. Custom: Allows you to create a custom validation rule using VBA code.

Example: Data Validation for Employee IDs

Suppose we want to restrict the data entered in column A (Employee IDs) to only accept 5-digit

numbers.

1. Select the cell range A1:A10 (or the entire column A).

2. Go to the "Data" tab in the ribbon.

3. Click on "Data Validation" in the "Data Tools" group.

4. Select "Settings" from the drop-down menu.

5. Under "Allow", select "Whole number".

6. In the "Data" field, enter 00000 (to allow only 5-digit numbers).

7. Click "OK".

Now, when you enter data in cell A1, it will only accept 5-digit numbers starting with zeros (e.g.,

00001, 00012, etc.).

Benefits of Data Validation:

1. Error reduction: Prevents incorrect data from being entered into cells.

2. Consistency: Ensures that data is consistent and follows a specific format.

3. Improved accuracy: Reduces errors and improves data accuracy.

4. Enhanced user experience: Provides a better user experience by guiding users on what data is

expected.

Tips and considerations:


1. Apply data validation to entire columns or rows: Apply data validation to an entire column or

row to restrict data entry throughout.

2. Use custom messages: Use custom error messages to provide feedback to users when invalid

data is entered.

3. Test thoroughly: Test your data validation rules thoroughly to ensure they are working as

expected.

Q14. Define Auto filter and advance filter utilities with examples.

Ans. **AutoFilter and Advanced Filter Utilities in Microsoft Excel**

**AutoFilter**

AutoFilter is a feature in Microsoft Excel that allows you to filter data in a table or range based

on specific criteria. It is a powerful tool for quickly identifying and isolating specific data within

a large dataset.

**How to use AutoFilter:**

1. Select the range of cells you want to filter.

2. Go to the "Data" tab in the ribbon.

3. Click on "Filter" in the "Data Tools" group.


4. A drop-down menu will appear above each column header, allowing you to select a filter

criteria.

**Examples:**

1. **Filtering by a single criterion:** Select a column header, click on the drop-down menu, and

choose "Filter by values". Then, select the desired value from the list.

Example: Filter a list of employees by department, selecting only those in the "Sales"

department.

| Employee ID | Name | Department |

| --- | --- | --- |

| 101 | John Smith | Sales |

| 102 | Jane Doe | Marketing |

| 103 | Bob Johnson | Sales |

| ... | ... | ... |

After filtering:

| Employee ID | Name | Department |

| --- | --- | --- |


| 101 | John Smith | Sales |

| 103 | Bob Johnson | Sales |

2. **Filtering by multiple criteria:** Select multiple columns headers, and then apply filters to

each one.

Example: Filter a list of orders by date range (2022-01-01 to 2022-01-31) and product category

("Electronics").

| Order Date | Product Category | Quantity |

| --- | --- | --- |

| 2022-01-01 | Electronics | 10 |

| 2022-01-05 | Furniture | 5 |

| 2022-01-15 | Electronics | 20 |

| ... | ... | ... |

After filtering:

| Order Date | Product Category | Quantity |

| --- | --- | --- |

| 2022-01-01 | Electronics | 10 |

| 2022-01-15 | Electronics | 20 |
**Advanced Filter**

Advanced Filter is a more powerful version of AutoFilter that allows you to create custom filters

using formulas and logical operators.

**How to use Advanced Filter:**

1. Go to the "Data" tab in the ribbon.

2. Click on "Advanced" in the "Data Tools" group.

3. In the Advanced Filter dialog box, select "Copy to another location" and specify the range

where you want to copy the filtered data.

**Examples:**

1. **Filtering by multiple criteria using formulas:** Use the `AND` and `OR` operators to create

complex filters.

Example: Filter a list of customers who have both placed an order and have a balance greater

than $100.

| Customer ID | Order Date | Balance |

| --- | --- | --- |


| 101 | 2022-01-01 | 50 |

| 102 | 2022-01-05 | 150 |

| 103 | 2022-01-15 | 200 |

| ... | ... | ... |

After filtering:

| Customer ID | Order Date | Balance |

| --- | --- | --- |

| 102 | 2022-01-05 | 150 |

| 103 | 2022-01-15 | 200 |

2. **Filtering by using wildcards:** Use the `*` wildcard character to match patterns in text

fields.

Example: Filter a list of products containing the word "Smartphone".

| Product Name |

| --- |

| Smartphone Pro |

| Apple Watch |

| Smart TV |
After filtering:

| Product Name |

| --- |

| Smartphone Pro |

Q15. Define conditional formatting with example.

Ans15

Conditional Formatting in Microsoft Excel

Conditional formatting is a powerful feature in Microsoft Excel that allows you to highlight cells

based on specific conditions or rules. This feature helps to draw attention to important data,

identify trends, and make it easier to analyze and understand your data.

Types of Conditional Formatting:

1. Number: Formats cells based on numerical values (e.g., greater than, less than, equal to).

2. Text: Formats cells based on text strings (e.g., contains, starts with, ends with).

3. Date: Formats cells based on dates (e.g., today's date, yesterday's date, last week's date).

4. Duration: Formats cells based on time intervals (e.g., 1 hour, 1 day, 1 week).

Example: Highlighting High and Low Values

Suppose we have a list of exam scores and want to highlight the scores that are above or below a

certain threshold.
Student Score

John 80

Jane 90

Bob 60

Alice 70

Mike 95

Step-by-Step Instructions:

1. Select the range of cells you want to format (A2:B7).

2. Go to the "Home" tab in the ribbon.

3. Click on the "Conditional Formatting" button in the "Styles" group.

4. Select "New Rule" from the drop-down menu.

5. Choose "Use a formula to determine which cells to format".

6. In the formula bar, enter the following formula: =A2:A7>80 (to highlight scores above 80)

and =A2:A7<60 (to highlight scores below 60).

7. Click "Format" and select a format (e.g., green fill for high scores and red fill for low scores).

8. Click "OK".

After applying the conditional formatting rule:


Student Score

John 80

Jane 90

Bob 60

Alice 70

Mike 95

Tips and Variations:

1. Use multiple conditions: Create multiple rules with different conditions using the "OR"

operator.

2. Use conditional formatting with formulas: Use formulas to create complex formatting rules.

3. Format entire rows or columns: Format entire rows or columns instead of individual cells.

4. Animate your formatting: Use animation effects to make your formatting more engaging.

5. Use conditional formatting with other tools: Combine conditional formatting with other tools

like charts and pivot tables to create powerful data visualizations.

Q16. Q16. How can we calculate percentage and also define typies of data in MS Excel?

Calculating Percentage in MS Excel:


1. Simple Percentage: Use the =A/B formula, where A is the value you want to find the

percentage of and B is the total value.

Example: Calculate the percentage of 20 out of 100.

Formula Result

=20/100 0.2

=20/100*100 20

2. Percentage Change: Use the =(A-B)/B formula, where A is the new value and B is the original

value.

Example: Calculate the percentage increase from 10 to 15.

Formula Result

=(15-10)/10 0.5

=(15-10)/10*100 50

Defining Data Types in MS Excel:

1. Number: Use the NUMBER function to define a number. Example: =NUMBER(A1) converts

cell A1 to a number.

2. Text: Use the TEXT function to define text. Example: =TEXT(A1,"General") converts cell A1

to text and formats it as general text.

3. Date: Use the DATE function to define a date. Example: =DATE(2022,3,15) sets the date as

March 15, 2022.


4. Time: Use the TIME function to define a time. Example: =TIME(12,30,0) sets the time as 12:30

PM.

5. Logical: Use the LOGICAL function to define a logical value (TRUE or FALSE).

Example: =LOGICAL(A1) converts cell A1 to a logical value (TRUE or FALSE).

6. Error: Use the ERROR.TYPE function to define an error type (e.g., #N/A, #VALUE!, #REF!).

Example: =ERROR.TYPE(A1) returns an error type if cell A1 contains an error.

Tips and Variations:

1. Data Validation: Use data validation to restrict user input to specific formats or values.

2. Format Cells: Use format cells to change the appearance of your data (e.g., currency, date,

time).

3. Conditional Formatting: Use conditional formatting to highlight cells based on specific

conditions or rules.

4. Data Analysis: Use data analysis tools like SUMIFS, COUNTIFS, and AVERAGEIFS to

analyze your data.

5. PivotTables: Use PivotTables to summarize and analyze large datasets.

Q17. Explain Column, Bar. Line, Pie, XY Scatter, Area, Surface, Bubble chart in MS Excel with

suitable examples

Ans. **MS Excel Charts:**

1. **Column Chart:** A column chart displays data as vertical columns. It's suitable for

comparing categorical data and showing trends over time.


Example: Sales by Region

| Region | Q1 | Q2 | Q3 | Q4 |

| --- | --- | --- | --- | --- |

| North | 100 | 120 | 150 | 180 |

| South | 80 | 100 | 120 | 140 |

| East | 120 | 150 | 180 | 200 |

| West | 90 | 110 | 130 | 150 |

**Column Chart:**

[Vertical columns representing sales by region]

2. **Bar Chart:** A bar chart is similar to a column chart, but it displays data as horizontal bars.

Example: Top 5 Products

| Product | Sales |

| --- | --- |

| A | 1000 |

| B | 800 |
| C | 600 |

| D | 400 |

| E | 200 |

**Bar Chart:**

[Horizontal bars representing product sales]

3. **Line Chart:** A line chart connects data points with lines to show trends and patterns over

time.

Example: Stock Prices

| Date | Price |

| --- | --- |

| Jan-1st | 100 |

| Feb-1st | 110 |

| Mar-1st | 120 |

| Apr-1st | 130 |

| May-1st | 140 |

**Line Chart:**
[Line connecting stock prices over time]

4. **Pie Chart:** A pie chart displays how different parts contribute to a whole.

Example: Sales by Department

| Department | Sales |

| --- | --- |

| Sales & Marketing | 60% |

| Operations & Logistics | 20% |

| Human Resources & Finance | 10% |

| IT & Development | 10% |

**Pie Chart:**

[ Pie slice representing sales by department]

5. **XY Scatter Chart:** An XY scatter chart displays data points on a coordinate plane,

showing relationships between two variables.

Example: Relationship between Age and Salary


| Age | Salary |

| --- | --- |

| 25-34 | $50,000 |

| 35-44 | $70,000 |

| 45-54 | $90,000 |

| 55+ | $110,000 |

**XY Scatter Chart:**

[Scatter plot of age vs. salary]

6. **Area Chart:** An area chart fills the area under the line or curve to show accumulation or

growth.

Example: Sales Over Time

| Date | Sales |

| --- | --- |

| Jan-1st to Mar-31st | $10,000 |

| Apr-1st to Jun-30th | $15,000 |

| Jul-1st to Sep-30th | $20,000 |


**Area Chart:**

[Filled area representing sales over time]

7. **Surface Chart:** A surface chart displays three-dimensional data, showing relationships

between three variables.

Example: Temperature and Humidity Over Time

| Date | Temperature (°C) | Humidity (%) |

| --- | --- | --- |

| Jan-1st to Mar-31st | 15°C,50%25°C,60%30°C,70%40°C,80%50°C,90%60°C,100%70°C,110%

**Surface Chart:**

[3D surface plot of temperature and humidity over time]

8. **Bubble Chart:** A bubble chart uses size, color, and position to represent three variables.

Example: Employee Performance Metrics


| Employee ID | Sales (USD) | Productivity (%) |

| --- | --- | --- |

**Bubble Chart:**

[Bubbles representing employee performance metrics]

These charts can help you visualize and communicate complex data insights effectively in MS

Excel.

Q18. Explain combined charts with suitable examples

**Combined Charts in MS Excel:**

MS Excel allows you to combine multiple charts into a single chart, known as a combined chart

or hybrid chart. This feature enables you to visualize multiple data series, different chart types,

and even different data sources in a single chart. Here are some examples:

1. **Column-Bar Combination Chart:**

Combine a column chart with a bar chart to show categorical data with both stacked and grouped

values.

Example: Sales by Region and Product


| Region | Product A | Product B | Product C |

| --- | --- | --- | --- |

| North | 100 | 120 | 150 |

| South | 80 | 100 | 120 |

| East | 120 | 150 | 180 |

| West | 90 | 110 | 130 |

**Column-Bar Combination Chart:**

[Column chart for total sales, bar chart for product-wise sales]

2. **Line-Column Combination Chart:**

Combine a line chart with a column chart to show trends and patterns over time with categorical

data.

Example: Stock Prices and Sales

| Date | Stock Price | Sales |

| --- | --- | --- |

| Jan-1st | 100 | 1000 |


| Feb-1st | 110 | 1200 |

| Mar-1st | 120 | 1500 |

**Line-Column Combination Chart:**

[Line chart for stock prices, column chart for sales]

3. **Area-Line Combination Chart:**

Combine an area chart with a line chart to show accumulation or growth over time with trends

and patterns.

Example: Customer Acquisition Over Time

| Month | New Customers | Total Customers |

| --- | --- | --- |

| Jan-2020 | 10 | 50 |

| Feb-2020 | 15 | 65 |

| Mar-2020 | 20 | 85 |

**Area-Line Combination Chart:**


[Area chart for total customers, line chart for new customers]

4. **Scatter-Lines Combination Chart:**

Combine an XY scatter plot with line charts to show relationships between two variables and

trends over time.

Example: Relationship between Age and Salary

| Age (years) | Salary (USD) |

| --- | --- |

| 25-34 | $50,000 |

| 35-44 | $70,000 |

| 45-54 | $90,000 |

**Scatter-Lines Combination Chart:**

[Scatter plot of age vs. salary, line charts for age groups]

When combining charts, you can:

* Choose from various chart types (column, bar, line, area, scatter)
* Select multiple data series to display

* Customize the appearance of each chart component

* Use various formatting options to enhance the visualization

* Interact with the combined chart to explore the data

Remember to experiment with different combinations to find the best visualization for your

specific data and audience.

Q19. What do you mean by Trace Precedent and Dependent Cell?

**Precedent Cell:**

In Microsoft Excel, a precedent cell is a cell that is referenced by a formula in another cell. In

other words, a precedent cell is a cell that provides input or data to a formula in another cell.

Example:

Suppose you have a formula `=A1+B1` in cell C1. The cells A1 and B1 are the precedent cells

because they provide input to the formula in cell C1.

**Dependent Cell:**
A dependent cell, on the other hand, is a cell that contains a formula that references one or more

precedent cells. In other words, a dependent cell is a cell that relies on the values in one or more

precedent cells to calculate its own value.

Using the same example:

Cell C1 (`=A1+B1`) is a dependent cell because its value depends on the values in cells A1 and

B1, which are the precedent cells.

**Relationship between Precedent and Dependent Cells:**

When you change the value in a precedent cell, it can affect the value in one or more dependent

cells. This is known as a dependency chain. When you change the value in a dependent cell, it

can also affect the values in its precedent cells.

**Examples:**

1. A salesperson's commission is calculated as 5% of their total sales. The total sales are stored in

cell B2, and the commission is calculated in cell C2 using the formula `=B2*0.05`. In this case:

* Cell B2 (total sales) is the precedent cell.

* Cell C2 (commission) is the dependent cell.


2. A company's total expenses are calculated as the sum of its operating expenses (cell B3),

salaries (cell B4), and taxes (cell B5). The total expenses are stored in cell C6 using the formula

`=B3+B4+B5`. In this case:

* Cells B3, B4, and B5 are all precedent cells.

* Cell C6 (total expenses) is the dependent cell.

Understanding the relationship between precedent and dependent cells can help you troubleshoot

formulas, identify dependencies, and optimize your worksheet's performance.

Q20. Perform following practical questions:

Ans. Practical Question-1

The following are the marks obtained by students in three subjects. Draw a Bar diagram

with appropriate design, formatting options and chart headings:-

Roll No. Name S1 S2 S3

101 A 50 60 70

102 B 60 40 80

103 C 70 60 50

104 D 60 50 60

105 E 50 90 40

Ans.

Here is a bar diagram for the given data:


**Bar Diagram:**

**Student Marks in Three Subjects**

**Subjects:**

* S1 (Marks)

* S2 (Marks)

* S3 (Marks)

**Students:**

* 101 - A

* 102 - B

* 103 - C

* 104 - D

* 105 - E

**Marks:**

| Student | S1 | S2 | S3 |

| --- | --- | --- | --- |


| 101 A | 50 | 60 | 70 |

| 102 B | 60 | 40 | 80 |

| 103 C | 70 | 60 | 50 |

| 104 D | 60 | 50 | 60 |

| 105 E | 50 | 90 | 40 |

**Bar Chart:**

[Bar chart with five bars, each representing a student's marks in the three subjects. The x-axis

represents the students, and the y-axis represents the marks. Each bar is labeled with the student's

name and the subject.]

**Design and Formatting Options:**

* I've used a vertical bar chart to display the data.

* The chart is titled "Student Marks in Three Subjects".

* The x-axis is labeled with the student names, and the y-axis is labeled with the subject names.

* Each bar is colored differently to distinguish between the students.

* The bars are formatted with a gradient effect to make them more visually appealing.

* The chart has a white background to make it easier to read.


This bar diagram clearly shows the marks obtained by each student in each subject, making it

easy to compare and analyze their performance.

Practical Question-2

The following are the details of expenditure. Draw a Pie diagram with appropriate

formatting options, including percentages and chart headings:-

Expenditure Rs.

Food 10000

Rent 5000

Clothing 1000

Fees 4000

Ans

Here is a pie chart for the given data:

**Pie Chart:**

**Breakdown of Expenditure**

**Categories:**

* Food
* Rent

* Clothing

* Fees

**Percentage Breakdown:**

* Food: 40%

* Rent: 25%

* Clothing: 10%

* Fees: 25%

**Pie Chart:**

[Pie chart with four slices, each representing a category of expenditure. The pie chart is divided

into four segments, labeled with the category names and percentages.]

**Design and Formatting Options:**

* I've used a circular pie chart to display the data.

* The chart is titled "Breakdown of Expenditure".

* The categories are listed in alphabetical order at the top of the chart.

* Each segment is colored differently to distinguish between the categories.


* The percentage values are displayed next to each category.

* The chart has a light gray background to make it easy to read.

This pie chart provides a visual representation of the breakdown of expenditure into different

categories, making it easy to identify the proportion of expenditure allocated to each category.

Practical Question-3

Calculate total, average and result of the following:-

Roll No. Name Marks

S1 S2 S3

1 A 80 90 100

2 B 60 70 20

3 C 90 80 10

a) For pass, every subject should be 40 or above marks.

b) For fail, any one subject be less than 40.

Ans

To calculate the total, average, and result of each student, we can follow these steps:

1. Calculate the total marks for each student:

* Student 1: S1 = 80, S2 = 90, S3 = 100 => Total = 80 + 90 + 100 = 270

* Student 2: S1 = 60, S2 = 70, S3 = 20 => Total = 60 + 70 + 20 = 150


* Student 3: S1 = 90, S2 = 80, S3 = 10 => Total = 90 + 80 + 10 = 180

2. Calculate the average marks for each student:

* Student 1: Average = Total / Number of subjects => Average = 270 / 3 = 90

* Student 2: Average = Total / Number of subjects => Average = 150 / 3 = 50

* Student 3: Average = Total / Number of subjects => Average = 180 / 3 = 60

3. Determine the result of each student based on the conditions:

* For pass, every subject should be at least 40 or above.

* For fail, any one subject should be less than 40.

Results:

* Student 1: Total=270, Average=90. All subjects are above 40, so the result is

**PASS**.

* Student 2: Total=150, Average=50. One subject (S3) is less than 40, so the result is

**FAIL**.

* Student 3: Total=180, Average=60. All subjects are above or equal to 40, so the result

is **PASS**.

The results are:

| Roll No. | Name | Total | Average | Result |

| --- | --- | --- | --- | --- |


| 1 | A | 270 | 90 | PASS |

| 2 | B | 150 | 50 | FAIL |

| 3 | C | 180 | 60 | PASS |

Note that student B has failed because one of their subjects (S3) has a mark below 40.

Practical Question-4

Prepare a payroll with the following:-

Emp ID E.Name Basic

101 A 1000

102 B 2000

103 C 3000

104 D 4000

105 E 5000

a) DA is 50% of basic

b) HRA is basic + DA

c) Gross pay = Basic+DA+HRA

d) PF is 12% of basic+DA

e) ESI is 5% of basic

f) Net pay = Gross-PF-ESI

Here's the payroll calculation:


**Employee Information**

| Emp ID | E.Name | Basic |

| --- | --- | --- |

| 101 | A | 1000 |

| 102 | B | 2000 |

| 103 | C | 3000 |

| 104 | D | 4000 |

| 105 | E | 5000 |

**DA Calculation**

* DA is 50% of basic:

+ Emp ID 101: DA = 1000 * 0.50 = 500

+ Emp ID 102: DA = 2000 * 0.50 = 1000

+ Emp ID 103: DA = 3000 * 0.50 = 1500

+ Emp ID 104: DA = 4000 * 0.50 = 2000

+ Emp ID 105: DA = 5000 * 0.50 = 2500

**HRA Calculation**
* HRA is basic + DA:

+ Emp ID 101: HRA = 1000 + 500 = 1500

+ Emp ID 102: HRA = 2000 + 1000 = 3000

+ Emp ID 103: HRA = 3000 + 1500 = 4500

+ Emp ID 104: HRA = 4000 + 2000 = 6000

+ Emp ID 105: HRA = 5000 + 2500 = 7500

**Gross Pay Calculation**

* Gross pay is basic + DA + HRA:

+ Emp ID 101: Gross pay = 1000 + 500 + 1500 = 3000

+ Emp ID 102: Gross pay = 2000 + 1000 + 3000 = 6000

+ Emp ID 103: Gross pay = 3000 + 1500 + 4500 =900

+ Emp ID104: Gross pay =40000 +20000 +60000=120000

+ Emp ID105: Gross pay=50000 +25000 +75000=150000

**PF Calculation**

* PF is12% of basic+DA:

+ Emp ID101: PF=1000125=125

+ Emp ID102: PF=2000125=250

+ Emp ID103: PF=3000125=375


+ Emp ID104: PF=4000125=500

+ Emp ID105: PF=5000125=625

**ESI Calculation**

* ESI is5% of basic:

+ Emp ID101: ESI=10005%=50

+ Emp ID102: ESI=20005%=100

+ Emp ID103: ESI=30005%=150

+ Emp ID104: ESI=40005%=200

+ Emp ID105: ESI=50005%=250

**Net Pay Calculation**

* Net pay is gross pay - PF - ESI:

+ Emp ID101: Net pay=300025125-50=2875

+ Emp ID102: Net pay=600025025-100-250-350-550-700-750-800850-900950-

10005001000-11005005005100502501005001500150

Practical Question-5

Create a student information table with 5 records with your own data i.e. Roll no., Name,

Phone No., Address, DOB. Sort the table on Roll No and then by Name.
Ans.

Here is the student information table with 5 records:

| Roll No | Name | Phone No. | Address | DOB |

| --- | --- | --- | --- | --- |

| 101 | Rohan Patel | 9876543210 | Ahmedabad, Gujarat | 05/07/2002 |

| 103 | Aarav Shah | 7894561234 | Mumbai, Maharashtra | 10/08/2001 |

| 102 | Karan Goyal | 9988776655 | Delhi, Delhi | 25/06/2003 |

| 104 | Arjun Kumar | 9234567890 | Chennai, Tamil Nadu | 15/09/2002 |

| 105 | Sushant Singh | 7418512469 | Bangalore, Karnataka | 20/01/2004 |

To sort the table on Roll No and then by Name, I will rearrange the rows as follows:

| Roll No | Name | Phone No. | Address | DOB |

| --- | --- | --- | --- | --- |

| 101 | Rohan Patel | 9876543210 | Ahmedabad, Gujarat | 05/07/2002 |

| 102 | Karan Goyal | 9988776655 | Delhi, Delhi | 25/06/2003 |

| 103 | Aarav Shah | 7894561234 | Mumbai, Maharashtra | 10/08/2001 |

| 104 | Arjun Kumar | 9234567890 | Chennai, Tamil Nadu | 15/09/2002 |

| 105 | Sushant Singh | 7418512469 | Bangalore, Karnataka | 20/01/2004

You might also like