Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

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 ...
  • SethuPower's avatar
    SethuPower
    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")