How to split the data? office 2003
How to split the data? office 2003
(OP)
How to split the data? office 2003
I have the excel data in the format "O##-alphanumeric character" in a single cell,
How can this be divided in to "O##" and "alphanumeric character", then placed in separate cells
Example: - Data format "O26-Roughing-operation-3" in one cell,
Requirement "O26" and "roughing operation-3" in separate cells
I have the excel data in the format "O##-alphanumeric character" in a single cell,
How can this be divided in to "O##" and "alphanumeric character", then placed in separate cells
Example: - Data format "O26-Roughing-operation-3" in one cell,
Requirement "O26" and "roughing operation-3" in separate cells





RE: How to split the data? office 2003
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: How to split the data? office 2003
Data format: - LHS-RHS. i.e. (Left hand side)(Hyphen)(Right hand side), important to note that, RHS may contain hyphens
The data should be split and displayed in separate columns, with respect to the first Hyphen, present in the data.
RE: How to split the data? office 2003
column B = REPLACE(A1,FIND("-",A1,1),10000,"")
column C = REPLACE(A1,1,FIND("-",A1,1),"")
This will put LHS in column B and RHS in column C. Should work as long as the first hyphen (left to right) is the hyphen seperating the 2 sides, and as long as the LHS is less than 10000 characters. Quick and dirty solution, but no VBA macro involved.
RE: How to split the data? office 2003
You can still use hyphen as the limiter, and simply use CONCATENATE to join together the left over RHS bits.
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: How to split the data? office 2003
Sorry IRstuff, it was my in efficiency in framing a proper question,
The RHS length varies, but I came to know, how fixed position approach works, thank you very much for your replies.