+ Reply to Thread
Results 1 to 8 of 8

Conditional Formatting complete rows in data table - inconsistent

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-17-2014
    Location
    UK
    MS-Off Ver
    2007
    Posts
    117

    Conditional Formatting complete rows in data table - inconsistent

    Done it a thousand times successfully before but something's gone horribly wrong!

    I'm trying to format the whole row based on a cell's value - simple isn't it?

    The attached will be of more use than any attempt I may make at articulating the issue, however here's a summary:

    If cell value is greater than another cell value, turn row red....
    Cells in the range of =P27:T27 clearly meet this condition, however other areas of this row fail to meet the condition but are highlighted.

    If cell value > 0 and less than another cell, then green row...
    Row 32 works fine to column AN and then just quits applying the rule! Row 20 works to row R and then stops.

    I thought it may be due to the row headers being text but then it wouldn't break halfway through the row.
    I really hope I've done something idiotic and that there is some rational logic behind this.... If I needed this level of chaos in my life, I'd run a day care centre for preschool kids!
    Attached Files Attached Files

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Conditional Formatting complete rows in data table - inconsistent

    Which cell value(s) are you looking at?
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    09-17-2014
    Location
    UK
    MS-Off Ver
    2007
    Posts
    117

    Re: Conditional Formatting complete rows in data table - inconsistent

    I'm looking at all the cells in each row - where a cell is encountered that meets the condition, then the whole row is highlighted.

    I'm only concerned with the numeric cells from column F onwards for meeting the condition, however I have to apply to the whole table range in order to format the complete row.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Conditional Formatting complete rows in data table - inconsistent

    So you are checking each cell in the row against every other cell to see if one is larger than the other?

  5. #5
    Forum Contributor
    Join Date
    09-17-2014
    Location
    UK
    MS-Off Ver
    2007
    Posts
    117

    Smile Re: Conditional Formatting complete rows in data table - inconsistent

    Indeed.

    I think I've sussed it now too - just applying all the logic again in a COUNTIF.

    Where any single cell in a row exceeds a value, then I want the whole row highlighted - don't care about individual cells. So For the red condition, I've now got
     =COUNTIF($F2:$BR2,">"&$E2)
    which seems to fulfil this criteria perfectly.

    With this logic, I should be able to do all the rest of the formatting too I hope....

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Conditional Formatting complete rows in data table - inconsistent

    Sorry I'm confused.

    That formula is checking F2:BR2 against one cell, E2.

  7. #7
    Forum Contributor
    Join Date
    09-17-2014
    Location
    UK
    MS-Off Ver
    2007
    Posts
    117

    Re: Conditional Formatting complete rows in data table - inconsistent

    Indeed - it's looking in the range $F2:$BR2 and counting any cell in the range > $E2.

    Where the count >0, each row in the applied to range ($A$2:$BR$59) will be highlighted.

    Attached the now working example if this helps.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    09-17-2014
    Location
    UK
    MS-Off Ver
    2007
    Posts
    117

    Re: Conditional Formatting complete rows in data table - inconsistent

    Indeed - it's looking in the range $F2:$BR2 and counting any cell in the range > $E2.

    Where the count >0, each row in the applied to range ($A$2:$BR$59) will be highlighted.

+ 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 rows in Pivot Table HELP!
    By kfryar in forum Excel General
    Replies: 1
    Last Post: 03-26-2014, 01:26 AM
  2. [SOLVED] Conditional Formatting of Table Rows based on value in a Column
    By Dominicus in forum Excel General
    Replies: 2
    Last Post: 01-07-2014, 11:14 AM
  3. [SOLVED] Inconsistent Conditional Formatting result
    By JohnWS in forum Excel General
    Replies: 6
    Last Post: 08-20-2013, 01:09 PM
  4. [SOLVED] Conditional Formatting - Highlight All Rows in Table with Error in Any Cell
    By jgray in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-18-2013, 05:04 PM
  5. Conditional Formatting - Highlight All Rows in Table with Errors in Cells
    By jgray in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-18-2013, 03:34 PM

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