+ Reply to Thread
Results 1 to 6 of 6

Compare Numbers and highlight

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Compare Numbers and highlight

    Hello:

    Please refer to attached file.
    I need a VB Code to perform the following
    I have numbers in Sheet1 from B6 down for 4 rows (This number is in Cell B2)..If B2 is 8 then data will be from B6 down for 8 rows
    I need to check each of these numbers in Column C of Sheet2.
    If this number (Sheet1) is not found then highlight the cell to Red (Sheet1 bewtee B6 down).
    Would need to clear the highlight from B6 down before we start the test.


    Let me know if you have any questions.
    Thanks.
    RM
    Attached Files Attached Files

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Compare Numbers and highlight

    Hi RM,
    try
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Compare Numbers and highlight

    Hi Nilem:

    This works soooooooooo great.
    Need to see if I can compare Sheet1 data with closed workbook.
    The name of the sheet where the data is will be the same as name of the closed workbook.
    Example : Name of the closed workbook is Store1Data.xls
    Then, the name of the sheet in closed workbook where the data is will be "Store1Data"
    The data to be compared will still be in Column C of closed WB
    Name and Location of the closed upbook will be in Cell S3 of the current workbook.

    Thanks a lot and Please let me know if you have any questions.
    Thanks.
    RM

  4. #4
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Compare Numbers and highlight

    Please Login or Register  to view this content.
    it is assumed that the S3 cell has value something like E:\Downloads\Store1Data.xls

  5. #5
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Compare Numbers and highlight

    Hi Nilem:

    Superb, Works great,.
    Thanks a lot and will test further and let you know if any issues.

    Riz

  6. #6
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Compare Numbers and highlight

    Hi Nilem:

    Thanks a lot..Works

    RM
    Last edited by rizmomin; 10-08-2015 at 09:10 PM.

+ 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. Compare Prices and Highlight
    By StreekyD in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-29-2014, 02:02 PM
  2. Compare and highlight
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-02-2014, 02:03 AM
  3. [SOLVED] Compare and highlight
    By rizmomin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-13-2014, 10:53 PM
  4. [SOLVED] Compare and Highlight
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-10-2012, 10:45 AM
  5. Compare and highlight
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-12-2012, 12:27 AM
  6. [SOLVED] How do you compare 2 list of numbers and highlight the difference
    By Jay Jones in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-20-2006, 12:50 PM
  7. RE: How do you compare 2 list of numbers and highlight the difference
    By Tom Ogilvy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2006, 10:55 AM

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