K
Kebbon
I recently had to compose a formula to determine whether the contents of
cell had either a DB or CR suffix (it was imported as text strings)
After a protracted struggle I came up with the following:
IF(ISERROR(SEARCH("CR",B46)),LEFT(B46,(SEARCH("DB",B46)-1)),(LEFT(B46,(SEARC
H("CR",B46)-1)*-1))
While I would welcome any refinements, I am particularly interested in
whether I actually needed to constantly repeat the SEARCH function. Could I
have performed the search of CR, for example and stored that result in a
variable that I could have recalled when needed, saving both typing time and
computer cycles?
cell had either a DB or CR suffix (it was imported as text strings)
After a protracted struggle I came up with the following:
IF(ISERROR(SEARCH("CR",B46)),LEFT(B46,(SEARCH("DB",B46)-1)),(LEFT(B46,(SEARC
H("CR",B46)-1)*-1))
While I would welcome any refinements, I am particularly interested in
whether I actually needed to constantly repeat the SEARCH function. Could I
have performed the search of CR, for example and stored that result in a
variable that I could have recalled when needed, saving both typing time and
computer cycles?