Split content on new sheet and extract info in parentheses

tsalaki

New Member
Joined
Sep 30, 2024
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have a table on one sheet which contains a comment column with info similar to the following:
1727696344588.png


where * number = quantity and ** string = product description

and I would like to copy that info to another sheet where it will be split in different rows like:
1727696246830.png


How can I do that using a formula? Keep in mind that each string - number separated by a comma on the comment column.

Thanks in advance
Regards
 
Thanks for your reply. Pivot table works but all the total quantities are zeros. Looks like the column that created with the formula with the quantity per product it is not recognized as a number in order for the sum function to work properly, or something like that

Try the following formula to convert the second column to numeric values, then use the pivot table:

Excel Formula:
=LET(a,TEXTSPLIT(TEXTJOIN(",",,SUBSTITUTE(Sheet1!A2:A5,")","(")),"(",",",1),VSTACK(CHOOSECOLS(a,4),CHOOSECOLS(a,2)+0))

🤗
 
Upvote 0

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,224,907
Messages
6,181,669
Members
453,059
Latest member
jkevin

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