Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
sk sk is offline
external usenet poster
 
Posts: 24
Default How to compare and extract data in two columns

Hi,

I have First Name, Last Name, UserID from one file. And again First Name,
Last Name only from second file. I need to compare the two data sets so as to
extract UserIDs. e.g

(The data is in same worksheet)

FirstName LastName UserID FirstName LAstName
John Adam Jadam Sara Kent
Bill Gate Bgate John Adam
..... ...
I need to extract names along with UserIDs that match.
Like: John Adam Jadam
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default How to compare and extract data in two columns

FirstName LastName UserID FirstName LAstName
John Adam Jadam Sara Kent
Bill Gate Bgate John Adam


Assuming the above's in cols A to E, data from row2 down
Put in F2's formula bar,
then press CTRL+SHIFT+ENTER to confirm the formula (ie array-enter):
=index(c$2:c$100,match(1,(a$2:a$100=d2)*(b$2:b$200 =e2),0))
Copy F2 down
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:16,700 Files:356 Subscribers:53
xdemechanik
---
"SK" wrote:
I have First Name, Last Name, UserID from one file. And again First Name,
Last Name only from second file. I need to compare the two data sets so as to
extract UserIDs. e.g

(The data is in same worksheet)

FirstName LastName UserID FirstName LAstName
John Adam Jadam Sara Kent
Bill Gate Bgate John Adam
.... ...
I need to extract names along with UserIDs that match.
Like: John Adam Jadam
Thanks

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
Extract unique data across columns in a row. Exanimo96 Excel Discussion (Misc queries) 1 January 23rd 08 01:17 AM
Excel 2002 : How to extract data from columns ? Mr. Low Excel Discussion (Misc queries) 2 September 14th 07 04:56 PM
Extract & compare data on different worksheets DavidH[_2_] Excel Discussion (Misc queries) 1 May 11th 07 07:08 AM
Extract data and print in columns Graycoast Excel Discussion (Misc queries) 5 February 27th 07 10:02 PM
Extract data based on critera from three columns Mildred Excel Discussion (Misc queries) 7 February 24th 06 09:34 PM


All times are GMT +1. The time now is 10:38 PM.

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"