Multiplying out cells with text

jimbo123

New Member
Joined
Feb 26, 2025
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am trying to multiply out cells that contain text. Initially the cell value in cell G24 was '6*13+16*17+6*1. But I have removed the '.
All cells in the column can vary in their multiplication,
e.g. 6*13+16*17+6*1
e.g 2*11+1

Do you know how i can turn this into a multiplication in the cell beside that will put brackets around each multiplication?
e.g. I would like my above example to return =(6*13)+(16*17)+(6*1) and =(2*11)+1

Any help would be greatly appreciated.

Best,
Jim
 
Hello,

On Excel 365/for the web, you could have gone with a formula like this

Excel Formula:
=REDUCE(0, TEXTSPLIT(G24, "+"), LAMBDA(acc, v, SUM(acc, PRODUCT(VALUE(TEXTSPLIT(v, "*"))))))

However on Excel 2021 I think you need to go with VBA/PQ since there is no TEXTSPLIT function.
 
Upvote 1
Solution
Hi & welcome to MrExcel.
Not quite what you wanted, but how about
Fluff.xlsm
GH
246*13+16*17+6*1=(6*13)+(16*17)+(6*1)
252*11+1=(2*11)+(1)
Data
Cell Formulas
RangeFormula
H24:H25H24="=("&SUBSTITUTE(G24,"+",")+(")&")"
 
Upvote 1
Hello,

On Excel 365/for the web, you could have gone with a formula like this

Excel Formula:
=REDUCE(0, TEXTSPLIT(G24, "+"), LAMBDA(acc, v, SUM(acc, PRODUCT(VALUE(TEXTSPLIT(v, "*"))))))

However on Excel 2021 I think you need to go with VBA/PQ since there is no TEXTSPLIT function.

Thanks saboh!

I was wrong about my version of excel, this worked a treat!

Best,
Jim
 
Upvote 0
I was wrong about my version of excel
Then I suggest you update your profile with the correct version. ;)

I thought you wanted the result to be like =(6*13)+(16*17)+(6*1) rather than do the maths.
 
Upvote 0

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