Excel Date Calculation Function

Thasthahir

New Member
Joined
Mar 6, 2018
Messages
9
Hi There,

I have Some times ("hh:mm:ss") format in A column. In B column Have added a formula. It means i have added 8 hours based on A column data. B Column Formula : (=A2+time(8,0,0)).

Requirement:

A column time will not cross after 8 hours. If it will cross After * hours Column should be update Time Crossed commend.

IF not C column will show remaining time compare to current Time.

If current system time
22:00:00

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Time[/TD]
[TD]+8 Hours[/TD]
[TD]Remaining time[/TD]
[/TR]
[TR]
[TD]13:05:20[/TD]
[TD]21:05:20[/TD]
[TD]00:54:40[/TD]
[/TR]
[TR]
[TD]15:00:00[/TD]
[TD]23:00:00[/TD]
[TD]Time Crossed[/TD]
[/TR]
[TR]
[TD]10:00:00[/TD]
[TD]18:00:00[/TD]
[TD]Time Crossed[/TD]
[/TR]
[TR]
[TD]12:00:00[/TD]
[TD]20:00:00[/TD]
[TD]02:00:00[/TD]
[/TR]
</tbody>[/TABLE]

Regards,
Mohideen Thasthahir
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Why does your 3rd row return "Time Crossed" rather than 04:00:00?

Based on your description, try his:
PHP:
=IF(HOUR(B2)<22,TIME(22,0,0)-B2,"Time Crossed")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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