• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Copying conditional formatting with cell references

hakeae

New Member
I've looked though previous posts but can't see the answer to this one - when a CF rule involves a referenced cell, using format paint doesn't update the cell references (as happens when copying formulae) but maintains the original cell reference in the rule, so the CF in the pasted cells is not correct. What I've been doing is setting up each CF individually which is a drag :( . There's probably a really simple way to do it ... Thanks for your help.
Example attached: staff can work either 4hr or 8hr shifts but their total hours per month must equal their contracted hours. CF is set up on D7 (?=D4) but format paint to E7 keeps the rule at (?=D4) while I want (?=E4).
 

Attachments

  • Book1.xlsx
    12 KB · Views: 5
Take a look at the attached - If I've properly divined your problem, it may help you ...
 

Attachments

  • Hakeae - DME.xlsx
    12.4 KB · Views: 7
You have to setup CF formula allowing for relativeness of the functions
So where you have D7 maybe it should be locked to Columns using $D7 or Rows D$7 or both Columns and Rows using $D$7
 
Take a look at the attached - If I've properly divined your problem, it may help you ...

David, if you look at the rule in the other cells, eg I7, the formula for CF is still referencing E4 & E7:

upload_2016-3-28_13-2-27.png

See my problem :/ ...
 

Attachments

  • upload_2016-3-28_12-59-32.png
    upload_2016-3-28_12-59-32.png
    8.8 KB · Views: 11
You have to setup CF formula allowing for relativeness of the functions
So where you have D7 maybe it should be locked to Columns using $D7 or Rows D$7 or both Columns and Rows using $D$7
OK thanks I'll try this :).
 
ha ha here we are a year later and I still can't get it to work ... searching again & found my own post :rolleyes:.
 
ha ha here we are a year later and I still can't get it to work ... searching again & found my own post :rolleyes:.
I've found the solution on another website - use Formula rather than Cell Contents algorithms, select all column cells for application of formula, and create formula for first cell using eg "=$A3>=$B3". Excel will apply the formula appropriately to all selected cells. This may be really basic to some of you but it has caused me considerable frustration for some time! Thanks for responding, I appreciate it!
 
Back
Top