+ Reply to Thread
Results 1 to 4 of 4

counting line by line matches of 2 columns possible in excel ?

  1. #1
    Medikto D
    Guest

    counting line by line matches of 2 columns possible in excel ?

    result guy1 guy2
    duitsland-costa rica 1 1 1 1 1
    polen- ecuador 1 X X X 1
    engeland-paraguay 2 1 1 1 1 X
    trinidad-zweden 2 2 2 2 1 2
    argentinië-ivoorkust 1 1 1 1 1 1
    servië-nederland 2 X 2 2 2 2
    mexico-iran 2 1 1 1 1 1
    angola-portugal 2 2 2 2 2
    italië-ghana x 1 1 1 1 1
    usa-tsjechië 1 2 X 2 2 X
    brazilië-kroatië 1 1 1 1 1 1
    australië-japan 1 2 2 2 X 1
    frankrijk-zwitserland 1 1 1 1 X
    zuid korea-togo 1 1 X 2 X
    formula needed
    is counting line by line matches of 2 columns even possible in excel
    ,without the long
    =SUM(IF($B2=C2;1;0);IF($B3=C3;1;0);IF($B4=C4;1;0);IF($B5=C5;1;0);IF($B6=C6;1;0)) ...lotsa matches

  2. #2
    Bernie Deitrick
    Guest

    Re: counting line by line matches of 2 columns possible in excel ?

    =SUMPRODUCT(--(B2:B100=C2:C100))

    HTH,
    Bernie
    MS Excel MVP


    "Medikto D" <Medikto [email protected]> wrote in message
    news:[email protected]...
    > result guy1 guy2
    > duitsland-costa rica 1 1 1 1 1
    > polen- ecuador 1 X X X 1
    > engeland-paraguay 2 1 1 1 1 X
    > trinidad-zweden 2 2 2 2 1 2
    > argentinië-ivoorkust 1 1 1 1 1 1
    > servië-nederland 2 X 2 2 2 2
    > mexico-iran 2 1 1 1 1 1
    > angola-portugal 2 2 2 2 2
    > italië-ghana x 1 1 1 1 1
    > usa-tsjechië 1 2 X 2 2 X
    > brazilië-kroatië 1 1 1 1 1 1
    > australië-japan 1 2 2 2 X 1
    > frankrijk-zwitserland 1 1 1 1 X
    > zuid korea-togo 1 1 X 2 X
    > formula needed
    > is counting line by line matches of 2 columns even possible in excel
    > ,without the long
    > =SUM(IF($B2=C2;1;0);IF($B3=C3;1;0);IF($B4=C4;1;0);IF($B5=C5;1;0);IF($B6=C6;1;0)) ...lotsa matches




  3. #3
    Medikto D
    Guest

    Re: counting line by line matches of 2 columns possible in excel ?

    Thanks for the fast reply
    I looked at all possible solutions even this sumproduct,but you got to admit
    it's not the obvious choice,a math function instead of lookup,compare,count
    and such.

    "Bernie Deitrick" wrote:

    > =SUMPRODUCT(--(B2:B100=C2:C100))
    >
    > HTH,
    > Bernie
    > MS Excel MVP


    >
    >


  4. #4
    Bernie Deitrick
    Guest

    Re: counting line by line matches of 2 columns possible in excel ?

    Maybe this is more intuitive....

    =SUM((B2:B100=C2:C100)*1)

    Entered using Ctrl-Shift-Enter

    HTH,
    Bernie
    MS Excel MVP


    "Medikto D" <[email protected]> wrote in message
    news:[email protected]...
    > Thanks for the fast reply
    > I looked at all possible solutions even this sumproduct,but you got to admit
    > it's not the obvious choice,a math function instead of lookup,compare,count
    > and such.
    >
    > "Bernie Deitrick" wrote:
    >
    >> =SUMPRODUCT(--(B2:B100=C2:C100))
    >>
    >> HTH,
    >> Bernie
    >> MS Excel MVP

    >
    >>
    >>




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1