ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   sumif / sumproduct for number of coincidences (https://www.excelbanter.com/excel-worksheet-functions/125301-sumif-sumproduct-number-coincidences.html)

Mika

sumif / sumproduct for number of coincidences
 
Hi all,

I have two list of numbers (say colums A and B) that change values for
different settings.

I need to have a formula that counts the number of coincidences in
colum B. Coincidences mean that the value in a B cell, cell b10 for
example, has the same value that the matching cell in A (cell A10 in
this case). Other example below. In that case the number of
coincidences is 1.

A B

3 2
5 5
1 7
7 1

Thanks for your time
Mika


Roger Govier

sumif / sumproduct for number of coincidences
 
Hi Mika

Try
=SUMPRODUCT(--(A1:A4=B1:B4))

--
Regards

Roger Govier


"Mika" wrote in message
ups.com...
Hi all,

I have two list of numbers (say colums A and B) that change values for
different settings.

I need to have a formula that counts the number of coincidences in
colum B. Coincidences mean that the value in a B cell, cell b10 for
example, has the same value that the matching cell in A (cell A10 in
this case). Other example below. In that case the number of
coincidences is 1.

A B

3 2
5 5
1 7
7 1

Thanks for your time
Mika




Mika

sumif / sumproduct for number of coincidences
 
Roger, you did it !!

Thanks
Mika

Roger



All times are GMT +1. The time now is 07:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com