I have a formula that works, but was wondering if there's a more efficient way of doing this.
The challenge: Trying to parse values like "30 Minutes" and "2 Hours" and "1.5" to a time value.
Formula that is working:
=IF(TYPE(E2)=1,E2,IF(IFERROR(FIND("MINU",UPPER(E2)),0) > 0,VALUE(LEFT(E2,FIND("MINU",UPPER(E2)) -1)) / 60,IF(IFERROR(FIND("HOUR",UPPER(E2)),0) > 0,VALUE(LEFT(E2,FIND("HOUR",UPPER(E2)) -1)),E2)))
This is kinda cludgy - looking for a more elegant way.
The challenge: Trying to parse values like "30 Minutes" and "2 Hours" and "1.5" to a time value.
Formula that is working:
=IF(TYPE(E2)=1,E2,IF(IFERROR(FIND("MINU",UPPER(E2)),0) > 0,VALUE(LEFT(E2,FIND("MINU",UPPER(E2)) -1)) / 60,IF(IFERROR(FIND("HOUR",UPPER(E2)),0) > 0,VALUE(LEFT(E2,FIND("HOUR",UPPER(E2)) -1)),E2)))
This is kinda cludgy - looking for a more elegant way.