Splitting text from one cell into 2 columns - automatically

rickh606

New Member
Joined
Jun 25, 2014
Messages
6
Hello everyone, I just joined and I may have missed this question being answered somewhere in the forum, so please forgive me if it has been duplicated.

I am scanning in a 19 digit number from a barcode and hat I would lie to do I take that text and ten split it into the next 2 cells on the same row. Basically I am splitting the first 8 characters (Item #) and the next 11 characters (serial #).

Here is a brief sample of what the data should look like:

71011108502173580017101110850217358001
71011108505623020017101110850562302001
<colgroup><col width="146" style="width: 109pt; mso-width-source: userset; mso-width-alt: 5176;"> <col width="88" style="width: 66pt; mso-width-source: userset; mso-width-alt: 3128;"> <col width="86" style="width: 65pt; mso-width-source: userset; mso-width-alt: 3072;"> <tbody> </tbody>

I can do the split manually, but I would like to do it as soon as I scan the text in from the barcode.

Thanks





<colgroup><col width="146" style="width: 109pt; mso-width-source: userset; mso-width-alt: 5176;"> <col width="88" style="width: 66pt; mso-width-source: userset; mso-width-alt: 3128;"> <col width="86" style="width: 65pt; mso-width-source: userset; mso-width-alt: 3072;"> <tbody> </tbody>
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Will they always be 19 characters?

This assumes the first scan in A1

In Column 2

=Left(A1,8)
Drag Down


In Column 3

=Mid(A1,9,11)
Drag Down
 
Upvote 0

Forum statistics

Threads
1,215,839
Messages
6,127,204
Members
449,368
Latest member
JayHo

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