Forum Discussion
Anonymous
6 years agoNot applicable
Writing IF Statement Formula
Hi All, I have a column that contains (formated as time) minutes. I am trying to writie an If statement like this: If (column that contains minutes) is less than 30 minutes, then "YES" otherwise ...
- 6 years ago
Below should help to convert hour to minutes and compare in IF statement
IF( HOUR(Table1[Column1]) * 60 + MINUTE (Table1[Column1]) <=30,"Yes", "No")
Anonymous
6 years agoNot applicable
The minutes column looks like this example 0:14,1:05, etc.
This is how I tried writing the formula: If(Column name<=("0:30"), "Yes", "No")).
Hope this explains it clearly.
Thanks
SethuPower
6 years agoFrequent Visitor
Below should help to convert hour to minutes and compare in IF statement
IF( HOUR(Table1[Column1]) * 60 + MINUTE (Table1[Column1]) <=30,"Yes", "No")
- Anonymous6 years agoNot applicable
Hi,
I just used your suggested formula and it worked like magic.
Many thanks for the quick solution.
Regards
- SethuPower6 years agoFrequent Visitor
Pls mark this as a solution :smileyhappy: