Possibility conditional formatting within range of cells

Kick4s

New Member
Joined
Aug 27, 2019
Messages
9
Hello everyone,

I have some troubles with conditional formatting, see example below:
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]
[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Date[/TD]
[TD]25-Aug-2019[/TD]
[TD]26-Aug-2019[/TD]
[TD]27-Aug-2019[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]activity1[/TD]
[TD]8[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]activity2[/TD]
[TD]
[/TD]
[TD]8[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]activity3[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]8[/TD]
[/TR]
</tbody>[/TABLE]

My goal is to change the colour of the "activity" cell when:

"B2 to D2 is not blank

and

date B1 to D1 has expired"

From my understanding, the (start of the) formula should be:
= AND (NOT (BLANK (B2) ) ; B1<today ()="" )<today())<today="" ())<today())<today())"<today())<today())".="" but="" this="" formula="" only="" takes="" one="" cell="" in="" account.=""
< TODAY () )<today())


Is it possible to make this work with a range of cells without having to put in multiple conditional formats?

I work with the Dutch version of Excel 2010 so ';' and ',' are different than the international version, I will clarify more if needed.

Many thanks in advance!</today())
</today>
 
This is what I get with that formula


Book1
ABCD
1date28-Aug-1929-Aug-1930-Aug-19
2activity18
3activity28
4activity38
End



The only way I can get it to highlight A3 & A4 is if B3 & B4 are not completely blank.
 
Last edited:
Upvote 0

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
I have (also) tried it in a new Excel sheet, there it works like it should...

Maybe there is indeed something wrong with the sheet I am working with (non-blank cells which interfere with the formula or other conflicting formulas that are unknown to me).

What are other things I should keep in mind of within the sheet, regarding the (strangely) not working formula?
 
Upvote 0
I would check/confirm that those cells really are empty.
What does these formulas return?
=LEN(B3)
=LEN(D3)

If they both do not return 0, then there is something in there (maybe a space or some other invisible character).
A lot of times, data copied or downloaded from the Web or other applications often have "inivisible" characters.
 
Last edited:
Upvote 0
Another thing to try is using
=ISBLANK(B3)
If you have copy/pasted as value formulae that return "" the length will be 0, but isblank will return false.
 
Upvote 0
I would check/confirm that those cells really are empty.
What does these formulas return?
=LEN(B3)
=LEN(D3)

If they both do not return 0, then there is something in there (maybe a space or some other invisible character).
A lot of times, data copied or downloaded from the Web or other applications often have "inivisible" characters.

Hi Joe4,

Thanks for the feedback, I will try this out.
 
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,596
Members
452,657
Latest member
giadungthienduyen

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