+ Reply to Thread
Results 1 to 3 of 3

need a macro to compare two ranges in two different sheets

  1. #1
    Registered User
    Join Date
    10-06-2010
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003
    Posts
    1

    Post need a macro to compare two ranges in two different sheets

    Hi,

    I am relatively new to VBA macros. I am having two sheets, in one sheet I have a non-contiguous 20 rows range and in the other sheet I have a 20 row contiguous range. I need a macro which will compare data between the two ranges(one to one compare) meaning 1st row of the first range should compare with 1st row of the second range and if it matches then it should populate the adjacent column in the second sheet with true or false accordingly.

    Any quick help will be greatly appreciated.

    Thanks in advance!

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: need a macro to compare two ranges in two different sheets

    Send a short sample of your data, this will help to customize the macro.
    Are you sure you need a macro, a formula could work.

  3. #3
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: need a macro to compare two ranges in two different sheets

    Else try
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] macro to compare value against multiple ranges and enter value based on that
    By smurphy619 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2014, 11:30 AM
  2. Macro to subrtract two ranges and compare the result with condition
    By naga in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-02-2013, 11:03 AM
  3. [SOLVED] macro compare 2 ranges but insert row in one range..
    By feroguz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-27-2012, 02:19 PM
  4. Macro to compare two ranges in a worksheet.
    By abhay_547 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-06-2010, 11:08 PM
  5. [SOLVED] Macro to input and compare date ranges
    By vlad in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-25-2005, 05:06 PM

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