Split

GoingPostal

New Member
Joined
Feb 7, 2022
Messages
6
Office Version
  1. 365
Platform
  1. Windows
I Need to split a column in my excel file. I have attached a picture of the existing column. on some of the cells there is NA/GRN others have GRN/55 and others even have GRN/OR/55.
I need to seperate the /55 or similar and put it in a seperate column.
For Example:
GRN/OR/55 needs to seperate into GRN/OR in the original column and the /55 in the next column.

Any ideas?

Capture.JPG
 

Attachments

  • Capture.JPG
    Capture.JPG
    19.6 KB · Views: 8

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hi goingpostal
Have you tried the text to columns function in the data menu in the ribbon. You can set your own delimiter (in your case /) and it will remove the / and put all your different values in separate columns
 
Upvote 0
Welcome to the MrExcel board!

For the future, this might help: MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.

I need to seperate the /55 or similar and put it in a seperate column.
Is this what you mean?
If not, then more explanation and examples, including the expected results, please.

22 02 07.xlsm
AB
1GRN 
2GRN/5555
3GRN/OR/5555
4OR/6161
5GRN/OR 
6OR/22
7NA/GRN 
Split
Cell Formulas
RangeFormula
B1:B7B1=IFERROR(RIGHT(SUBSTITUTE(A1,"/",REPT(" ",20)),20)+0,"")
 
Upvote 0
Thank you for that Peter, i will try that plug in.

That is almost what i need but the forward slash needs to come over with the number and not be at the end of the column on the left
 
Upvote 0
That is almost what i need but the forward slash needs to come over with the number and not be at the end of the column on the left
Like this then?

22 02 07.xlsm
AB
1GRN 
2GRN/55/55
3GRN/OR/55/55
4OR/61/61
5GRN/OR 
6OR/2/2
7NA/GRN 
Split
Cell Formulas
RangeFormula
B1:B7B1=IFERROR("/"&RIGHT(SUBSTITUTE(A1,"/",REPT(" ",20)),20)+0,"")
 
Upvote 0
Thank you, that works. How if could i get it to set up like this?

GRNGRN
GRN/55GRN/55
GRN/OR/55GRN/OR/55
OR/61OR/61
 
Upvote 0

Forum statistics

Threads
1,214,782
Messages
6,121,532
Members
449,037
Latest member
tmmotairi

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