Thread: Find a value
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Alok Alok is offline
external usenet poster
 
Posts: 318
Default Find a value

If the number is in A1 then enter this formula in say B1

=IF(ISERROR(FIND("-",A1)),"",IF(FIND("-",A1),A1,""))

Alok

"Alex Martinez" wrote:


Hi,

I am using Excel 2002 and I am looking for a certain value in a column that
has a dash (-) in it for example AB97896-1. I want to copy only the cell
that contains this dash and copy it to another column. I tired using
"If(A1="*-*), A1, " ")" in column B1 but I get no results. Any tips will be
appreciated. Thank you.