Conditional formatting copying down different in 2007?

User avatar
ErikJan
BronzeLounger
Posts: 1385
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Conditional formatting copying down different in 2007?

Post by ErikJan »

In Excel I can set conditional formatting in a cell to e.g. add a color if a formula is true like: =AND(V1<>W1,V1<>NA())

Then I double-click on the lower right cell dot to copy cell formulas and conf formatting down in the range. As the cond format is not absolute the formulas adapt to each cell e.g. for row 123: =AND(V123<>W123,V123<>NA())

I've always done it like this... in Excel 2007 however I cannot get this to work; no matter how I set the formula it doesn't adjust when I copy down in the range. What am I missing?

User avatar
HansV
Administrator
Posts: 80381
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Conditional formatting copying down different in 2007?

Post by HansV »

I just tried it in Excel 2007 SP2 and double-clicking the fill handle or dragging the fill handle extended the conditional formatting formula to the entire range. Looking at the rule, you'll still see the original formula (and the range it applies to), but it will be adjusted correctly.
Best wishes,
Hans

User avatar
ErikJan
BronzeLounger
Posts: 1385
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Conditional formatting copying down different in 2007?

Post by ErikJan »

Well... I'm still lost... I created the cond formula in W11 then copied it down. I'm showing the cond formula that I get when I selected cell W993.

OK, I can believe the formula behind the screen is still working but why is the cell not highlighted then? (the left column is V the right is W)... [W isn't NA() and is different from V]
You do not have the required permissions to view the files attached to this post.

User avatar
HansV
Administrator
Posts: 80381
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Conditional formatting copying down different in 2007?

Post by HansV »

The dialog you should look at is the Manage Rules dialog:
x83.png
As you can see, even if it is not entirely visible, the formula is the one for the cell in row 1, although a cell in row 5 is selected. The dialog clearly indicates that the formula applies to $C$1:$C$8.
If you click Edit Rule, you'll see the formula for cell C1 again, but this time it's not evident that it's the formula used for $C$1:$C$8. I admit that this is confusing.
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans

User avatar
ErikJan
BronzeLounger
Posts: 1385
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Conditional formatting copying down different in 2007?

Post by ErikJan »

Yeah, I got that far but why is my cond format not coloring my cell then???

User avatar
StuartR
Administrator
Posts: 13005
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Conditional formatting copying down different in 2007?

Post by StuartR »

ErikJan wrote:Yeah, I got that far but why is my cond format not coloring my cell then???
Does your formula work in any cell?

I don't think that =A1<>NA() is correct, I suspect you meant something like =NOT(ISNA(A1))
StuartR


User avatar
ErikJan
BronzeLounger
Posts: 1385
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Conditional formatting copying down different in 2007?

Post by ErikJan »

Yep, that was it... so simple... thanks to both for helping!

User avatar
Jan Karel Pieterse
Microsoft MVP
Posts: 658
Joined: 24 Jan 2010, 17:51
Status: Microsoft MVP
Location: Weert, The Netherlands

Re: Conditional formatting copying down different in 2007?

Post by Jan Karel Pieterse »

The CF manager in 2007 is a very bad piece of userinterface if you ask me. Try changing a conditional formatting rule which has been applied to multiple cells, for just one cell. Very, very difficult.

Also, be aware that 2007 has a known bug. If you copy a cell with CF on top of another cell with CF, you end up with BOTH sets of CF in the target cell. The original CF does NOT get replaced with the new CF.
Regards,

Jan Karel Pieterse
Excel MVP jkp-ads.com

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: Conditional formatting copying down different in 2007?

Post by Rudi »

Wow..thanks for that tip. Thats NEW!
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.

User avatar
ErikJan
BronzeLounger
Posts: 1385
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Conditional formatting copying down different in 2007?

Post by ErikJan »

Jan Karel Pieterse wrote:The CF manager in 2007 is a very bad piece of userinterface if you ask me. Try changing a conditional formatting rule which has been applied to multiple cells, for just one cell. Very, very difficult.

Also, be aware that 2007 has a known bug. If you copy a cell with CF on top of another cell with CF, you end up with BOTH sets of CF in the target cell. The original CF does NOT get replaced with the new CF.
Guess that with Office 2010 coming there's no chance this will be fixed in a -say- Office2007 SP3, right? Is the interface improved in O2010 and the bug removed as far as you can tell?

(more generic... as a new user of 2007, via the MS Homeuser program -I work for a company who has >30000 licenses worldwide- I might be able to get O2010 for maybe 15 euro's [legally that is], would it be worth my while to go to 2010? What would that bring me extra compared with 2007?)

User avatar
Jan Karel Pieterse
Microsoft MVP
Posts: 658
Joined: 24 Jan 2010, 17:51
Status: Microsoft MVP
Location: Weert, The Netherlands

Re: Conditional formatting copying down different in 2007?

Post by Jan Karel Pieterse »

The bug has been fixed. Haven't checked the UI yet.
I'd go for the upgrade, quite some interesting new features and bugfixes. And for only 15 Euro....
Regards,

Jan Karel Pieterse
Excel MVP jkp-ads.com