×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How to split the data? office 2003

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
 

RE: How to split the data? office 2003

The Data | Text to colums should work; it's been in Excel since at least 2000.  You can either choose delimited, or fixed position.

TTFN

FAQ731-376: Eng-Tips.com Forum Policies

RE: How to split the data? office 2003

(OP)
Sorry slight change in the question
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

For LHS-RHS in column A:
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

If your LHS is always the same length, then you can used the fixed position approach to easily split the data.

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

(OP)
Thank you very much, "Wecos" for your reply, you made it look so simple.

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.
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources