# Assigning Points based on Late Time

It is shown in this lesson how to utilize the IF function in Excel to allocate points based on the amount of time that has passed. If you intend to pursue along this guide, you may do so by downloading the template spreadsheet.

## Generic formula:

`=IF(C2<VALUE("0:2"),0,IF(C2<VALUE("0:35"),1,IF(C2<VALUE("0:45"),2,IF(C2<VALUE("1:00"),3,IF(C2<VALUE("3:00"),4,5)))))`

## Return value

This formula provides the number of points that have been assigned depending on the late time.

## How this formula work

For example, below is a list of point regulations and time records; kindly use the formula below to find the appropriate rule or record.

`=IF(C2<VALUE("0:2"),0,IF(C2<VALUE("0:35"),1,IF(C2<VALUE("0:45"),2,IF(C2<VALUE("1:00"),3,IF(C2<VALUE("3:00"),4,5)))))`

A pop-up with further information will appear if you press the Enter key.

To use this formula, just drag the fill handles over the cells.

## IF function is being used to evaluate for defined criteria and then returns the results that match those circumstances. Explain the formula in five parts, as follows:

`IF (late_by_time<VALUE ("0:2"),0,` It returns 0 if the late time is much less than 2 minutes. `IF (late_by_time <VALUE ("0:35"),1,` The function returns 1 if the late time is much less than 35 minutes but higher than or equivalent to 2 minutes. `IF (late_by_time <VALUE ("0:45"),2`, If the late time is even less than 45 minutes but higher than or equivalent to 35 mins, it returns 2. `IF (late_by_time <VALUE ("1:00"),3`, If the late time is even less than 60 minutes but higher than or equivalent to 45 mins, it returns 3. `IF (late_by_time <VALUE ("3:00"),4`, The result is 4 if the late time is less than 3 hours but larger than or equivalent to 60 minutes. 5))))) This function returns five if the late time is more than or equal to three hours.

When converting text to numbers, the value function is employed. It does this by converting the text time to a number.

### Related Functions

• Excel IF function
The Excel IF function perform a logical test to return one value if the condition is TRUE and return another value if the condition is FALSE. The IF function is a build-in function in Microsoft Excel and it is categorized as a Logical Function.The syntax of the IF function is as below:= IF (condition, [true_value], [false_value])….
• Excel VALUE function
The Excel VALUE function converts a text value that represents a number to a numeric value.The syntax of the VALUE function is as below:= VALUE  (text)…

Related Posts

Check Dates in chronological order

Assume you have a date list that has different date formats, as seen in the accompanying picture. In this instance, Excel's Sort function will fail to sort them appropriately. However, you may convert all various date formats to a particular ...

Check If a Cell is Blank or Empty

The article demonstrates how to check if a range of cells is blank or empty by ISBLANK and other functions to recognize empty cells in Excel and take appropriate action based on their status. There are several circumstances in which ...

Abbreviate Names Or Words in Excel

As an MS Excel user, you might have come across a task where you need to abbreviate different names or words, and there are also possibilities that you might have done this task manually by assuming that there isn't any ...

Extract or Filter on The Top N Values with Criteria

Suppose that you are in a situation where you need to filter out the top n values from the list having few values with specific criteria, or you can say that with a particular condition, and I am also pretty ...

Extract matching values From Two Lists

Suppose that you are working with two lists containing few values, and you want to extract the matching values from those two lists into another separate list. You might prefer to manually extract the matching values from the two lists, ...

Sidebar