6

I'm attempting to highlight a cell based on two conditions, if the Work Type is equal to (blank), and if the cell itself is greater than 15%, then I want the cell under % Total Work highlighted. My sheet looks like this:

enter image description here

The only way I can think to do this is using the AND function, something like =AND($B:$B="(blank)";$D:$D>.15), but this produces an error. I'm very new to conditional formatting, so I may be missing something obvious. I'm using Excel 2010.

0

1 Answer 1

7

You have to apply the formula that applies to the first cell in the range, so if you select the range D8:D100 or similar (where data starts at row 8) then apply this formula in conditional formatting

=AND(B8="(blank)";D8>0.15)

That should do what you need

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks for your help @barry and @Harrison, I have a follow up question. It turns out the % Total Work column isn't actually in percentage format, but rather a string generated by some more advanced back-end scripts. Is there a way to compare that integer value to 15? I tried =AND(B8="(blank)";MID(D8,1,5)>15), to try to extract just the number, but to no avail. I chose a length of 5 for the substring because the percentage value is actually longer than it appears, its just rounding. Thanks.
Try getting everything before % sign like this =AND(B8="(blank)",LEFT(D8,FIND("%",D8)-1)+0>15)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.