Need to split info in Excel column into two separate columns

Posted on 2013-12-29
Last Modified: 2013-12-30
I need to split information contained in one Excel column into two separate columns.  The information is divided in the first column by the "  -  ".  There is a space both before and after the hyphen.  Content of cells include the case numbers and matter names of files.
Question by:CynSzcz
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
LVL 13

Accepted Solution

Ashok earned 450 total points
ID: 39745451
"Jeff - Smith"      

=LEFT(A2, SEARCH("-",A2,1)-1)       


Author Comment

ID: 39745462
Thanks Wizard, My info is in column F.  Do I just replace the "A" in your example with F ?
LVL 70

Assisted Solution

KCTS earned 50 total points
ID: 39745468
Yes! - and copy the formula down as required
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 13

Expert Comment

ID: 39745477
A2 is where the original string is so if your original string in F5 for example, then you would use F5 instead.

Once you do first row, copy formula to rows below.

Author Comment

ID: 39745483
Yay!! It worked.

Author Comment

ID: 39745488
I meant to give those points to "Wizard." I am sorry, new at this.
LVL 70

Expert Comment

ID: 39745489
@Ashok did most of the work on this - seems unfair to give me all the credit

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question