Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
In excel one column name is there like

JERIPOTHULA SHANKER BABU - TMR - Karimnagar 2

i want JERIPOTHULA SHANKER BABU before first hyphen symbol(-)

give me the excel formula to select like that
Posted
Comments
Richard MacCutchan 21-Feb-15 5:38am    
Use Excel help to learn about how to use all the string formulas.

1 solution

Not sure what this has to do with JOIN or WHERE but if you're looking for the Excel formula, then perhaps something like:
=TRIM(LEFT(A1;FIND("-";A1)-1))
 
Share this answer
 
Comments
Member 11337367 21-Feb-15 5:24am    
error throwing
Wendelius 21-Feb-15 5:28am    
If it throws an error when you put it in Excel, try your local separator. Mine is semicolon (;) but perhaps you have comma (,) or something else. So with comma the formula would be

=TRIM(LEFT(A1,FIND("-",A1)-1))
Member 11337367 21-Feb-15 5:24am    
I want in excel
Kuthuparakkal 21-Feb-15 16:04pm    
Ask Microsoft
Kuthuparakkal 21-Feb-15 16:04pm    
+5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900