saidhruv
Member
Dear All,
I have a string in one cell that has Company Name as well as Address together. It is required that Company Name and Address be separated in different cells. Now, the delimiter to what is the end of Company Name and what is the start of address varies almost always. Hence, currently what i do is, double click on the string where the company name ends and then click alt+enter. This gives me a delimiter Char(10). And in cell B and C i have written the following formula.
Cell B1: =LEFT(A1,(FIND(CHAR(10),A1,1)-1))
Cell C1: =MID(A1,SEARCH(CHAR(10),A1:A1),500)
e.g. here the company name ends at DIV and address starts from American.. Hence i click alt+enter after DIV in A1.. Hence having written the formula in B1 and C1 the output would be..
A1 = LELE LABORATORY DIV AMERICAN CMID CO"2101 Wason St., E.Cston, V 255Wsin"
B1 = LELE LABORATORY DIV
C1 = AMERICAN CMID CO"2101 Wason St., E.Cston, V 255Wsin"
Query: I have many many such rows. Can someone help me the fastest way to delimit with Char(10). What i do is, do a double click at DIV and thereby click alt enter. Instead of alt enter can something faster be done here?
Or, is there any other way out to differentiate company name and address. Pls remember, the delimiter always changes, hence formula/vba to search a delimiter is not an option.
Thanks!
I have a string in one cell that has Company Name as well as Address together. It is required that Company Name and Address be separated in different cells. Now, the delimiter to what is the end of Company Name and what is the start of address varies almost always. Hence, currently what i do is, double click on the string where the company name ends and then click alt+enter. This gives me a delimiter Char(10). And in cell B and C i have written the following formula.
Cell B1: =LEFT(A1,(FIND(CHAR(10),A1,1)-1))
Cell C1: =MID(A1,SEARCH(CHAR(10),A1:A1),500)
e.g. here the company name ends at DIV and address starts from American.. Hence i click alt+enter after DIV in A1.. Hence having written the formula in B1 and C1 the output would be..
A1 = LELE LABORATORY DIV AMERICAN CMID CO"2101 Wason St., E.Cston, V 255Wsin"
B1 = LELE LABORATORY DIV
C1 = AMERICAN CMID CO"2101 Wason St., E.Cston, V 255Wsin"
Query: I have many many such rows. Can someone help me the fastest way to delimit with Char(10). What i do is, do a double click at DIV and thereby click alt enter. Instead of alt enter can something faster be done here?
Or, is there any other way out to differentiate company name and address. Pls remember, the delimiter always changes, hence formula/vba to search a delimiter is not an option.
Thanks!
Attachments
Last edited: