Conditional Formatting :@

missjojo

New Member
Joined
May 1, 2014
Messages
4
Hi, I hope someone can help me, this is driving me mad!

I would like to make Cell A turn yellow if there are any blanks in the rest of the row.

[TABLE="width: 204"]
<TBODY>[TR]
[TD="class: xl63, width: 144, bgcolor: #b6dde8"]Name
[/TD]
[TD="class: xl64, width: 128, bgcolor: #b6dde8"]Date
[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 144, bgcolor: #b6dde8"]Name (GO YELLOW)
[/TD]
[TD="class: xl64, width: 128, bgcolor: #b6dde8"]Blank
[/TD]
[/TR]
[TR]
[TD="class: xl63, width: 144, bgcolor: #b6dde8"]Name
[/TD]
[TD="class: xl64, width: 128, bgcolor: #b6dde8"]Date
[/TD]
[/TR]
</TBODY>[/TABLE]

I hope this makes sense..

Thank you
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Welcome to the form you could try this

[QUOTE
Excel Workbook
AB
1CheckAgainst
210
32
43
54
65
760
870
980
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A21. / Formula is =ISBLANK($B2)Abc
B21. / Formula is =ISBLANK($A2)Abc
A31. / Formula is =ISBLANK($B2)Abc
B31. / Formula is =ISBLANK($A2)Abc
A41. / Formula is =ISBLANK($B2)Abc
B41. / Formula is =ISBLANK($A2)Abc
A51. / Formula is =ISBLANK($B2)Abc
B51. / Formula is =ISBLANK($A2)Abc
A61. / Formula is =ISBLANK($B2)Abc
B61. / Formula is =ISBLANK($A2)Abc
A71. / Formula is =ISBLANK($B2)Abc
B71. / Formula is =ISBLANK($A2)Abc
A81. / Formula is =ISBLANK($B2)Abc
B81. / Formula is =ISBLANK($A2)Abc
A91. / Formula is =ISBLANK($B2)Abc
B91. / Formula is =ISBLANK($A2)Abc

][/QUOTE]
 
Upvote 0
Thank you for replying.
I have got rows from E-P that I need to check against, that is the part that is confusing me. B-D are hidden.
Just to make things a little bit more difficult :|

Would I need to put the formula's in seperate?

Thanks again for your help.


Welcome to the form you could try this

[QUOTESheet1

*AB
CheckAgainst
*
*
*
*

<COLGROUP><COL style="FONT-WEIGHT: bold; WIDTH: 30px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"></COLGROUP><TBODY>
[TD="bgcolor: #cacaca, align: center"]1[/TD]

[TD="bgcolor: #cacaca, align: center"]2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]

[TD="bgcolor: #cacaca, align: center"]3[/TD]
[TD="bgcolor: #ffff00, align: right"]2[/TD]

[TD="bgcolor: #cacaca, align: center"]4[/TD]
[TD="bgcolor: #ffff00, align: right"]3[/TD]

[TD="bgcolor: #cacaca, align: center"]5[/TD]
[TD="bgcolor: #ffff00, align: right"]4[/TD]

[TD="bgcolor: #cacaca, align: center"]6[/TD]
[TD="bgcolor: #ffff00, align: right"]5[/TD]

[TD="bgcolor: #cacaca, align: center"]7[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]0[/TD]

[TD="bgcolor: #cacaca, align: center"]8[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]0[/TD]

[TD="bgcolor: #cacaca, align: center"]9[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"]0[/TD]

</TBODY>

Conditional formatting
CellNr.: / ConditionFormat
A21. / Formula is =ISBLANK($B2)

<TBODY>
[TD="bgcolor: #ffff00"]Abc

<TBODY>
B21. / Formula is =ISBLANK($A2)
A31. / Formula is =ISBLANK($B2)
B31. / Formula is =ISBLANK($A2)
A41. / Formula is =ISBLANK($B2)
B41. / Formula is =ISBLANK($A2)
A51. / Formula is =ISBLANK($B2)
B51. / Formula is =ISBLANK($A2)
A61. / Formula is =ISBLANK($B2)
B61. / Formula is =ISBLANK($A2)
A71. / Formula is =ISBLANK($B2)
B71. / Formula is =ISBLANK($A2)
A81. / Formula is =ISBLANK($B2)
B81. / Formula is =ISBLANK($A2)
A91. / Formula is =ISBLANK($B2)
B91. / Formula is =ISBLANK($A2)

[TD="bgcolor: #31869b"]Abc[/TD]

[TD="bgcolor: #ffff00"]Abc[/TD]

[TD="bgcolor: #31869b"]Abc[/TD]

[TD="bgcolor: #ffff00"]Abc[/TD]

[TD="bgcolor: #31869b"]Abc[/TD]

[TD="bgcolor: #ffff00"]Abc[/TD]

[TD="bgcolor: #31869b"]Abc[/TD]

[TD="bgcolor: #ffff00"]Abc[/TD]

[TD="bgcolor: #31869b"]Abc[/TD]

[TD="bgcolor: #ffff00"]Abc[/TD]

[TD="bgcolor: #31869b"]Abc[/TD]

[TD="bgcolor: #ffff00"]Abc[/TD]

[TD="bgcolor: #31869b"]Abc[/TD]

[TD="bgcolor: #ffff00"]Abc[/TD]

[TD="bgcolor: #31869b"]Abc[/TD]

</TBODY>
[/TD]

</TBODY>


Excel tables to the web >> Excel Jeanie Html" target="_blank"> Excel Jeanie HTML 4
]
[/QUOTE]
 
Upvote 0
Beware of ISBLANK... it doesn't always do what you really might want. Sure, it returns TRUE if the source cell has nothing in it (eg. has been cleared using the delete key) but returns FALSE if the source cell contains, say, one or more space characters . It also returns FALSE if the source cell contains a formula, even if that formula resolves to a null value.
 
Upvote 0
Yes your right, it's not working how I would like it too.
It's completely confusing me.
Thanks for your reply, I will keep trying.
 
Upvote 0
I have used the following formula in the past where ISBLANK has let me down....

=(SUMPRODUCT(--(TRIM(A1:A10)<>""))>0)

It returns FALSE if all cells A1 through A10 are blank, empty, contain only spaces or contain a formula that evaluates to null, empty or space etc
or TRUE otherwise
 
Upvote 0
Thank you for your reply.

I think that has worked, however when I enter text in the row the cell doesn't go back to the original colour. Is there a way to do this too?

TIA

I have used the following formula in the past where ISBLANK has let me down....

=(SUMPRODUCT(--(TRIM(A1:A10)<>""))>0)

It returns FALSE if all cells A1 through A10 are blank, empty, contain only spaces or contain a formula that evaluates to null, empty or space etc
or TRUE otherwise
 
Upvote 0
I think that has worked, however when I enter text in the row the cell doesn't go back to the original colour. Is there a way to do this too?
After highlighting the cells in Column A (starting with Row 1), I believe the Conditional Formatting formula you will want to use for your particular layout is...

=SUMPRODUCT(--(TRIM(E1:P1)<>""))=0
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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