+ Reply to Thread
Results 1 to 7 of 7

compare two columns of two worksheets

Hybrid View

  1. #1
    Registered User
    Join Date
    06-29-2009
    Location
    Tehran
    MS-Off Ver
    Excel 2003
    Posts
    14

    compare two columns of two worksheets

    Hi
    I have my data as many rows and one column asume column A in sheet1.
    In sheet2 I have data in column A and column B.

    I need a code (or formula) keeping sheet1 as a base and compare two columns and for each data maching in column A of both worksheets bring the corresponding data in column B of sheet2 and put in column B of sheet1.

    briefly fill out the sheet1 using data in sheet2

    thanks in advance

  2. #2
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Kalgoorlie Australia
    MS-Off Ver
    Excel 2007/10
    Posts
    251

    Re: compare two columns of two worksheets

    hello hme_s
    please attach a dummy sheet see we can see what you can, pref with an example of what you expect as a result.
    Regards
    Peter

  3. #3
    Registered User
    Join Date
    06-29-2009
    Location
    Tehran
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: compare two columns of two worksheets

    Hi Peter

    Thank you for your reply

    As you can see in the attachment, I would like the code find equal data in columnA of sheet1 and sheet2 and copy the relevant data of columnB of sheet2 in columnB of sheet1.

    For exapmle in sheet1 of attached file I copy and past the relevant data for cell A7 andA8 manually.
    Hope it is clear.

    thanks
    Hme_s
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-29-2009
    Location
    Tehran
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: compare two columns of two worksheets

    Hi

    Sorry, but the attached file in previous post was incomplete.Please refer to attachment of this post.

    rgrds
    Hme_s

  5. #5
    Registered User
    Join Date
    06-29-2009
    Location
    Tehran
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: compare two columns of two worksheets

    Hi

    May sombody help me.

    I have attached a dummy sheet presenting my request.
    Simply I need a code/Formula to compare two column and in case of equal cell to copy the row (or Just relevant cell in columnB) from one sheet to another sheet.

    Thanks
    Hme_s
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Kalgoorlie Australia
    MS-Off Ver
    Excel 2007/10
    Posts
    251

    Re: compare two columns of two worksheets

    please have a look at this.
    regards
    peter
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-29-2009
    Location
    Tehran
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: compare two columns of two worksheets

    Hi Peter
    It is working!

    Thanks a Lot.
    Hme_s

+ 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