Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Try this: For text in A1 B1: =IF(COUNTIF(A1,"*-*"),LEFT(A1,FIND("-",A1)-1),A1) If the text in A1 contains a dash (-), the formula takes the characters to the left of the dash. Otherwise, it takes all of the text. Does that help? Regards, Ron -- Ron Coderre ------------------------------------------------------------------------ Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419 View this thread: http://www.excelforum.com/showthread...hreadid=516304 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I find and replace the " | Excel Discussion (Misc queries) | |||
Find and Replace | Excel Worksheet Functions | |||
find and replace in workbooks | New Users to Excel | |||
Problem with Find and Replace | Excel Worksheet Functions | |||
find and replace path name in Excel cells containing hyperlink | Excel Discussion (Misc queries) |