Comparing [m]:ss to integer minutes

Plasmech

New Member
Joined
Oct 26, 2021
Messages
44
Office Version
  1. 365
Platform
  1. Windows
I have a need to compare a cell that is formatted in [m]:ss to one that is formatted in integer minutes ("Number" with 0 Decimal places).

The comparative statement will be in an IF function.

What would the best way to go about this be?

Thanks for any help.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
try this:
Excel Formula:
=IF(INT(A2*(60*24))=C2,"Yes","No")


Book1
ABCDE
1Time in [h]:ssportion of dayminutessecondsCompare Minutes in time to minutes as integer.
251:210.035665121Yes
352:570.0367715257Yes
431:220.0217823122Yes
527:330.0191322733Yes
636:300.0253473630Yes
732:490.0227893249Yes
845:280.0315744528Yes
953:460.0373385346Yes
1033:400.023383340Yes
1140:280.0281024028Yes
1233:440.0234263344Yes
1356:200.039125620Yes
1426:070.018137267Yes
1524:410.0171412441Yes
1648:060.033403486Yes
Sheet1
Cell Formulas
RangeFormula
B2:B16B2=A2
C2:C16C2=INT(B2*(60*24))
D2:D16D2=MOD(B2*(60*24),1)*60
E2:E16E2=IF(INT(A2*(60*24))=C2,"Yes","No")
 
Last edited:
Upvote 0
Thanks. For the second time in less than a week, I am reminded that the fundamental time unit in Excel is the day.
I learn and relearn and am reminded of things nearly every day.

In this situation I think you still need to round down or use the INT function to get exact minutes per your requirement.
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,951
Members
449,095
Latest member
nmaske

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