+ Reply to Thread
Results 1 to 9 of 9

Compare numbers in two columns in two diffirent sheets

  1. #1
    Registered User
    Join Date
    09-13-2012
    Location
    Göteborg, Sweden
    MS-Off Ver
    Excel 2003
    Posts
    4

    Compare numbers in two columns in two diffirent sheets

    Hello,

    I have a problem with comparence.

    I have seriel numbers that has to be updated every week, and i download these from a database. Usually I update these numbers by hand but they have become so many so my work would be much easier if it could be update automaticly. So I want macro to:
    -Check if there is a new serial number from the updated list (in sheet1), if so it should put it in bottom and the sell shold be the color "tan" of the unupdated (soon to be updated) list in sheet2.
    -Check for the same number. And if it is in the old list the shell should be marked in the color "tan".

    Then I can see if there is a number that is no longer is active.

    Can someone help me with this?

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Compare numbers in two columns in two diffirent sheets

    Hi Korven,

    Welcome to the forum.
    Could you upload a sample excel file? Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    09-13-2012
    Location
    Göteborg, Sweden
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Compare numbers in two columns in two diffirent sheets

    Number update.xls

    I want the updated sheet to be compared to the old list sheet.

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Compare numbers in two columns in two diffirent sheets

    Hi Korven,

    Try using the below formula to check if the number on updated list exists on Old list:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Number update.xls

    After this what need to be done next.. e.g., a24 has 576 which exists on old list.. now what you want further ? thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  5. #5
    Registered User
    Join Date
    09-13-2012
    Location
    Göteborg, Sweden
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Compare numbers in two columns in two diffirent sheets

    When it finds a match it should be colored in the color "tan". And if it do not find any matches it should past in the unmatched number in the bottom of the number colmun in the old list sheet.

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Compare numbers in two columns in two diffirent sheets

    Okay.. So in "updated" sheet, A24 should be colored in "tan" and A3, A4, A5 etc should be appended in the bottom of the list in the sheet "old list".. right ?

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  7. #7
    Registered User
    Join Date
    09-14-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Compare numbers in two columns in two diffirent sheets

    Try this macro:

    Please Login or Register  to view this content.
    Paste the above codes in the a module, then link it to a shape in sheet1.

    Hope this helps.


    Moderator Edit:

    Welcome to the forum, rundie_d.

    Please notice that code tags have been added to this post. The forum rules require them so please keep that in mind and add them yourself whenever showing code in any of your future posts. To see instructions for applying them, click on the Forum Rules button at the top of the page and read Rule #3.
    Thanks.
    Last edited by Cutter; 09-15-2012 at 01:55 PM. Reason: Added code tags

  8. #8
    Registered User
    Join Date
    09-13-2012
    Location
    Göteborg, Sweden
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Compare numbers in two columns in two diffirent sheets

    Hi Rundie_d,

    The macro you sent did not work.. I guess it is not made in office 2003?

  9. #9
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Compare numbers in two columns in two diffirent sheets

    Hi Korven,

    You missed my post #6 where I requested you to confirm few points.. ? Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ 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