Are your calculated time values right- or left-aligned in their cells? If the latter, they are being returned as text, and not numeric, values. This can happen for a number of reasons; most commonly, you may have used the empty string value — that is, ‘""
’ — in an attempt to ensure the formula returned a blank value under some conditions. Unfortunately, if a formula can return different data types, Airtable returns everything as a text representation. Likewise, explicitly testing a variable against the empty string to test for a null value can also cause the field to return as text. In either case, the recommended solution is to reformat the formula to eliminate all references to the empty string. (For instance, rather than writing IF({X}!='', XDoThis])
, use the short-circuited version IF({X},>DoThis])
. Similarly, IF({X}='',
…)
can be replaced with IF(NOT({X}),
…)
.) Under some circumstances, it may be possible to force a conversion back to a numeric value by wrapping the formula in a VALUE()
function, but doing so would be unlikely to eliminate #ERROR!
responses completely.
If that’s not the case, give us a little more information about your failing formula, and I’ll back up and run it over again.
Are your calculated time values right- or left-aligned in their cells? If the latter, they are being returned as text, and not numeric, values. This can happen for a number of reasons; most commonly, you may have used the empty string value — that is, ‘""
’ — in an attempt to ensure the formula returned a blank value under some conditions. Unfortunately, if a formula can return different data types, Airtable returns everything as a text representation. Likewise, explicitly testing a variable against the empty string to test for a null value can also cause the field to return as text. In either case, the recommended solution is to reformat the formula to eliminate all references to the empty string. (For instance, rather than writing IF({X}!='', XDoThis])
, use the short-circuited version IF({X},>DoThis])
. Similarly, IF({X}='',
…)
can be replaced with IF(NOT({X}),
…)
.) Under some circumstances, it may be possible to force a conversion back to a numeric value by wrapping the formula in a VALUE()
function, but doing so would be unlikely to eliminate #ERROR!
responses completely.
If that’s not the case, give us a little more information about your failing formula, and I’ll back up and run it over again.
Thanks, that helped me solve the problem.