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
[TABLE="width: 526"]
<tbody>[TR]
[TD="width: 526"]1 4986238 / SHOE ORTHOWEDGE FOREFOOT OPEN TOE OL-M[/TD]
[/TR]
</tbody>[/TABLE]
2 6120067 / CABLE EKG SPLB 5 LEAD 2-PRONG SAFETY 700-0008-06

[TABLE="width: 526"]
<tbody>[TR]
[TD="width: 526"][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 526"]
<tbody>[TR]
[TD="width: 526"][/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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,223,712
Messages
6,174,031
Members
452,542
Latest member
Bricklin

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