ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   how to compare two columns and get a output from it (https://www.excelbanter.com/excel-worksheet-functions/97336-how-compare-two-columns-get-output.html)

[email protected]

how to compare two columns and get a output from it
 
example

A1 A2

6.5.6 R200
6.5.6 R200
5.6 R100

here basically i have two column a1 and a2 and i want to count all R200
which has 6.5.6 how do i do this?

rajesh

Scoops

how to compare two columns and get a output from it
 

wrote:

example

A1 A2

6.5.6 R200
6.5.6 R200
5.6 R100

here basically i have two column a1 and a2 and i want to count all R200
which has 6.5.6 how do i do this?

rajesh


Hi rajesh

I *think* you want to count the number of times that 6.5.6 is in the
same row as R200.

If so, try this:

=SUMPRODUCT((A3:A5="6.5.6")*(B3:B5="R200"))

Regards

Steve


[email protected]

how to compare two columns and get a output from it
 

Scoops wrote:
wrote:

example

A1 A2

6.5.6 R200
6.5.6 R200
5.6 R100

here basically i have two column a1 and a2 and i want to count all R200
which has 6.5.6 how do i do this?

rajesh


Hi rajesh

I *think* you want to count the number of times that 6.5.6 is in the
same row as R200.

If so, try this:

=SUMPRODUCT((A3:A5="6.5.6")*(B3:B5="R200"))

Regards

Steve


Thanks steve, you gave perfect answer.
rajesh


Scoops

how to compare two columns and get a output from it
 

wrote:

Thanks steve, you gave perfect answer.
rajesh


Thanks for the feedback rajesh, glad to help

Regards

Steve



All times are GMT +1. The time now is 09:13 AM.

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