Conditional Formatting

Cooki

Board Regular
Joined
Jul 31, 2018
Messages
86
Hi All

Hard to explain but ill give it ago

Column A is activity and column B is Percentage

Column A can have the same tasks but for different departments e.g Relocation - HH or Relocation - NHH

But column A can have individual tasks.

What i need is, if the tasks percentage is NOT 100% then highlight, but if the same task just by different departments adds up to 100% or more between them then don't highlight, if it does not don't highlight

Relocation Jobsheets - HH.
80.00%​
Don’t Highlight - as together they are 100%
Relocation Jobsheets - NHH.
20.00%​
Don’t Highlight - as together they are 100%
Install - HH.
90.00%​
Highlight
Data - NHH
100.00%​
Don’t Highlight
Flows - HH
20.00%​
Highlight - as together they are 40%
Flows - NHH
20.00%​
Highlight - as together they are 40%

I have made this, but it just adds up the tasks that are simulate which is not right, but im sure its something along these lines, just cant figure it out.

=SUMIF($A$1:$A$6, LEFT(A1, FIND("-", A1, 1)) & "*", $B$1:$B$6)

Hope that makes sense

Thanks in advance if you can figure it out or at least try :)
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Soooo close

=SUMIF($A$1:$A$6,LEFT(A1,FIND("-",A1,1))&"*",$B$1:$B$6)<1
 
Upvote 0
Soooo close

=SUMIF($A$1:$A$6,LEFT(A1,FIND("-",A1,1))&"*",$B$1:$B$6)<1

Thanks for the response, but the forumla will not do what i need. I dont think its correct for what i need.

Does not check if a cell is 100% or if two cells with same task adds up to 100% and the rest of it.
 
Upvote 0
but the forumla will not do what i need. I dont think its correct for what i need.
It will do what you need and it is correct.
Book1
ABC
1Relocation Jobsheets - HH.80.00%Don’t Highlight - as together they are 100%
2Relocation Jobsheets - NHH.20.00%Don’t Highlight - as together they are 100%
3Install - HH.90.00%Highlight
4Data - NHH100.00%Don’t Highlight
5Flows - HH20.00%Highlight - as together they are 40%
6Flows - NHH20.00%Highlight - as together they are 40%
Sheet8
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:A6Expression=SUMIF($A$1:$A$6,LEFT(A1,FIND("-",A1,1))&"*",$B$1:$B$6)<1textNO
 
Upvote 0
It will do what you need and it is correct.
Book1
ABC
1Relocation Jobsheets - HH.80.00%Don’t Highlight - as together they are 100%
2Relocation Jobsheets - NHH.20.00%Don’t Highlight - as together they are 100%
3Install - HH.90.00%Highlight
4Data - NHH100.00%Don’t Highlight
5Flows - HH20.00%Highlight - as together they are 40%
6Flows - NHH20.00%Highlight - as together they are 40%
Sheet8
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:A6Expression=SUMIF($A$1:$A$6,LEFT(A1,FIND("-",A1,1))&"*",$B$1:$B$6)<1textNO

Wow apologies it was me, had the table in different cells.

Really do apologies.

Dam cant believe how close i was

Thanks for the help
 
Upvote 0

Forum statistics

Threads
1,223,249
Messages
6,171,031
Members
452,374
Latest member
keccles

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