help with dissecting a cell

aberfoyle

Board Regular
Joined
Apr 19, 2005
Messages
60
HI all, I have a cell that has descriptions in it and item number the info looks like this:

7999 - 1/8" wrench with spool
88888 - thread for widgets

I would like to set up a column with just the item # and another with just the description that comes after the "-" so it would look like this

Column 1 Column 2
7999 1/8" wrench with spool
88888 thread for widgets

Is there a formula to accomplish this?

Thanks
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,887
Hi aberfoyle

If the decription is in A1 try

in B1:

=LEFT(A1,FIND("-",A1)-1)

in C1:

=RIGHT(A1,LEN(A1)-FIND("-",A1)-1)

HTH
PGC
 

Cbrine

Well-known Member
Joined
Dec 2, 2003
Messages
3,196
Just use text to columns to divide the data.

1. Select data....Text to Columns
2. In the wizard select "delimited" and next
3. select other as the delimited and type in - in the box beside it and press finish.

HTH
Cal
 

Forum statistics

Threads
1,176,068
Messages
5,901,187
Members
434,882
Latest member
tchien69

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top