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:

ABCD
1Date25-Aug-201926-Aug-201927-Aug-2019
2activity18

3activity2
8
4activity3

8

<tbody>
</tbody>

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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
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,214,641
Messages
6,120,695
Members
448,979
Latest member
DET4492

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