Skip to main content

Excel Formula: Assign points based on late time

doc calculate overtime pay 4

This tutorial provides a clear guide on how to use the IF function to assign points on late time in Excel.

If you want to follow along with this tutorial, please download the example spreadsheet.
sample

Generic formula:

IF(late_by_time<VALUE("0:05"),0,
IF(late_by_time <VALUE("0:15"),1,
IF(late_by_time <VALUE("0:30"),2,
IF(late_by_time <VALUE("0:60"),3,
IF(late_by_time <VALUE("4:00"),4,
5)))))

For better readability, here use line breaks to display the long formula.

Arguments

Late_by_time: the late time.

Return value

This formula returns the assign pointes based on late time.

How this formula work

doc assign points based on late time 2

Take instance, here is a list of point rules and time records, please use below formula:

=IF(D5<VALUE("0:05"),0,
IF(D5<VALUE("0:15"),1,
IF(D5<VALUE("0:30"),2,
IF(D5<VALUE("0:60"),3,
IF(D5<VALUE("4:00"),4,5)))))

Press Enter key, the related point has been displayed.
doc assign points based on late time 3

Then drag fill handle over the cells to apply this formula.
doc assign points based on late time 4

Explanation

IF function is used to test for specified conditions, then returns the corresponding values. Here, explain the formula with 5 parts:

IF(late_by_time<VALUE("0:05"),0, if the late time is less than 5 minutes, it returns 0.

IF(late_by_time <VALUE("0:15"),1, if the late time is less than 15 minutes but greater than or equal to 5 minutes, it returns 1.

IF(late_by_time <VALUE("0:30"),2, if the late time is less than 30 minutes but greater than or equal to 15 minutes, it returns 2.

IF(late_by_time <VALUE("0:60"),3, if the late time is less than 60 minutes but greater than or equal to 30 minutes, it returns 3.

IF(late_by_time <VALUE("4:00"),4, if the late time is less than 4 hours but greater than or equal to 60 minutes, it returns 4.

5))))) if the late time is greater than or equal to 4 hours, it returns 5.

Value function is used to convert text to number. Here it converts the text time to number.

Note

To calculate the late by time, please use this formula:

=IF(C5-B5<0,0,C5-B5)

If the calculation results are not in the time format, you can right click the calculation results and select Format Cells from the context menu. Then in the Format Cells dialog, enable Time in the Category list box, click to select the time format of 13:30, and click OK.


Relative Formulas

Relative Functions


The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions…
Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ...
Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List...
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

Description


Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.

Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
Rate this post:
0   Characters
Suggested Locations