Excel IF Function: Time Sheet
Excel IF Function: Time Sheet
Summary
The IF function can perform a logical test and return one value for a TRUE result,
and another for a FALSE result. For example, to "pass" scores above 70:
=IF(A1>70,"Pass","Fail"). More than one condition can be tested by nesting IF
functions. The IF function can be combined with logical functions like AND and
OR.
Purpose
Test for a specific condition
Return value
The values you supply for TRUE or FALSE
Syntax
=IF (logical_test, [value_if_true], [value_if_false])
Arguments
logical_test - A value or logical expression that can be evaluated as
TRUE or FALSE.
value_if_true - [optional] The value to return when logical_test
evaluates to TRUE.
value_if_false - [optional] The value to return when logical_test
evaluates to FALSE.
Usage notes
Use the IF function to test for or evaluate certain conditions, and then react
differently depending on whether the test was TRUE or FALSE.
For example, let's say you want to assign either "Pass" or "Fail" to students based
on a test score. In that case, you need to test the sore itself (for each student) and
then return either "Pass" or "Fail".
Time Sheet
This example teaches you how to create a simple timesheet calculator in Excel. Cells
that contain formulas are colored light yellow.
.
1. To automatically calculate the next 4 days and dates when you enter a start date, use
the formulas below.
4. To automatically calculate the hours worked each day, the total hours and the
overtime hours, use the formulas below.