I have a big list of PVC windows dimensions, which has this kind of structure:
2*3
1*2
1*2
I want to sum the areas of all windows, which manually looks like this:
2*3 + 1*2 + 1*2
How to do it using a dynamic formula?
First I split cells using the *
symbol.
=INDEX(SPLIT(A1:A3;"*"))
2 3
1 2
1 2
Then tried a lot of combinations and the closest to desired result is:
=PRODUCT(INDEX(INDEX(ARRAYFORMULA(TRANSPOSE(SPLIT({A1:A3};"*"))));;1))
6
I'm stuck with only one row and don't know how to extend it to the whole thing.
Best Answer
This should work:
You basically use
SPLIT
twice, once to get the first part (that's whatINDEX
does) and once for the second part of the dimensions. You multiply those, and thenSUM
all the results.