Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
ch90
 
Posts: n/a
Default compare two columns with different ranges in two worksheets

I need to compare two columns of data in two different worksheets and display
a third one.

Here it is an example:
-(worksheet1!A1:A10), (worksheet1!B1:B10) and (whorksheet2!C1:C25)
-this is my query, if C5 is already in (A1:A10) I want to display B5 in
worksheet2!D5

I think it is tricky because you need to identity which row in the A1:A10 is
equal to C5 to display B5 and the range are different.

you could save my day
chris90
  #2   Report Post  
vezerid
 
Posts: n/a
Default

In worksheet2!D1:
=if(isna(vlookup(C1, worksheet1!$A$1:$B$10, 2, 0)), "", vlookup(C1,
worksheet1!$A$1:$B$10, 2, 0))

HTH
Kostis Vezerides

  #3   Report Post  
ch90
 
Posts: n/a
Default

brilliant, many thanks, you make my day.

chris90

"vezerid" wrote:

In worksheet2!D1:
=if(isna(vlookup(C1, worksheet1!$A$1:$B$10, 2, 0)), "", vlookup(C1,
worksheet1!$A$1:$B$10, 2, 0))

HTH
Kostis Vezerides


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
How to compare the lists in two columns & separate odd one ? Nikhil Excel Discussion (Misc queries) 2 June 13th 05 02:41 PM
Compare columns PiedmontJohn Excel Discussion (Misc queries) 4 January 7th 05 12:08 AM
How do I compare 2 columns in excel from the same spreadsheet sleyden Excel Discussion (Misc queries) 1 January 6th 05 01:36 AM
How do I compare two columns on seperate sheets and replace text . hag400 Excel Worksheet Functions 1 December 28th 04 02:32 PM
Problem with graph ranges No Such Luck Charts and Charting in Excel 6 December 3rd 04 01:09 PM


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