You are on page 1of 25

Specialized Functions Using Date,

Logical, Lookup, Database


• To manipulate data using date, logical, lookup, database functions
Objectives
• Use Date Functions
• Create a Nested Logical Function
• Use Advanced Lookup Functions
• Apply Advanced Filtering
• Manipulate Data with Database Functions
Objective 1: Use Date Functions
Skills:
• Use the YEARFRAC Function
• Use the DAYS Function
• Use the DATE, YEAR, and MONTH Functions
• Use Other Date Functions
Use Date Functions (1 of 2)
• Excel Time & Date functions:
– DAYS—calculates the number of days between two
dates
=DAYS(end_date,start_date)
– YEARFRAC—calculates the fraction of a year between
two dates
=YEARFRAC(start_date,end_date)
Use Date Functions (2 of 2)
• Excel Time & Date functions:
– DAY—displays the day (1–31)
=DAY(serial_number)
– MONTH—displays the month (1–12)
=MONTH(serial_number)
– YEAR—displays the year (2018)
=YEAR(serial_number)
Objective 2: Create a Nested Logical
Function
Skills:
• Create a Nested IF Function
• Use the AND Function
• Nest an AND Function
• Nest an OR or NOT Function
Create a Nested Logical Function (1 of 5)

Nested IF Function Results


Create a Nested Logical Function (2 of 5)
Create a Nested Logical Function (3 of 5)

Nested IF Function
Create a Nested Logical Function (4 of 5)
• Nesting AND, OR, or NOT functions
– AND—evaluates to TRUE if all conditions are true
=AND(logical1,logical2, logical3,…)
– OR—evaluates to TRUE if any of the conditions are
true
=OR(logical1,logical2, logical3,…)
– NOT—reverses the truth of a logical test
=NOT(logical)
Create a Nested Logical Function (5 of 5)
AND Truth Table

AND Function
OR Truth Table

AND vs. OR
Objective 3: Use Advanced Lookup
Functions
Skills:
• Create a Lookup Field
• Use the INDEX Function
• Use the MATCH Function
Use Advanced Lookup Functions (1 of 2)
• Additional lookup functions:
– INDEX—returns a value at the intersection of a
specified row and column
=INDEX(array,row_num,[column_num])
Use Advanced Lookup Functions (2 of 2)
• Additional lookup functions:
– MATCH—searches through a range for a specific value
and returns the relative position
=MATCH(lookup_value,lookup_array,[match_type])
Objective 4: Apply Advanced Filtering
Skills:
• Create Criteria and Output Ranges
• Apply an Advanced Filter
Apply Advanced Filtering (1 of 3)
Apply Advanced Filtering (2 of 3)
Apply Advanced Filtering (3 of 3)

Advanced Filter Dialog Box


Objective 5: Manipulate Data with Database
Functions
Skills:
• Use the DSUM Function
• Use the DAVERAGE Function
• Use the DMIN Function
• Use the DMAX Function
• Use the DCOUNT Function
Manipulate Data with Database
Functions (1 of 4)
• Excel Database function arguments:
– Database—the entire dataset
– Field—the column that contains the values operated on
by the function
– Criteria—defines the conditions to be met by the
function
Manipulate Data with Database
Functions (2 of 4)
• Excel Database functions:
– DSUM—adds the values that match specified conditions
=D SUM(database,field,criteria)
– D AVERAGE—determines the average of values that match
specified conditions
=D AVERAGE(database, field, criteria)
– DMAX—identifies the highest value that match specified
conditions
=DMAX(database, field, criteria)
Manipulate Data with Database
Functions (3 of 4)
• Excel Database functions:
– DMIN—identifies the lowest value that match specified
conditions
=DMIN(database,field,criteria)
– DCOUNT—counts the cells that contain numbers that
match specified conditions
=DCOUNT(database,field,criteria)
Manipulate Data with Database
Functions (4 of 4)
Summary
Additional Excel functions:
• Date, logical, and lookup:
– Date, DAY, MONTH, and YEAR
– IF, AND, OR, and NOT
– INDEX and MATCH
• Database:
– DSUM, DAVERAGE, DMIN & DMAX, and DCOUNT

You might also like