+ Reply to Thread
Results 1 to 2 of 2

VBA Conditional Formatting of Cells within limits

  1. #1
    Registered User
    Join Date
    12-16-2011
    Location
    Oregon
    MS-Off Ver
    Excel 2007
    Posts
    12

    VBA Conditional Formatting of Cells within limits

    I am trying to add conditional formatting to a group of cells with text. The formatting is based upon a formula that uses cell values(numbers) from elsewhere in the sheet. The formula is calculating whether a dynamic value is in or out of a specified range. When I input a value the number will change and if it is out of range then I want the cells to turn red, and if they are in then I want them to turn green. I have attached a sample of what I am looking. I am looking for both VBA and non VBA answers. I will end up needing this to be a macro.

    Sean
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: VBA Conditional Formatting of Cells within limits

    Hi

    Conditional Formatting:
    Highlight the range E2:G2, Conditional Formatting, use a formula and enter the following
    =AND($E2<=$F2,$E2>=$G2), Fill as Green
    =OR($E2>$F2,$E2<$G2), Fill as Red

    Worksheet Change Event
    Please Login or Register  to view this content.
    rylo
    Last edited by rylo; 05-06-2013 at 07:52 PM.

+ 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