Suppose in column A I have text of various lengths like the following
... A 1: ...
... B 3: ...
... F 9: ...
... D 1: ...
... C 2: ...
... A 4: ...
In column B I would like to display the numeric value before the ":" only if I find A, B, or C prior to the numeric value. D and F would fail.
The following formula works fine when searching for A only but how do I get this to find A, B, or C? I've tried multiple IF variations but can't get this to work.
=MATCH(TRUE,INDEX(ISNUMBER(SEARCH("A "&{1,2,3,4,5,6,7,8,9}&":",A2)),),0)
... A 1: ...
... B 3: ...
... F 9: ...
... D 1: ...
... C 2: ...
... A 4: ...
In column B I would like to display the numeric value before the ":" only if I find A, B, or C prior to the numeric value. D and F would fail.
The following formula works fine when searching for A only but how do I get this to find A, B, or C? I've tried multiple IF variations but can't get this to work.
=MATCH(TRUE,INDEX(ISNUMBER(SEARCH("A "&{1,2,3,4,5,6,7,8,9}&":",A2)),),0)