Excel time difference in minutes between date/time

Trebor8484

Board Regular
Joined
Oct 27, 2018
Messages
69
Office Version
  1. 2013
Platform
  1. Windows
Hi, hoping that someone can assist me with the below please.

This formula calculates the minutes between values in B2 and C2.

=(C2-B2)*1440

What I need to do is calculate if the date and time in C2 exceeds B2 by 16 minutes or more

Thanks
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hi like this or
Code:
=IF(TRUNC((B1-A1)*1440)>16,"Greater than 16","Less than 16")


'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Book1
ABC
110/3/2020 15:08:0010/3/2020 15:23:49Less than 16
215:49
315:49.12
Sheet1
Cell Formulas
RangeFormula
B1B1=NOW()
C1C1=IF(TRUNC((B1-A1)*1440)>16,"Greater than 16","Less than 16")
C2C2=TRUNC((B1-A1)*1440) &":"&ROUND(CONVERT((((B1-A1)*1440)-TRUNC((B1-A1)*1440)),"mn","sec"),0)
C3C3=TRUNC((B1-A1)*1440) &":"&ROUND(CONVERT((((B1-A1)*1440)-TRUNC((B1-A1)*1440)),"mn","sec"),2)

General mm:ss
VBA Code:
=TRUNC((B1-A1)*1440) &":"&ROUND(CONVERT((((B1-A1)*1440)-TRUNC((B1-A1)*1440)),"mn","sec"),0)

mm:ss,00
VBA Code:
=TRUNC((B1-A1)*1440) &":"&ROUND(CONVERT((((B1-A1)*1440)-TRUNC((B1-A1)*1440)),"mn","sec"),2)
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,835
Members
449,051
Latest member
excelquestion515

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