split data to another cell

balu7979

New Member
Joined
Aug 2, 2016
Messages
22
I have a data in excel sheet. CUSTOMER ID : YTLPK-4635-4635-LP463501, And I want split data to another cell, the following data before semi column data is not change, after semi column data will change. I want to split the data after semi column to another cell. We are using text to column command for this, It is working but we want to use formula for this. I want to split the data using with word count. (CUSTOMER ID : ) total 14 Words includes (space & :) it will Never Change. Please give me the solution

This The Sample data
Never Change

[TABLE="width: 397"]
<tbody>[TR]
[TD]CUSTOMER ID :
PART ID :
[/TD]
[/TR]
[TR]
[TD]DESTINATION :
[/TD]
[/TR]
[TR]
[TD]LOC FIPS :
[/TD]
[/TR]
[TR]
[TD]MSA ID :
[/TD]
[/TR]
[TR]
[TD]PMSA ID :
[/TD]
[/TR]
[TR]
[TD]DSTID :
[/TD]
[/TR]
[TR]
[TD]MANUFACTURER:
[/TD]
[/TR]
[TR]
[TD]BRAND NAME:
[/TD]
[/TR]
[TR]
[TD]FACILITY TMQ:
[/TD]
[/TR]
</tbody>[/TABLE]

a_Capture.jpg
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Can u Explain whats is cell b1 formula -2) & c1 +2,255) in the formula

Hi,

Find(":",A1) returns the position of the semicolon, we take 2 away because we want to return all of the text up to 2 characters before that semicolon.

Similar for the second formula, we want to start 2 characters away from the semicolon, the 255 is an arbitrary number that is assumed to be larger than the number of characters after the semicolon.
 
Upvote 0
balu7979,

How about something like this?


Excel 2007
AB
1CUSTOMER ID : YTLPK-4635-4635-LP463501YTLPK-4635-4635-LP463501
2PART ID : B-LTh463-W/LP4635-065HB-LTh463-W/LP4635-065H
3DESTINATION : RIGARIGA
4LOC FIPS : PLPS-4635-46LPdsLPKN4546PLPS-4635-46LPdsLPKN4546
5MSA ID : SAL4M-463-463-4LP46/46SAL4M-463-463-4LP46/46
6PMSA ID : SA73OAM73UI-7367UI-U736766SA73OAM73UI-7367UI-U736766
7DSTID : UIR-DST-736766-U73676UIR-DST-736766-U73676
8MANUFACTURER: SYNTHES BETTLACHSYNTHES BETTLACH
9BRAND NAME: DHS/DCS COUPLING SCREWDHS/DCS COUPLING SCREW
10FACILITY TMQ:DENTAL CEPHALOMETRICDENTAL CEPHALOMETRIC
11
Sheet1
Cell Formulas
RangeFormula
B1=IFERROR(MID(A1,FIND(": ",A1)+2,LEN(A1)),MID(A1,FIND(":",A1)+1,LEN(A1)))


The formula in cell B1, copied down:

=IFERROR(MID(A1,FIND(": ",A1)+2,LEN(A1)),MID(A1,FIND(":",A1)+1,LEN(A1)))
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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