B bharath Member Feb 14, 2014 #1 Hi, Here i am attaching a file Requirement is Mohan Das Karam Chand Gandhi Gujrath i want only MOhan Das Karam Chand Gandhi and one more Mohan Das K Delhi i Want on Mohan Das K Thank You. Attachments Names Split-1.xlsx 12.4 KB · Views: 13
Hi, Here i am attaching a file Requirement is Mohan Das Karam Chand Gandhi Gujrath i want only MOhan Das Karam Chand Gandhi and one more Mohan Das K Delhi i Want on Mohan Das K Thank You.
Debraj Excel Ninja Feb 14, 2014 #3 Hi Bharath, Try this.. in F2 =IFERROR(LEFT(E2,FIND("|",SUBSTITUTE(E2," ","|",LEN(E2)-LEN(SUBSTITUTE(E2," ",""))))),E2)
Hi Bharath, Try this.. in F2 =IFERROR(LEFT(E2,FIND("|",SUBSTITUTE(E2," ","|",LEN(E2)-LEN(SUBSTITUTE(E2," ",""))))),E2)
Hui Excel Ninja Staff member Feb 14, 2014 #4 Bharath try: =LEFT(E2,IF(LEN(E2)-LEN(SUBSTITUTE(E2," ",""))<=1,LEN(E2),FIND(CHAR(135),SUBSTITUTE(E2," ",CHAR(135),LEN(E2)-LEN(SUBSTITUTE(E2," ",""))))-1)) With inspiration from: http://chandoo.org/wp/2012/05/17/formula-forensic-no-021/ Last edited: Feb 14, 2014
Bharath try: =LEFT(E2,IF(LEN(E2)-LEN(SUBSTITUTE(E2," ",""))<=1,LEN(E2),FIND(CHAR(135),SUBSTITUTE(E2," ",CHAR(135),LEN(E2)-LEN(SUBSTITUTE(E2," ",""))))-1)) With inspiration from: http://chandoo.org/wp/2012/05/17/formula-forensic-no-021/
K kchiba Active Member Feb 14, 2014 #5 Hi try this: =LEFT(E2,FIND("~",SUBSTITUTE(E2," ","~",LEN(E2)-LEN(SUBSTITUTE(E2," ","")))))
B bharath Member Feb 14, 2014 #6 Debraj said: Hi Bharath, Try this.. in F2 =IFERROR(LEFT(E2,FIND("|",SUBSTITUTE(E2," ","|",LEN(E2)-LEN(SUBSTITUTE(E2," ",""))))),E2) Click to expand... thanks a lot
Debraj said: Hi Bharath, Try this.. in F2 =IFERROR(LEFT(E2,FIND("|",SUBSTITUTE(E2," ","|",LEN(E2)-LEN(SUBSTITUTE(E2," ",""))))),E2) Click to expand... thanks a lot