Numeric value as a target for [mm]:ss

qwerty78

New Member
Joined
Jun 4, 2019
Messages
3
Hi

I'm trying to validate a result where the target is a numeric value but the result from calculation is minutes and seconds

example:

A1= 240 (target minutes)
A2= 195:23 (calculated value between two dates and times)
A3 = if(a2<=a1,"Met","Miss")

I understand the calculated value is really a serial number of time. How can my if statement work. Please
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hi
Welcome to the board

The time unit in excel is the day. This means that to convert a decimal minute value to excel time you have to divide it by 24 (hours) and by 60 (minutes)

Your formula would be

= if(a2<=a1/24/60,"Met","Miss")

Another way is to use the Time() function:

= if(a2<=TIME(0,a1,0),"Met","Miss")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,151
Members
453,021
Latest member
Justyna P

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