+ Reply to Thread
Results 1 to 4 of 4

VB Code to do Conditional formating for range of cells with criteria

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

    VB Code to do Conditional formating for range of cells with criteria

    Hello:

    Please refer to attached file.
    I need VB Code to perform following.


    Find Row# for Vendor Code which is in cell B2 in data range B21 down.
    In this case Cell B28.
    Now i need to apply Conditional Formatting for data in cell range E28:N28 as below.
    1st add each cell data for Row#5 with Row#28, If result is less then or equal to 2 then highlight Yellow

    Example:
    E5 + E28 = 0 ..Hightlight
    F5 + F28 = 7 ...DO NOT highlight
    G5 + G28 = 2 ...highlight
    H5 + H28 = 0 ...highlight


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

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: VB Code to do Conditional formating for range of cells with criteria

    Select E21:N28 & use
    Formula: copy to clipboard
    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: VB Code to do Conditional formating for range of cells with criteria

    Hello Fluff13:

    Thanks a lot

    R

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: VB Code to do Conditional formating for range of cells with criteria

    You're welcome & thanks for the feedback

+ 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] VB Code to do Conditional formating for range of cells
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-13-2019, 07:51 PM
  2. VBA code for Conditional formating for more rows and columns and criteria
    By antoanand1981 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-28-2014, 12:17 AM
  3. Counting the number of cells meeting conditional formating criteria
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 12:05 PM
  4. [SOLVED] Counting the number of cells meeting conditional formating criteria
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 04:05 AM
  5. [SOLVED] Counting the number of cells meeting conditional formating criteria
    By Jeff in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  6. Counting the number of cells meeting conditional formating criteria
    By Jeff in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  7. Counting the number of cells meeting conditional formating criteria
    By Jeff in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-08-2005, 09:05 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