I'm working in Excel 2007. I want to search through the text in column A and give a result in column B. Here's what's going on:
Col A:
AE-3452
4567
So if I search in Row 2, and the "-" is not found, I want to simply reproduce the contents of column A in column B. However, the formula for FIND gives me the "#VALUE!" whenever it can't find something. I tried:
=IF(FIND("-",A1)="#VALUE!","BAD","OK")
or
=IF(FIND("-",A1)=#VALUE!,"BAD","OK")
but I still get an error.
How can I "test" a cell to determine if there is a character in it, and if the character does not appear perform a certain calculation on it?
Thanks!!!
Thanks!!
Matt
Col A:
AE-3452
4567
So if I search in Row 2, and the "-" is not found, I want to simply reproduce the contents of column A in column B. However, the formula for FIND gives me the "#VALUE!" whenever it can't find something. I tried:
=IF(FIND("-",A1)="#VALUE!","BAD","OK")
or
=IF(FIND("-",A1)=#VALUE!,"BAD","OK")
but I still get an error.
How can I "test" a cell to determine if there is a character in it, and if the character does not appear perform a certain calculation on it?
Thanks!!!
Thanks!!
Matt