Conditional formatting in excel 2007

Solved/Closed
NS - Feb 9, 2011 at 03:31 PM
 Toast - Feb 16, 2011 at 10:05 PM
Hello,
I am trying to apply conditional formatting to a calculated cell (For ex A).

Criteria: If Cell A value = Cell B or " - " then dont apply any conditional formatting. Else, highlight the cell in Red.

I thikn it is simple but for some reason i am not able to apply conditional formatting with this rule/formula. Please help ASAP.

Thx

1 reply

rizvisa1
Posts
4479
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
770
Feb 9, 2011 at 03:41 PM
It would have helped had to posted your formula

you need to do some thing like this

=AND($A1<>$B1,OR($A1<>"",$B1<>""),AND($A1<>" - ",$B1<>" - "))
2
Thank you so much..it worked. Another question..is there a shortcut to apply this formula to column or rows without copy and pesting? I have like 20 rows and 6 columns..:(

Your help is really appreciated.
0
rizvisa1
Posts
4479
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
770
Feb 9, 2011 at 04:05 PM
Lets say you want to apply this rule to column A and B fully
then click of Cell A1 first
then select column A and B
go to conditional format and apply the formula for A1 cell
It will copy for next rows on its own. Basic idea is that first you select the first cell of the range, then select your range and finally you apply the format condition for that row or column (depends on what you want) but the first cell of the range
0
I selected E11 to K11 cells and applied formatting formula of... =AND($E$11<>$E$39,OR($E$11<>" - "))....

But it still shows same formula when i check formula for F11...instead it should be...... =AND($F$11<>$F$39,OR($F$11<>" - "))....

When i try removing $ sign; i.e ... =AND(E$11<>E$39,OR(E$11<>" - "))....it didnt work either.

Can you please advice. Thank you very much.
0
rizvisa1
Posts
4479
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
May 5, 2022
770
Feb 9, 2011 at 04:32 PM
Could you please upload a sample EXCEL file WITH sample data, macro, formula , conditional formatting etc on some shared site like https://authentification.site , http://docs.google.com, http://wikisend.com/ , http://www.editgrid.com etc
AND post back here the link to allow better understanding of how it is now and how you foresee. Based on the sample book, could you re-explain your problem too.


Note:
your data need not be to be real data but a good representative of how data looks like
0