0% found this document useful (0 votes)
27 views20 pages

2.session 3 5 (Uploaded)

This document discusses various date, time, and lookup functions in spreadsheet modelling including DATEVALUE, TODAY, MONTH, YEAR, IF, COUNT, SUMIF, AVERAGEIF, VLOOKUP, HLOOKUP, MATCH, INDEX, MAX, MIN, LARGE, SMALL, ROW, and COLUMN. Examples are provided to demonstrate counting records that meet certain criteria, summing values that meet criteria, looking up values, and finding maximum, minimum, and ranked values. Various examples of sample data tables are included to demonstrate how to use the functions to analyze and extract insights from the data.

Uploaded by

Tarun Imandi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views20 pages

2.session 3 5 (Uploaded)

This document discusses various date, time, and lookup functions in spreadsheet modelling including DATEVALUE, TODAY, MONTH, YEAR, IF, COUNT, SUMIF, AVERAGEIF, VLOOKUP, HLOOKUP, MATCH, INDEX, MAX, MIN, LARGE, SMALL, ROW, and COLUMN. Examples are provided to demonstrate counting records that meet certain criteria, summing values that meet criteria, looking up values, and finding maximum, minimum, and ranked values. Various examples of sample data tables are included to demonstrate how to use the functions to analyze and extract insights from the data.

Uploaded by

Tarun Imandi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 20

Spreadsheet Modelling

By
Prof. Rajhans Mishra
Date Function
Starting Date : 1 January, 1900
1 January, 1900 = 1
2 January, 1900 = 2
3 January, 1900 = 3
2 Digit year entry
Year entry < 30 ( twenty first century)
Year entry >= 30 ( twentieth century)
Today()
Date continued
DATEVALUE converts date into number
format
=DATEVALUE(01/01/1900)
DATE returns date
Time
The starting point is MIDNIGHT
Times is expressed as a fraction of 24 hours
from midnight
6 A.M. = 0.25
TIME returns time
TIMEVALUE returns value
= TIMEVALUE(12:00:00)
Now()- current Date and Time
Month /Year
Month () Returns a Month number [1-12]
Year() Returns Year
IF
Conditional statements
IFERROR : customize the error message
AND / OR
Multi IF ( alternatives)
COUNT
Count Function
COUNT counts the cells that contain
numbers in a range
COUNTA number of nonblank cells (numbers
& non numbers both)
COUNTBLANK- counts the blank cells
COUNTIF- count with condition
=COUNTIF(B4:B13, >7)
COUNTIFS count with multiple conditions
=COUNTIFS(B4:B13, A, C4:C13, >100)
Skeleton of table used for exercise

Log No. (1 -200)


Machine ( A, B, C, D, E)
Date ( 20/09/2004 to 20/03/2005)
Minutes ( 1, 2, 3, 4,5)
Exercise
How many times machine A is used
How many operations are done after 25 December,
2004
How many operations were less than 4 minutes
duration
No. of operation less than 4 minute duration
performed by machine B
Number of processes with period 5 minutes performed
after 24/10/2004
Number of processes with period 5 minutes performed
after 24/10/2004 and performed by machine B
SUMIF, AVERAGEIF, SUMIFS,
AVERAGEIFS
Similar to that COUNTIF and COUNTIFS
SUMIF(range, criteria, sum-range)
range: from which criteria has to be selected
sum-range: range in which addition has to be
performed

SUMIFS( sum-range, criteria range 1, criteria 1,


criteria range 2, criteria 2)
Skeleton of table used for exercise

Transaction No. (1 to 200)


Salesperson ( A, B, C, D, E)
Date ( 20/09/2004 to 20/03/2005)
Price( 100 to 500)
Units ( 10 to 100)
Product (mouse, pen drive, keyboard, bag,
screen cover)
Revenue = price * units
Exercise
total revenue of each sales person
How many units of pen-drive have been sold
How much revenue has been generated by
mouse
Average number of transaction of salesperson A
What is the revenue of mouse for the transaction
amount greater than 20000 done by B
Number of transactions of mouse for the
transaction amount greater than 20000 done by
B
SUMPRODUCT
Sum of the product values ( of two ranges)
Data Validation
Data Tab > Data Validation
Select the range
Between
Date
List
Offset function
returns a cell or range of cells that is a
specified number of rows and columns from a
cell or range of cells.
Offset(reference, rows, column, height, width)
Ctrl+ Shift+ Enter for array output
VLOOKUP
VLOOKUP(lookup value, table range, column
index, [range lookup])
[ ] optional False (exact match), True (approximate
match)
Table range : full table
Lookup is on first column
For approximate match : lookup range has to be
sorted in ascending order
Largest value which is less than or equal to lookup
value will be selected
Lookup will be on the first column
HLOOKUP
Horizontal variant of VLOOKUP
Lookup
Sorting of look up vector is required
Any vector can be used as lookup vector.
Match & Index Function
Index : Returns the entry of a Matrix for specified row
and column [col no. 0 all the col., row no. 0 all the
rows)
Match : Returns the occurrence of match
Match ( lookup value, look up array, [match type])
[type = 0] for unsorted (Exact Match)
[type =1 ] for sorted ascending
[type = -1] for sorted descending
Ascending -the highest value less than(or equal) the match
Descending - the smallest value greater(or equal) than
match
Max , Min
Max()- to find the max value
Min()- to Find the min value
Large()- to find nth largest value
Small() to find nth smallest value
Row()- to find the row number
Column()- to find the column number

You might also like