Buscar y sumar valores de un rango

JavierPeña

New Member
Joined
Apr 21, 2011
Messages
37
Buenas, antes de nada agradecer la ayuda que me puedan prestar:

Necesito calcular que valores existen en una lista y darles un valor, según el número de ellos que estén.

Ejemplo:

Yo tengo esta serie de valores (Columnas de la A a D, y en la E, el Resultado que quiero obtener):

AABBDDIIResultado (6)
BBCCFFGGResultado (4)
HHKKFFJJResultado (2)
JJAAFFGGResultado (0)

<tbody>
</tbody>


Y por otro lado en un rango llamado MUESTRA tengo en columna, lo siguiente:

AA
BB
CC
DD

<tbody>
</tbody>

Quiero obtener en la columna E, el resultado de: Por cada valor en el rango A:D, que exista en el rango MUESTRA, me sume 2.

En la primera columna tengo AA,BB,CC, por lo tanto sería 6....
En la cuarta sólo AA, por lo que sería 2...

Me podéis ayuda con la fórmula?

Un saludo y gracias por adelantado
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi,

Lo siento, no hablo español.


Excel 2013
ABCDEFG
1x1x2x3x4ResultadoMuestra
2AABBDDII6AA
3BBCCFFGG4BB
4HHKKFFJJ0CC
5JJAAFFGG2DD
Sheet1
Cell Formulas
RangeFormula
E2=2*SUM(COUNTIF(MUESTRA,A2),COUNTIF(MUESTRA,B2),COUNTIF(MUESTRA,C2),COUNTIF(MUESTRA,D2))
E3=2*SUM(COUNTIF(MUESTRA,A3),COUNTIF(MUESTRA,B3),COUNTIF(MUESTRA,C3),COUNTIF(MUESTRA,D3))
E4=2*SUM(COUNTIF(MUESTRA,A4),COUNTIF(MUESTRA,B4),COUNTIF(MUESTRA,C4),COUNTIF(MUESTRA,D4))
E5=2*SUM(COUNTIF(MUESTRA,A5),COUNTIF(MUESTRA,B5),COUNTIF(MUESTRA,C5),COUNTIF(MUESTRA,D5))
Named Ranges
NameRefers ToCells
MUESTRA=Sheet1!$G$2:$G$5
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,746
Members
448,989
Latest member
mariah3

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