Custom colum formula help

TORPIDO

New Member
Joined
Aug 2, 2017
Messages
26
Hi

Im fairly new to power query and don't have any background on its formulas...

I have a time column "time" and want to have custom column "attendance" where it will see if "time" is above 07:30, it will return as Late.

Could you please provide the formula

Thanks
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
here's a formula to help compare to the time and return late
------------------
Book1
AB
1timeAttendance
27:30:00 AMon time
37:22:00 AMon time
46:45:00 AMon time
57:42:00 AMlate
68:36:00 AMlate
77:32:00 AMlate
87:30:01 AMlate
Sheet1
Cell Formulas
RangeFormula
B2:B8B2=IF(A2>=0.312511574074074,"late","on time")
 
Upvote 0
in PQ try
Power Query:
if Time.ToText([Column1])> "07:30:00" then "LAte" else "on time"
 
Upvote 0
column 1 being the column just containing time in hrs:min:sec e.g. 07:15:00
 
Upvote 0

Forum statistics

Threads
1,223,670
Messages
6,173,716
Members
452,528
Latest member
ThomasE

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