Copy a portion of a cell and not the whole cell

Suavesav

New Member
Joined
Mar 14, 2023
Messages
7
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I need a formula to copy a portion of a cell and not the entire cell into another cell. for example - A4 contains - BOOKING NUMBER: ( SA58-000000 ) ; EXTERNAL NUMBER: ( ABCDEFG000000000 ) ; FREE TEXT REFERENCE: ( Mickey ) ; IMO: ( 000000 ) ; OFS-SCM SCM REFERENCE: ( 00000000000 ) ; PRIMARY CUSTOMER REFERENCE: ( 1.0001 ) ; SHIPMENT GLOBAL ID: ( 000000000 ) ; SHIPPERS / CUSTOMERS REFERENCE: ( 1.0001 ) ; SID REFERENCE: ( 230136362236 ) .

I need to only copy the data that is underlined and in Bold to another cell. **This data is formatted differently only here and not in the actual sheet.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
How about
Excel Formula:
=TRIM(LEFT(REPLACE(A4,1,SEARCH("external n",A4)+17,""),FIND(")",REPLACE(A4,1,SEARCH("external n",A4)+17,""))-1))
 
Upvote 1
Book1
A
1BOOKING NUMBER: ( SA58-000000 ) ; EXTERNAL NUMBER: ( ABCDEFG000000000 ) ; FREE TEXT REFERENCE: ( Mickey ) ; IMO: ( 000000 ) ; OFS-SCM SCM REFERENCE: ( 00000000000 ) ; PRIMARY CUSTOMER REFERENCE: ( 1.0001 ) ; SHIPMENT GLOBAL ID: ( 000000000 ) ; SHIPPERS /
2ABCDEFG000000000
Sheet2
Cell Formulas
RangeFormula
A2A2=FILTERXML("<t><s>"&SUBSTITUTE(SUBSTITUTE(A1,": ( ","</s><s>")," ) ; ","</s><s>")&"</s></t>","//s[preceding::*[1]='EXTERNAL NUMBER']")
 
Upvote 1

Forum statistics

Threads
1,215,459
Messages
6,124,945
Members
449,198
Latest member
MhammadishaqKhan

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