Seperate Cell in Data into 2 seperate cells

buzz71023

Active Member
Joined
May 29, 2011
Messages
295
Office Version
  1. 2016
Platform
  1. Windows
Hello everyone,
Need some help here.

I have data that starts in Column A2 (goes down) that consist of data, example being 102ABCYZ@1234567
I would like to separate these values where the values are split at the "@" symbol like the following in Column B and C respectively.
B would be 102ABCYZZ and column C would be 1234567.

Right now I have Column C working with the below but if there is a better way where I don't have to define 7 digits would be great as well!

Code:
=RIGHT(A2,7)

Thanks for any and all help.
BT
 
If you have imported the values into Column A via a macro, you can use this single line of code to split them...

Columns("A").TextToColumns [A1], xlDelimited, , , False, False, False, False, True, "@"

Change the red "A" to "B" if you don't want to overwrite the original data.
 
Upvote 0

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,215,149
Messages
6,123,311
Members
449,095
Latest member
Chestertim

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