Conditional Formatting Exception

ebilbrough

Board Regular
Joined
Nov 17, 2010
Messages
61
Office Version
  1. 365
Platform
  1. Windows
Column A is ProjectName
Column B is Personnel (JohnSmith, or MaryJones, etc.)
Columns C - Z are weekly hours worked.

The data extends for 1200 rows.

Each project has a differing amount of rows (dependent upon the number of personnel working that project).
The projects (rows) are grouped and there is a SUBTOTAL line (row) after each project grouping.

I need to create a conditional format for all the individual personnel hours cells (C2:Z1200) but need to exclude the formatting of the SUBTOTAL row.

Thanks.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Whatever your current Conditional Formatting is, just wrap it into and AND statement that checks the column/cell where the word SUBTOTAL would appear, i.e.
Code:
=AND($C2<>"SUBTOTAL",[I]your current formula[/I])
 
Last edited:
Upvote 0
You are welcome!:)
 
Upvote 0
When I use the following formula in my conditional format:

=AND($A2<>"Subtotal*",>40)

I receive an excel message: We found a problem with this formula. Try clicking.....

If I put double quotes around the >40 (">40") it excepts the formula but doesn't change the cell.
 
Upvote 0
Yon need to be explicit in your range references when using the formula options.
What cell are you checking to see if it is greater than 40?
If it is column B, then the formula would look like this (for row 2):
Code:
[COLOR=#333333]=AND(LEFT($A2,8)<>"Subtotal",$B2>40)[/COLOR]
Also note that I don't think it will like wildcards, so I changed your formula to see if the first 8 characters are not "Subtotal".
 
Upvote 0
You are welcome!
 
Upvote 0

Forum statistics

Threads
1,215,045
Messages
6,122,836
Members
449,096
Latest member
Erald

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top