Task 4. 2ndjidoemdniddmnd
Task 4. 2ndjidoemdniddmnd
Task 2: Calculating GPA -Features to be covered:- Cell Referencing, Formulae in excel – average, std.
deviation, Charts, Renaming and Inserting worksheets, Hyper linking, Count function,
LOOKUP/VLOOKUP.
Cell reference refers to a cell or a range of cells in a worksheet that can be used in a formula. Cell references are
used while creating excel worksheets and writing formulas.
There are three types of Cell References:
Relative
Absolute
Mixed
Relative Reference:
When you enter a cell reference or range in a
Select cell D2, click on the lower right corner of cell D2 and drag it down
to cell D6.
Absolute Reference:
When we copy and paste any formula in the cell to other locations, it cause cell references to change. But Not in
case when we use Absolute Reference. An absolute reference is a cell reference that don't change when an
Formulae in excel:
Average:
Standard Deviation:
1. Syntax: =STDEV(number1,
[number2], ...)
2. Example: If your numbers are in cells A1 to A10, you can enter =STDEV(A1:A10) in a different cell to
calculate the standard deviation of those numbers.
Syntax: =STDEV(number1, *number2+, ...)
Example: If your numbers are in cells A1 to A10, you can enter =STDEV(A1:A10) in a different cell to calculate the
standard deviation of those numbers.
Using STDEV.S Function:
Starting from Excel 2010, a specific function STDEV.S is available to calculate the sample standard deviation. It's
similar to STDEV but explicitly treats the data as a sample rather than the entire population.
1. Syntax: =STDEV.S(number1, *number2+, ...)
2. Example: Similar to STDEV, if your numbers are in cells A1 to A10, you can enter =STDEV.S(A1:A10) in a
different cell to calculate the sample standard deviation.
Remember, the STDEV function calculates the standard deviation for a population, while STDEV.S calculates it for a
sample of the population.
Charts:
Steps to Create a Chart:
1. Select Data:
Highlight the data you want to include in the chart. This could be in columns or rows.
2. Insert Chart:
Go to the "Insert" tab on the Excel ribbon.
Choose the type of chart you want (e.g., column, bar, line, pie) from the "Charts" group.
Click on the desired chart type.
3. Customize the Chart:
Once the chart is inserted, you can customize it further.
Click on elements within the chart to edit them (like titles, labels, axis, etc.).
Use the "Chart Tools" contextual tabs in the ribbon to access specific formatting options.
4. Change Chart Type:
If you want to change the chart type later, click on the chart and then go to the "Design" tab.
Click on "Change Chart Type" to select a different chart style without losing your data.
5. Move or Resize the Chart:
Click and drag the chart to reposition it within the worksheet.
To resize, click and drag the chart's sizing handles.
6. Save or Share the Chart:
Save the Excel file to retain the chart.
Copy the chart and paste it into other documents or presentations.
Hyper linking:
Hyperlinking in Microsoft Excel allows you to create clickable links to other locations, such as websites, files, other
sheets within the same workbook, or even specific cells.
Steps to Create a Hyperlink:
1. Link to a Website:
Select the cell where you want to insert the hyperlink.
Go to the "Insert" tab on the Excel ribbon.
Click on "Link" or "Hyperlink" (the text may vary depending on your Excel version).
In the dialog box that appears, enter the URL in the "Address" or "Link to" field.
Click "OK" to create the hyperlink.
2. Link to a File:
Follow the same steps as above but browse for the file by clicking on "Existing File or Web Page" in
the "Link" dialog box.
Navigate to the file location, select it, and click "OK."
3. Link to Another Sheet within the Same Workbook:
Select the cell where you want to create the link.
Go to the "Insert" tab and click on "Link" or "Hyperlink."
In the dialog box, select "Place in This Document."
Choose the sheet you want to link to from the list of available sheets.
If you want to link to a specific cell, select it in the "Type in the cell reference" field.
Click "OK."
4. Email Address Link:
Similarly, you can create a hyperlink to an email address.
Select the cell, go to "Insert," and choose "Link."
In the dialog box, select "Email Address" and enter the email address.
Click "OK."
Count function:
In Excel, the COUNT function is used to count the number of cells within a range that contains numbers. It counts
cells that contain numbers and excludes cells that are blank or contain text, errors, or logical values.
Syntax: =COUNT(value1, *value2+, ...)
value1, value2, etc.: The arguments represent the range of cells or values that you want to count.
Example Usage:
Counting Numbers in a Range:
To count the number of numeric values in cells A1 to A10, you would use: =COUNT(A1:A10).
This formula will return the count of cells in the specified range that contain numbers.
Combining Multiple Ranges:
You can also combine multiple ranges or individual cells within the COUNT function. For example:
=COUNT(A1:A10, C1:C10, E1:E10).
This counts the total number of numeric values in the specified ranges (A1:A10, C1:C10, E1:E10).
LOOKUP/VLOOKUP:
Certainly! Both LOOKUP and VLOOKUP functions in Excel are used to search for a value in a range or table and
return a corresponding value from the same position in another column.
Syntax:
=VLOOKUP(lookup_value, table_array, col_index_num, *range_lookup+)
lookup_value: The value you want to look up.
table_array: The range of cells that contains the data you want to search.
col_index_num: The column number in the table_array from which the matching value should be
returned.
range_lookup: *Optional+ A logical value that indicates whether to perform an approximate (TRUE or
omitted) or exact match (FALSE).
Example:
=VLOOKUP(A2, $B$2:$D$100, 3, FALSE)
Searches for the value in cell A2 within the range B2:D100 and returns the value from the third column (D)
of the matching row.
LOOKUP Function:
Syntax:
scssCopy code
=LOOKUP(lookup_value, lookup_vector, result_vector)
lookup_value: The value you want to look up.
lookup_vector: The range of cells containing the search values.
result_vector: The range of cells containing the values to be returned.
Example:
=LOOKUP(A2, $B$2:$B$100, $D$2:$D$100)
Searches for the value in cell A2 within the range B2:B100 and returns the corresponding value from the
range D2:D100.
Key Differences:
1. Column Requirement:
VLOOKUP requires the search value to be in the first column of the specified range.
LOOKUP doesn’t have this restriction; however, it needs the data to be sorted in ascending order
for an approximate match.
2. Approximate vs. Exact Match:
VLOOKUP can perform both approximate and exact matches.
LOOKUP performs an approximate match by default unless the data is sorted in ascending order. In
that case, it performs an exact match.
Both functions are useful for retrieving information based on a given criterion. However, VLOOKUP is commonly
used for vertical lookup (searching down a column), while LOOKUP can be used more flexibly but with certain
constraints regarding data sorting.
Steps for calculating GPA using Excel :
Image 2