Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Medikto D
 
Posts: n/a
Default 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
  #3   Report Post  
Posted to microsoft.public.excel.misc
Medikto D
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.misc
Bernie Deitrick
 
Posts: n/a
Default 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" wrote in message
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
A 2 line text showing up in the Cell in Excel prints in 1 line Danny Excel Discussion (Misc queries) 6 July 12th 05 08:47 PM
How to remove an extra line added by excel when pasting into notep CoolGuy Excel Discussion (Misc queries) 1 March 2nd 05 02:57 PM
How do i copy columns of data in notepad into microsoft excel? Jason Excel Discussion (Misc queries) 3 February 12th 05 02:04 AM
How do i copy columns of data in notepad into microsoft excel? Jason Excel Discussion (Misc queries) 1 February 10th 05 11:05 PM
How do i copy columns of data in notepad into microsoft excel? Jason Excel Discussion (Misc queries) 1 February 10th 05 09:20 PM


All times are GMT +1. The time now is 04:14 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"