+ Reply to Thread
Results 1 to 3 of 3

compare two columns with different ranges in two worksheets

  1. #1
    ch90
    Guest

    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. #2
    vezerid
    Guest

    Re: compare two columns with different ranges in two worksheets

    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. #3
    ch90
    Guest

    Re: compare two columns with different ranges in two worksheets

    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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1