how to compare two columns and get a output from it

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
Scoops said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top