Unconcatenate?

689touch

New Member
Joined
Jun 29, 2007
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Attached is an extract of a list, I want to extract the 100 (pack of) into a separate column. The list is a long one and contains various pack quantities (pack of 50, pack of 10) for example. I want to be able to extract the quantity each time.

Is this possible?

Thank you
 

Attachments

  • Screenshot 2024-03-26 102602.png
    Screenshot 2024-03-26 102602.png
    136.6 KB · Views: 7

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Which version of Office do you have?
 
Upvote 0
Windows 11 Business
The question was what version of Office do you have, not which version of Windows.

I also suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with.

A couple of options depending on what functions you have available in your Excel version.

24 03 26.xlsm
ABC
1abc def (pack of 100) ghi100100
2abc def (pack of 1000) aaa10001000
Pack no
Cell Formulas
RangeFormula
B1:B2B1=--TEXTAFTER(TEXTBEFORE(A1:A2,")")," ",-1)
C1:C2C1=--REPLACE(LEFT(A1,FIND(")",A1)-1),1,FIND("(",A1)+8,"")
Dynamic array formulas.
 
Last edited:
Upvote 0
Solution
Which version of Office, not Windows, please. It will affect what solutions are available to you so ideally you should update your profile here to include that information.
 
Upvote 0
The question was what version of Office do you have, not which version of Windows.

I also suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with.

A couple of options depending on what functions you have available in your Excel version.

24 03 26.xlsm
ABC
1abc def (pack of 100) ghi100100
2abc def (pack of 1000) aaa10001000
Pack no
Cell Formulas
RangeFormula
B1:B2B1=--TEXTAFTER(TEXTBEFORE(A1:A2,")")," ",-1)
C1:C2C1=--REPLACE(LEFT(A1,FIND(")",A1)-1),1,FIND("(",A1)+8,"")
Dynamic array formulas.
This worked an absolute treat - thank you.
 
Upvote 0
This worked an absolute treat - thank you.
You're welcome.
.. but which one(s) worked?
.. and what about your Excel version? Please update your forum profile (click your user name at the top right of the forum, then ‘Account details’) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
You're welcome.
.. but which one(s) worked?
.. and what about your Excel version? Please update your forum profile (click your user name at the top right of the forum, then ‘Account details’) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
Morning,
The TEXTAFTER / TEXT BEFORE worked.
Have updated profile.

Thank you
 
Upvote 0
Cheers. Thanks for the confirmation.
.. and for updating your details. (y)
 
Upvote 0

Forum statistics

Threads
1,215,073
Messages
6,122,976
Members
449,095
Latest member
Mr Hughes

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