+ Reply to Thread
Results 1 to 2 of 2

Conditional Formatting with Hidden Rows

  1. #1
    Registered User
    Join Date
    07-22-2019
    Location
    Durham, NC
    MS-Off Ver
    Office 2016
    Posts
    1

    Conditional Formatting with Hidden Rows

    Hoping someone can help me do this more quickly than I might otherwise solve it.

    I have a very large sheet that has various permutations/combinations of tags (e.g., for simplicity, imagine having 3 colors and 3 numbers. I would have two columns (color & number) & 9 rows, one row for every color/number combination.). However, among these permutations, many rows are automatically hidden based on external criteria (for this example, add a 3rd column, now with a "Hide?" flag that indicates a yes/no for excel to automatically hide that row).

    What I want to do is apply conditional formatting in each of the tag cells (color/number in this case) that highlights the cell if it differs from the nearest *non-hidden* cell above it. E.g., in the example below, the "Number" cells (beyond the first entry) would always be highlighted, and the first "Red" of the *non-Hidden* row (row 5 in this case) would be highlighted. None of the "Blue", nor the 2nd *non-Hidden* "Red" would be highlighted.

    Color Number Hide?
    Blue 1 No
    Blue 2 No
    Blue 3 No
    Red 1 Yes
    Red 2 No
    Red 3 No

    Appreciate any insight you can give to this task!
    Last edited by quark20; 07-22-2019 at 10:36 AM.

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2504
    Posts
    19,331

    Re: Conditional Formatting with Hidden Rows

    Hello quark20 and Welcome to Excel Forum.
    Assuming the word "Color" is in cell A1 try:
    The formula applied as a conditional formatting rule for A3:A7 is: =OR(AND(A3<>A2,C3="No"),AND(A3<>A1,C2="Yes"))
    The formula applied as a conditional formatting rule for B3:B7 is:=OR(AND(B3<>B2,C3="No"),AND(B3<>B1,C2="Yes"))
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Replies: 1
    Last Post: 12-08-2016, 03:14 PM
  2. Replies: 11
    Last Post: 05-29-2014, 11:30 AM
  3. ActiveCell.Rows(row number.Hidden returns false when row is hidden sometimes
    By Brandon2013 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2014, 04:08 PM
  4. Use conditional formatting only on visible not hidden cells
    By JackBauer in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-24-2014, 08:26 AM
  5. Replies: 1
    Last Post: 08-12-2013, 01:57 PM
  6. Replies: 2
    Last Post: 07-20-2006, 02:51 PM
  7. hidden rows and formatting
    By tawnee jamison in forum Excel General
    Replies: 0
    Last Post: 02-04-2005, 01:18 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