+ Reply to Thread
Results 1 to 7 of 7

Conditional formatting based on specific cells

  1. #1
    Registered User
    Join Date
    01-20-2021
    Location
    Toronto, Canada
    MS-Off Ver
    2013
    Posts
    21

    Conditional formatting based on specific cells

    Hello,
    I would like to apply conditional formatting based on the value of a cell above those that need to be formatted, and then stop when the next set of rows is to be evaluated. For instance:

    Column A
    row 1: value here is less than 30, so:
    row 2: red font
    row 3: red font
    row 4: value here is more than 30, so:
    row 5: normal font
    row 6: normal font
    row 7: normal font
    row 8: normal font
    row 9: value here is .......etc.

    The number of rows between the evaluation rows is not consistent.
    A sample worksheet is attached.
    Many thanks for any help!
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Conditional formatting based on specific cells

    This rule worked for me. Update 44 to your actual (or maximum) number of rows.

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

  3. #3
    Registered User
    Join Date
    01-20-2021
    Location
    Toronto, Canada
    MS-Off Ver
    2013
    Posts
    21

    Re: Conditional formatting based on specific cells

    thanks genius . and thanks for your quick reply! It's so close to working beautifully - it just seems offset by one row. i.e., it's not capturing the first row below and it extends into the following "n=" row. Does it have to do with my "applies to" range? I've re-attached the spreadsheet.
    (also I lived in Tysons Corner briefly. Loved it)
    Attached Files Attached Files

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Conditional formatting based on specific cells

    2nd CF formula in cell C6, then apply to whole range C6:G44

    =AND($A7<>"n=",LOOKUP(2,1/($A$6:$A6="n="),C$6:C6)<100)
    Attached Files Attached Files
    Quang PT

  5. #5
    Registered User
    Join Date
    01-20-2021
    Location
    Toronto, Canada
    MS-Off Ver
    2013
    Posts
    21

    Re: Conditional formatting based on specific cells

    thanks very much! This worked perfectly.
    first time on forum - I'll try to figure out how to mark as solved.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: Conditional formatting based on specific cells

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Registered User
    Join Date
    01-20-2021
    Location
    Toronto, Canada
    MS-Off Ver
    2013
    Posts
    21

    Re: Conditional formatting based on specific cells

    thank you Ali. Found both.

+ 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. Conditional Formatting on shapes based on specific word
    By liberovago in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-06-2020, 04:35 PM
  2. [SOLVED] Conditional formatting based on sum of adjacent cells values and specific data
    By joey1 in forum Excel - New Users/Basics
    Replies: 13
    Last Post: 11-14-2017, 06:53 PM
  3. Replies: 5
    Last Post: 07-09-2017, 03:35 AM
  4. [SOLVED] conditional formatting of specific cells based on 1 cell value
    By RachelMads02 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-29-2017, 03:38 PM
  5. Conditional Formatting for Specific Cells
    By amoto in forum Excel General
    Replies: 7
    Last Post: 04-13-2013, 11:59 AM
  6. Replies: 1
    Last Post: 08-17-2012, 08:16 PM
  7. Using Conditional Formatting to Shade Specific Cells
    By Hypnopoison in forum Excel General
    Replies: 4
    Last Post: 04-03-2011, 11:45 AM

Tags for this Thread

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