0% found this document useful (0 votes)
30 views

Excel IF Function: Time Sheet

The IF function in Excel allows users to perform logical tests and return different values depending on whether the test returns TRUE or FALSE. It can test a single condition or nest multiple IF functions to test multiple conditions. The function syntax includes the logical test, the value returned if TRUE, and the value returned if FALSE. An example shows using IF to return "Pass" or "Fail" based on whether a test score is above or below 70.

Uploaded by

Jaysie Fernandez
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)
30 views

Excel IF Function: Time Sheet

The IF function in Excel allows users to perform logical tests and return different values depending on whether the test returns TRUE or FALSE. It can test a single condition or nest multiple IF functions to test multiple conditions. The function syntax includes the logical test, the value returned if TRUE, and the value returned if FALSE. An example shows using IF to return "Pass" or "Fail" based on whether a test score is above or below 70.

Uploaded by

Jaysie Fernandez
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/ 4

Excel IF Function

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.

2. Select the cells containing the times.


3. Right click, click Format Cells, and select the right Time format. Use the circled
format for cell K12, K13, K14.

4. To automatically calculate the hours worked each day, the total hours and the
overtime hours, use the formulas below.

You might also like