SOLVED

No funciona una fórmula

Copper Contributor

Buenos días. 

En la columna C tengo una fórmula para calcular un promedio sobre las celdas donde hay números. Como en esas celdas tengo puesta una fórmula, no me calcula el promedio. Cuando le quito la fórmula y pongo yo los números, sí calcula el promedio.

¿Se puede solucionar? 

Gracias.

14 Replies

@MAIFG3 

What is the formula?

@Hans Vogelaar 

En la columna C tengo una fórmula de promedio. En la otras tres tengo una fórmula de =SI(, respecto a la columna D.

@MAIFG3 

OK, but what is the formula in column C?

=SI.ERROR(PROMEDIO(SUMA(E7:G7;I7:K7;M7:O7;Q7:S7;U7:W7;Y7:AA7;AC7:AE7;AG7:AI7));"-")

@MAIFG3 

SUMA(E7:G7;I7:K7;M7:O7;Q7:S7;U7:W7;Y7:AA7;AC7:AE7;AG7:AI7) returns a single value. There is no point in using PROMEDIO on a single number.

Does this do what you want?

 

=SI.ERROR(PROMEDIO(E7:G7;I7:K7;M7:O7;Q7:S7;U7:W7;Y7:AA7;AC7:AE7;AG7:AI7);"-")

No quiero que me sume los números, sino que saque el promedio de una serie de celdas. Además, no me funciona ninguna fórmula cuando se realiza sobre celdas donde hay fórmula.

@MAIFG3 

Have you tried

 

=SI.ERROR(PROMEDIO(E7:G7;I7:K7;M7:O7;Q7:S7;U7:W7;Y7:AA7;AC7:AE7;AG7:AI7);"-")

 

Make sure that C7 (the cell with the formula) is not formatted as text.

Sí, está en formato de número. Puede que no se pueda realizar una fórmula sobre celdas que contengan fórmulas.
Gracias.

@MAIFG3 

It should be possible. Could you attach a sample workbook?

Quieres que envíe el la hoja de excel?

@MAIFG3 

Yes please, you can attach it to a reply in this topic.

@Hans Vogelaar 

Buenos días.

Aquí la tienes.

best response confirmed by MAIFG3 (Copper Contributor)
Solution

@MAIFG3 

Thank you! The problem is caused by the formulas in columns E:F, I:K and M:O.

For example in E7:

 

=SI.ERROR(SI(D7="MB";"10";SI(D7="B";"7,5";SI(D7="R";"5";SI(D7="M";"2,5";" "))));"")

 

The return values "10", "7,5" etc. are text because of the " ", not numbers! PROMEDIO ignores text values. It should be

 

=SI.ERROR(SI(D7="MB";10;SI(D7="B";7,5;SI(D7="R";5;SI(D7="M";2,5;""))));"")

 

See the attached version.

Muchas gracias. Llevaba tiempo intentando solucionar este problema y no encontraba la solución. Muy agradecido.
1 best response

Accepted Solutions
best response confirmed by MAIFG3 (Copper Contributor)
Solution

@MAIFG3 

Thank you! The problem is caused by the formulas in columns E:F, I:K and M:O.

For example in E7:

 

=SI.ERROR(SI(D7="MB";"10";SI(D7="B";"7,5";SI(D7="R";"5";SI(D7="M";"2,5";" "))));"")

 

The return values "10", "7,5" etc. are text because of the " ", not numbers! PROMEDIO ignores text values. It should be

 

=SI.ERROR(SI(D7="MB";10;SI(D7="B";7,5;SI(D7="R";5;SI(D7="M";2,5;""))));"")

 

See the attached version.

View solution in original post