Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Comparing values

Hi,

I am a newbie with this so please forgive me if there is an easy
soloution for this.

I have two rows of data, I want to compare these two rows and count how
many numbers within these two rows match and return a count. Can anyone
possibly give me a bit of advice on how to do this?

Thanks
Owen

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 266
Default Comparing values

skrev i en meddelelse
ups.com...
Hi,

I am a newbie with this so please forgive me if there is an easy
soloution for this.

I have two rows of data, I want to compare these two rows and count how
many numbers within these two rows match and return a count. Can anyone
possibly give me a bit of advice on how to do this?

Thanks
Owen


Hi Owen

One way.

Takes into account duplicates in B1:K1 in itself, duplicates in C2:J2 in
itselft
and values in B1:K1 also found in C2:J2:

=SUMPRODUCT((FREQUENCY((B1:K1,C2:J2),(B1:K1,C2:J2) )1)*(FREQUENCY((B1:K1,C2:J2),(B1:K1,C2:J2))))


--
Best regards
Leo Heuser

Followup to newsgroup only please.



  #3   Report Post  
Posted to microsoft.public.excel.programming
OBK OBK is offline
external usenet poster
 
Posts: 2
Default Comparing values

Leo, Many thanks. It worked perfectly except it returned double the
count I was looking for as it counted in the numbers from the original
row as well so I just divided it by 2.

Cheers!

Leo Heuser wrote:

skrev i en meddelelse
ups.com...
Hi,

I am a newbie with this so please forgive me if there is an easy
soloution for this.

I have two rows of data, I want to compare these two rows and count how
many numbers within these two rows match and return a count. Can anyone
possibly give me a bit of advice on how to do this?

Thanks
Owen


Hi Owen

One way.

Takes into account duplicates in B1:K1 in itself, duplicates in C2:J2 in
itselft
and values in B1:K1 also found in C2:J2:

=SUMPRODUCT((FREQUENCY((B1:K1,C2:J2),(B1:K1,C2:J2) )1)*(FREQUENCY((B1:K1,C2:J2),(B1:K1,C2:J2))))


--
Best regards
Leo Heuser

Followup to newsgroup only please.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 266
Default Comparing values

"OBK" skrev i en meddelelse
ups.com...
Leo, Many thanks. It worked perfectly except it returned double the
count I was looking for as it counted in the numbers from the original
row as well so I just divided it by 2.

Cheers!


You're welcome Owen.
Thanks for the feedback.

Maybe this formula is all you need:

=SUMPRODUCT((FREQUENCY((B1:K1,C2:J2),(B1:K1,C2:J2) )1)+0)

Leo Heuser



Leo Heuser wrote:

skrev i en meddelelse
ups.com...
Hi,

I am a newbie with this so please forgive me if there is an easy
soloution for this.

I have two rows of data, I want to compare these two rows and count how
many numbers within these two rows match and return a count. Can anyone
possibly give me a bit of advice on how to do this?

Thanks
Owen


Hi Owen

One way.

Takes into account duplicates in B1:K1 in itself, duplicates in C2:J2 in
itselft
and values in B1:K1 also found in C2:J2:

=SUMPRODUCT((FREQUENCY((B1:K1,C2:J2),(B1:K1,C2:J2) )1)*(FREQUENCY((B1:K1,C2:J2),(B1:K1,C2:J2))))


--
Best regards
Leo Heuser

Followup to newsgroup only please.





  #5   Report Post  
Posted to microsoft.public.excel.programming
OBK OBK is offline
external usenet poster
 
Posts: 2
Default Comparing values

Yep, thats exactly it.

Thanks
Owen

Leo Heuser wrote:

"OBK" skrev i en meddelelse
ups.com...
Leo, Many thanks. It worked perfectly except it returned double the
count I was looking for as it counted in the numbers from the original
row as well so I just divided it by 2.

Cheers!


You're welcome Owen.
Thanks for the feedback.

Maybe this formula is all you need:

=SUMPRODUCT((FREQUENCY((B1:K1,C2:J2),(B1:K1,C2:J2) )1)+0)

Leo Heuser



Leo Heuser wrote:

skrev i en meddelelse
ups.com...
Hi,

I am a newbie with this so please forgive me if there is an easy
soloution for this.

I have two rows of data, I want to compare these two rows and count how
many numbers within these two rows match and return a count. Can anyone
possibly give me a bit of advice on how to do this?

Thanks
Owen


Hi Owen

One way.

Takes into account duplicates in B1:K1 in itself, duplicates in C2:J2 in
itselft
and values in B1:K1 also found in C2:J2:

=SUMPRODUCT((FREQUENCY((B1:K1,C2:J2),(B1:K1,C2:J2) )1)*(FREQUENCY((B1:K1,C2:J2),(B1:K1,C2:J2))))


--
Best regards
Leo Heuser

Followup to newsgroup only please.





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 266
Default Comparing values

"OBK" skrev i en meddelelse
ups.com...
Yep, thats exactly it.

Thanks
Owen


Glad to help :-)

Leo Heuser


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
Help with Comparing values and retrieving values in Excel!!!!!! [email protected] Excel Worksheet Functions 1 November 17th 06 12:21 AM
Comparing values between columns only when there are values in bot Mark K Excel Worksheet Functions 1 February 19th 06 06:47 PM
Comparing values in two columns and displaying missing values in n cpetta Excel Programming 1 April 2nd 05 06:18 AM
comparing two values Jerry Excel Worksheet Functions 2 March 2nd 05 04:34 PM
Comparing Values Todd Huttenstine[_2_] Excel Programming 7 December 1st 03 06:37 AM


All times are GMT +1. The time now is 06:20 PM.

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

About Us

"It's about Microsoft Excel"