Excel - VER RESULTADO DE UNA FUNCION

 
Vista:

VER RESULTADO DE UNA FUNCION

Publicado por ANGEL RODRIGUEZ CASTELLANOS (3 intervenciones) el 05/11/2007 11:09:41
TENGO LA SIGUIENTE HOJA DE CALCULO, Y QUIERO QUE ME CUENTE LAS FILAS DONDE COINCIDE COLOR "BLANCO" Y SITUACION "DOS".

COLOR SITUACION
VERDE UNO
VERDE UNO
VERDE UNO
BLANCO DOS
BLANCO DOS
VERDE DOS
BLANCO DOS
BLANCO DOS
VERDE DOS
VERDE DOS
VERDE TRES
VERDE TRES
AZUL TRES
BLANCO DOS
AZUL TRES
AZUL TRES
VERDE TRES
VERDE TRES
VERDE TRES
BLANCO UNO
BLANCO UNO
VERDE UNO
BLANCO UNO
BLANCO UNO

LA FUNCION QUE EMPLEO ES LA SIGUIENTE:
=CONTAR(SI(E8:E32="DOS";SI(D8:D32="BLANCO";)))

TENGO PROBLEMAS PARA QUE ME MUESTRE EL RESULTADO DE LA FUNCION EN LA CELDA, ME PONE 1 CUANDO EL RESULTADO SON 5
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:VER RESULTADO DE UNA FUNCION

Publicado por José Luis (700 intervenciones) el 05/11/2007 12:01:13
Es una fórmula matricial y debes reeditarla (F2) y confirmarla con Shift+Ctrl+Enter
para que te quede así
{=CONTAR(SI(E8:E32="DOS";SI(D8:D32="BLANCO";))) }

No obstante si te resulta complicado hacerlo así, usa la función SUMAPRODUCTO. Mira en este foro donde he puesto una gran cantidad de información.
Saludos
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:VER RESULTADO DE UNA FUNCION

Publicado por Fernando (231 intervenciones) el 05/11/2007 12:26:36
Te dejo esta función para que la incorpores en tu complemento personal o en un modulo. Para que cuentes con 2 criterios.

****************************************************************************************
Function contarDos(rango1, criterio1, rango2, criterio2)
Dim r1, r2 As Range

Set r1 = rango1
Set r2 = rango2

cuenta = 0

For i = 1 To r1.Cells.Count
celda1 = r1.Cells(i).Value
celda2 = r2.Cells(i).Value
If celda1 = criterio1 And celda2 = criterio2 Then
cuenta = cuenta + 1
contarDos = cuenta
End If
Next
End Function

***************************************************************************************

Saludos,
Fernando
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar