I have a column with AM/PM times set up as a single select drop-down list. In order to make this column sortable, I created a helper column that converts the AM/PM times to 24 hour times. The formula in the helper column is as follows:
=VALUE(IF(VALUE(LEFT([Requested upload time]@row, FIND(":", [Requested upload time]@row) - 1)) <> 12, VALUE(LEFT([Requested upload time]@row, FIND(":", [Requested upload time]@row) - 1)) + IF(CONTAINS("p", [Requested upload time]@row), 12), IF(CONTAINS("p", [Requested upload time]@row), 12, 0)) + MID([Requested upload time]@row, FIND(":", [Requested upload time]@row) + 1, 2))
This formula works great, but the AM/PM drop-down list also has an option for 'No Preference.' Currently, if this option is selected, the helper column shows #INVALID VALUE. How can I modify the formula so the helper column will show 'No Preference' rather than #INVALID VALUE?