Promedio

ussito

New Member
Joined
Apr 7, 2002
Messages
12
En primer lugar agradecerle la respuesta a mi anterior duda. Y en segundo,
Puedo que cuando se cumplan los items de dos columnas excel calcule el promedio de los valores de una de las columnas. Pero solo de los valores que cumplan las dos condiciones
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Claro, entonces ahí sí quedaría más facil usar la fórmula matricial inicial, pero cambiar SUMA por PROMEDIO. Depronto también podría servir mirar la función BDPROMEDIO.
 
Upvote 0
Usando esto ?

{=PROMEDIO((A1:A10="Cond1")*(B1:B10="Cond2")*C1:C10)}

?

Bueno, (A1:A10="Cond1") es una condición, cierto ?, esto genera una matriz de 10 filas x 1 columna, con valores VERDADERO o FALSO. Lo mismo pasa con (B1:B10="Cond2"). Al multiplicar estas dos matrices, obtengo otra matriz de 10x1, pero, en vez de VERDADEROs o FALSOs, obtengo 1s y 0s, por qué ? porque Excel los "convierte". Ahora, al multiplicar esta matriz por C1:C10, obtengo, cuando las dos condiciones son verdaderas, el valor en la columna C, o cuando alguna es falsa, obtengo un 0.

Pero acabo de caer en cuenta que para el promedio, entrarían los 0's, lo cual no se necesita. Por lo tanto sería mejor cambiar la fórmula a

{=SUMA((A1:A10="Cond1")*(B1:B10="Cond2")*C1:C10)/SUMA((A1:A10="Cond1")*(B1:B10="Cond2"))}
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,215
Members
448,554
Latest member
Gleisner2

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