The formula for displaying absenteeism coming earlier in minutes?

itgldmrt

New Member
Joined
Sep 26, 2023
Messages
8
Office Version
  1. 2021
  2. 2019
  3. 2016
  4. 2013
  5. 2010
  6. 2007
Platform
  1. Windows
I have employee attendance data with a tardiness formula in minutes, but I was assigned to create a formula for employees who arrive early in minutes.
The following is the formula for employee late attendance that I created:
Excel Formula:
=IF(RUMUS!F10>'ABSENSI DATANG TELAT'!$B$3,RUMUS!F10-'ABSENSI DATANG TELAT'!$B$3,0)
1695703561959.png


I've tried reversing the formula from ">" to "<" but it doesn't work. Do you have a solution?
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Did you reverse the last two values in the formula as well as reversing the "<"? Like this:
Excel Formula:
=IF(RUMUS!F10<'ABSENSI DATANG TELAT'!$B$3,'ABSENSI DATANG TELAT'!$B$3-RUMUS!F10,0)
 
Upvote 0
Did you reverse the last two values in the formula as well as reversing the "<"? Like this:
Excel Formula:
=IF(RUMUS!F10<'ABSENSI DATANG TELAT'!$B$3,'ABSENSI DATANG TELAT'!$B$3-RUMUS!F10,0)
Thanks, it works. But if the time in attendance is empty then the time appears to be 8:30 which is $B$3. I want if the absence is empty then that column remains empty.
1695982658950.png
 
Upvote 0
If "time in attendance" is F10, then you could try the following:
Excel Formula:
=IF(RUMUS!F10<>"",IF(RUMUS!F10<'ABSENSI DATANG TELAT'!$B$3,'ABSENSI DATANG TELAT'!$B$3-RUMUS!F10,0),"")
 
Upvote 1
Solution
If "time in attendance" is F10, then you could try the following:
Excel Formula:
=IF(RUMUS!F10<>"",IF(RUMUS!F10<'ABSENSI DATANG TELAT'!$B$3,'ABSENSI DATANG TELAT'!$B$3-RUMUS!F10,0),"")
Thank you so much @kevin9999 it works perfectly. You're a master (y)
 
Upvote 0

Forum statistics

Threads
1,215,334
Messages
6,124,319
Members
449,153
Latest member
JazzSingerNL

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top