Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Raj Raj is offline
external usenet poster
 
Posts: 130
Default Compare the data in 2 columns

Hi
I would like to the compare the in Column A and Column C. Display in Column
D an the common data of A and C and Column E the associated value of Column A
in Column B For example

A B C
12 P1 23
23 p2 24
25 P3 12

Clomun D and E must have the following values
D E
12 P1
23 P2
Can anyone help me


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 913
Default Compare the data in 2 columns

On Mon, 29 Dec 2008 01:10:01 -0800, Raj
wrote:

Hi
I would like to the compare the in Column A and Column C. Display in Column
D an the common data of A and C and Column E the associated value of Column A
in Column B For example

A B C
12 P1 23
23 p2 24
25 P3 12

Clomun D and E must have the following values
D E
12 P1
23 P2
Can anyone help me


In D1 put the following formula:

=SMALL(C$1:C$10*COUNTIF(A$1:A$10,C$1:C$10),ROW()+S UMPRODUCT(1-COUNTIF(A$1:A$10,C$1:C$10)))

In E1 put the following formula

=VLOOKUP(D1,A$1:B$10,2,FALSE)

Copy D1:E1 down as far as needed.
Change the $10 to fit the size of your data in columns A:C

Hope this helps / Lars-Åke

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
compare data in two columns Kim Excel Worksheet Functions 2 April 12th 07 03:14 PM
Compare data in two columns excellearn2006 Excel Worksheet Functions 2 August 17th 06 11:13 PM
compare data from 2 columns micmed Excel Worksheet Functions 3 February 13th 06 02:53 AM
Need to compare data in 2 columns and not sure how. Stacey Charts and Charting in Excel 0 February 8th 06 04:47 PM
Trying to compare data in two columns... accessgrits Excel Worksheet Functions 5 May 12th 05 06:32 PM


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