Cond formatting help.

  • Thread starter Thread starter rumkus
  • Start date Start date
R

rumkus

Hi All

How can I apply cond.formatting below ?

If col A and col B empty no format
If both col A and col B with data no format
If only one of them is with data then formatted

Thank you very much in advance.
 
With A1:Bxxx selected and A1 the active cell

Format|conditional formatting
formula is:
=counta($a1:$b1)=1
 
Sorry for calling again I have spend quite a lot of time but no
success.
How can I apply the same logic if I have 4 or 5 columns.

Thank you
 
I don't have excel at home so I'm going from memory but

counta(A1:A4)<2 or however many null cells you want

you have to be sure the cells have nothing in them (including
deliberate/text nulls)

I've done exactly what you're looking for using counta but you may have
to play a little with it
 
Thank you for your kind response.

I have finally adapted Dave's help above to my needs:
Either leave blank or complete the record else just know colored
rows will be deleted.


=AND(COUNTA($A2:$F2)<>6,COUNTA($A2:$F2)<>0)


Thank you very much indeed



fatturtle yazdi:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top