Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Comparing columns of data

Hi

Would someone be kind enough to tell me what approach I should take if
I want to compare two columns of data. Say I have a column of 220
values and I want to see if any of a second column with 20 values are
represented in the first column and where they are.

Many thanks for your time.

Aj
Fife

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 527
Default Comparing columns of data

"Hankjam" wrote:
Would someone be kind enough to tell me what approach I should take if
I want to compare two columns of data. Say I have a column of 220
values and I want to see if any of a second column with 20 values are
represented in the first column and where they are.


Hankjam

Assuming that column A has a header and Column B is the compare column, in
C2 type
=ADDRESS(MATCH(B2,$A$2:$A$500,1)+1,1,4)

if column A has no header try

=ADDRESS(MATCH(A1,$A$2:$A$500,1),1,4)

If column B (lookup column) contains items not in column A suppress #N/A#
values with

=IF(ISERROR(ADDRESS(MATCH(B3,$A$2:$A$500,0)+1,1,4) ),"",ADDRESS(MATCH(B3,$A$2:$A$500,0)+1,1,4))

Regards
Peter

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Comparing columns of data

On Mon, 23 Apr 2007 12:30:00 -0700, Billy Liddel
wrote:

"Hankjam" wrote:
Would someone be kind enough to tell me what approach I should take if
I want to compare two columns of data. Say I have a column of 220
values and I want to see if any of a second column with 20 values are
represented in the first column and where they are.


Hankjam

Assuming that column A has a header and Column B is the compare column, in
C2 type
=ADDRESS(MATCH(B2,$A$2:$A$500,1)+1,1,4)

if column A has no header try

=ADDRESS(MATCH(A1,$A$2:$A$500,1),1,4)

If column B (lookup column) contains items not in column A suppress #N/A#
values with

=IF(ISERROR(ADDRESS(MATCH(B3,$A$2:$A$500,0)+1,1,4 )),"",ADDRESS(MATCH(B3,$A$2:$A$500,0)+1,1,4))

Regards
Peter


Hi Peter

thanks for that. I'll try it at work in the morrow.

Yours

Aj
Fife
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
Comparing two columns of data JohnV Excel Discussion (Misc queries) 1 January 26th 07 04:00 PM
Comparing 2 columns of data adrianh33 New Users to Excel 1 April 5th 06 06:19 PM
comparing columns of data john mcmichael Excel Worksheet Functions 1 September 1st 05 04:35 PM
Comparing Data in 2 columns suzb Excel Worksheet Functions 2 January 6th 05 02:39 AM
Comparing Data in two columns Marianne Excel Worksheet Functions 3 November 5th 04 10:26 PM


All times are GMT +1. The time now is 08:29 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"