0% found this document useful (0 votes)
7 views18 pages

Lab Record

Uploaded by

sha
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)
7 views18 pages

Lab Record

Uploaded by

sha
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/ 18

EX NO: 1 DESCRIPTIVE STATISTICS- MEASURES OF LOCATION

DATE:

AIM
To understand and perform descriptive statistics using MS-Excel
PROCEDURE:-
1. SUM

Formula: =SUM(A1:A5)

The SUM formula does exactly what you would expect. It allows you to add 2 or more
numbers together. You can use cell references as well in this formula.

2. AVERAGE
The Excel AVERAGE function does exactly what its name suggests, i.e., finds an average,
or arithmetic mean, of numbers. Its syntax is like SUM's:
=AVERAGE (A1:A5)
3. COUNT

Formula: =COUNT(A1:A5)

The count formula counts the number of cells in a range that have numbers in them.This
formula only works with numbers though , It only counts the cells where there are numbers.

4. COUNTA

Formula: =COUNTA(A1:A5)

Counts the number of non-empty cells in a range. It will count cells that have numbers
and/or any other characters in them. The COUNTA Formula works with all data types. It
counts the number of non-empty cells no matter the data type.
5. SUMIF, COUNTIF, AVERAGEIF

Formulas: =SUMIF(range, criteria, sum_range), =COUNTIF(range, criteria),


=AVERAGEIF(range, criteria, average_range)

These formulas all do their respective functions (SUM, COUNT, AVERAGE) IF the criteria
are met. There are also the formulas: SUMIFS, COUNTIFS, AVERAGEIFS where they will
do their respective functions based on multiple criteria you give the formula.

STANDARD DEVIATION

To calculate the average number of cells that contain numbers, use the STDEV function.
STDEV.P is for population standard deviation and STDEV.S for sample standard deviation.

RESULT

Thus descriptive statistics has been performed and understood successfully.


EX NO : 2 ANALYSING FREQUENCY DISTRIBUTION USING EXCEL
DATE:

AIM
To analyze frequency distribution using MS-Excel
PROCEDURE
1. First, enter the bin numbers (upper levels) in the range C4:C8.

2. Select the range D4:D9 (extra cell), enter the FREQUENCY function (without the curly
braces) and finish by pressing CTRL + SHIFT + ENTER.

=FREQUENCY (table array, bin array)

3. Hide the column with the bin numbers (upper levels) and insert a column with proper bin
labels.
4. You can also use the Analysis Toolpak to create a histogram.
5. Change the bin numbers. Select the range D4:D9 (no extra cell), enter the FREQUENCY
function shown below (without the curly braces) and finish by pressing CTRL + SHIFT +
ENTER.

RESULT
Analyzing of frequency distribution is done successfully.

EX NO: 3 BASIC STRING FUNCTIONS


DATE:

AIM
To understand and perform basic string functions using MS-Excel
PROCEDURE:

S.N Function Name Syntax Description


o

1 CONCATENATE =CONCATENATE( text1, [text2], ... ) Joins together a series of


supplied text strings or other
values, into one combined text
string

2 LEN =LEN (text) Get the length of text.

3 FIND =FIND (find_text, within_text, Get the location of text in a


[start_num]) string(with case sensitivity &
wildcards not allowed)

4 REPLACE =REPLACE (old_text, start_num, Replace text based on location


num_chars, new_text)

5 SEARCH =SEARCH (find_text, within_text, Get the location of text in a


[start_num]) string(without case sensitivity
and wildcards allowed)

6 SUBSTITUTE =SUBSTITUTE (text, old_text, Replace text based on content


new_text, [instance])

7 EXACT =EXACT (text1, text2) Compare two text strings

8 UPPER =UPPER (text) Convert text to upper case

9 LOWER =UPPER (text) Convert text to lower case


CONCATENATE
Combine First name and Last name in to one column called Full name with space b/w the
names.

Procedure:

Step 1: Create one column called Full name in Cell D3

Step 2: Enter the following formula =CONCATENATE(B4," ",C4) in the Cell D6 and Press
Enter

Step 3: Go to the end of Cell D4 and drag the formula

FIND

Scenario: Find the text “the” in Within the Column using FIND Function

There are 2 strings with the text “the” in the Within Column. One with lower case and
another with T letter as capital

Procedure:

Step 1: Enter the following formula in the Cell D7 and Press Enter=FIND(B7,C7)

Note: Start number parameter is optional and defaults to 1. The value 12 is returned which is
the position of the string “the” in the text C7

REPLACE

Scenario: Replace the text “the” with the “My” text using REPLACE Function

Note: - There are 2 strings with the text “the” in the Within Column. One with lower case and
another with T letter as capital

Procedure:

Step 1: Enter the following formula in the Cell D7 and Press Enter

=REPLACE(C5,1,3,B5)

The above formula will replace the first “The” with “My” text because starting number as we
mentioned in the formula
SUBSTITUTE
Formatting the address (Substituting the comma with new line character) using
SUBSTITUTE Function

Enter the following formula in the Cell C7 and Press Enter

=SUBSTITUTE(B7,",", CHAR(10))

The Commas are removed and substituted with new line character using Char(10) Function

EXACT

Check whether Text1 and Text2 are equal. If equal, return TRUE. If not equal, return FALSE

Procedure:

Enter the following formula in the Cell E7 and Press Enter

=EXACT (B4, C4)

Text1 and Text2 are equal, so Cell D4 will become TRUE

Click and drag the end of Cell D4 to D5.

VLOOKUP:

If you want to find the April Sales for the particular product, we can use vlookup function

Note: -1. If the data is vertical, use vlookup

2. If the data is horizontal, use hlookup

3. Make sure that your dataset range and formula range must be same

Procedure:

Step 1: Type the Column Name “Product Name” in Cell L5 and Column Name “April” in
Cell M5

Step 2: Enter the following formula in the Cell M6 and Press Enter

=VLOOKUP(L6,$C$3:$I$9,5,FALSE)

Step 3: If you enter Product1 in Cell L6, Excel will calculate the corresponding April Sales
for that product
Step 4: If you change the product name in cell L6 (Eg: Product3 or Product5), the
corresponding April Sales values ($14.00 or $402.00) is searched using vlookup formula
HLOOKUP

If you want to find the April Sales for the particular product, we can use hlookup function

Note: -1. If the data is vertical, use vlookup

2. If the data is horizontal, use hlookup

3. Make sure that your dataset range and formula range must be same

Procedure:

Step 1: Type the Column Name “Product Name” in Cell L5 and Column Name “April” in
Cell L6

Step 2: Enter the following formula in the Cell M6 and Press Enter

=HLOOKUP(M5,$C$5:$I$11,5,FALSE)

Step 3: If you enter Product1 in Cell M5, Excel will calculate the corresponding April Sales
for that product

Step 4: If you change the product name in cell M5 (Eg: Product3 or Product5), the
corresponding April Sales values ($14.00 or $402.00) is searched using hlookup formula.

RESULT

Thus the basic sting functions is understood and performed successfully.


EX NO:4 MEASURES OF VARIABILITY
DATE :
Aim
To compute measures of variability using MS-Excel

Procedure
1. The sample variance is calculated in Excel using the worksheet function VAR. The
population variance is calculated in Excel using the function VARP.
2. In Excel 2010/2013 the alternative forms of these functions are VAR.S and VAR.P.
3. To calculate variance for sample, the formula is =VAR.S (A3:A8)
4. To calculate variance for population, the formula is=VAR.P (A3:A8)
Result
Measures of variability is done successfully.
EX NO:5 MEASURES OF ASSOCIATION BETWEEN TWO VARIABLES
DATE:

Aim
To compute measures of association between two variables using Ms-Excel.
Procedure
1. Measures of association between two variables can be calculated through Scatter Plot,
Covariance and Correlation
2.To Insert Scatter plot for the given data go to insert menu and click scatter chart after
selecting the data.
3.To compute Covariance, COVARIANCE.S function will be used along with arrays. For the
given data the formula will be =COVARIANCE.S(A4:A17,B4:B17)as the data is presented
in Column A and B from 4th row to 17th row.
4. To compute Correlation , CORREL function will be used. For the given data the formula
will be= CORREL((A4:A17,B4:B17)
Result
Thus measures of association between two variables is computed successfully.

You might also like