Seperate data in a cell

jschoon4

New Member
Joined
Dec 16, 2010
Messages
35
I Need to separate the item # / from the description in column A? I have about 2000 rows. Once the number is removed I need to place that number in Column B next to the description.


Ex.
A
1 4986238 / SHOE ORTHOWEDGE FOREFOOT OPEN TOE OL-M

<tbody>
</tbody>
2 6120067 / CABLE EKG SPLB 5 LEAD 2-PRONG SAFETY 700-0008-06


<tbody>
</tbody>

<tbody>
</tbody>
 
Last edited:

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Is the item number always located at the beginning of the string? Is the item number always 7 characters long?

If so, the LEFT formula should work: =LEFT(A1,7) where A1 is the cell where your data is stored, and 7 is the number of characters you want to return
 
Upvote 0
Try this macro:
Code:
Sub removeNum()
    Application.ScreenUpdating = False
    Dim LastRow As Long
    LastRow = Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
    Dim num As Variant
    Dim rng As Range
    For Each rng In Range("A1:A" & LastRow)
        num = Split(rng, "/")
        rng.Offset(0, 1) = Trim(num(0))
        rng = Trim(num(1))
    Next rng
    Application.ScreenUpdating = True
End Sub
 
Upvote 0

Book1
ABCD
134986238 / SHOE ORTHOWEDGE FOREFOOT OPEN TOE OL-MSHOE ORTHOWEDGE FOREFOOT OPEN TOE OL-M4986238
146120067 / CABLE EKG SPLB 5 LEAD 2-PRONG SAFETY 700-0008-06CABLE EKG SPLB 5 LEAD 2-PRONG SAFETY 700-0008-066120067
151412 / new tekst to test etcnew tekst to test etc1412
Blad24
Cell Formulas
RangeFormula
B13=RIGHT(A13,LEN(A13)-SEARCH("/",A13,1)-1)
D13=LEFT(A13,SEARCH("/",A13,1)-2)
 
Upvote 0

Forum statistics

Threads
1,215,030
Messages
6,122,762
Members
449,095
Latest member
m_smith_solihull

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
Back
Top