View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dennis dennis is offline
external usenet poster
 
Posts: 202
Default False Statement won't show

You are missing a closing bracket for your Left function

=IF(FIND("-",cell),LEFT(cell,FIND("-",cell)-1),cell)

"spiz via OfficeKB.com" wrote:

some of my data has - a, - b
i'm using this to pull out the hyphens, but if the statement is false, the
data will not return the original cell if the original cell does not contain
a "-"

=IF(FIND("-",cell),LEFT(cell,FIND("-",cell)-1,cell)

it is, however, pulling the info, minus the ending parts after the "-"
beautifully.
Any ideas?

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200806/1