¿Es posible multiplicar dos campos e ir sumando los resultados n veces? / Is it possible multiply two fields and add up the results n times?

Lo que quiero hacer es algo así.

=(a1*b1)+(c1*d1)...(ax1*bx1)...n veces

Hay alguna manera de hacerlo de una manera cómoda?

Hola maniat1k, este sitio utiliza el inglés como idioma, si es un problema para ti, puedes hacer tus consultas en la lista en español.

I think with SUMPRODUCT() - SUMA.PRODUCTO(), OFFSET() - DESREF() and ROW() - FILA() it is possible do the job.

=SUMPRODUCT(OFFSET(A1;0;ROW(A1:A5)*2-2);OFFSET(A1;0;ROW(A1:A5)*2-1))

As Sumproduct is a matrix function we don’t need enter the formula as matrix (Ctrl+Shif+Enter).

ROW(A1:A5) gives the number of products to do, iterating in this case from 1 to 5, five is the n in the question.

OFFSET() gives the address of cell to multiply as the iteration is going on.

Wow. I had a much simpler interpretation :slight_smile:

Google translate:

Celda A1 nombre a con valor “2”.

Celda A2 nombrado b con valor “3”.

Celda A3 nombre multiplican con la fórmula =A1*A2 por ejemplo, a × b muestra “6”.

Celda A4 nombre adiciones con valor de 3, por ejemplo, el número de veces que añadir.

Celda A5 contiene la fórmula =A3*A4, por ejemplo, muestra “18”.

English:

Cell A1 named a with value 2.

Cell A2 named b with value 3.

Cell A3 named multiply with formula =A1*A2 e.g., a × b displays “6”.

Cell A4 named additions with value 3 e.g., the number of times to add.

Cell A5 contains formula =A3*A4 e.g., displays “18”.