SOLVED

Highlighting multiple rows with conditional formatting and copying with relative references

%3CLINGO-SUB%20id%3D%22lingo-sub-2730559%22%20slang%3D%22en-US%22%3EHighlighting%20multiple%20rows%20with%20conditional%20formatting%20and%20copying%20with%20relative%20references%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2730559%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20create%20a%20file%20to%20track%20contracts%2C%20and%20would%20like%20to%20highlight%203%20rows%20tan%2C%20green%2C%20or%20red%20based%20on%20whether%20the%20contract%20is%20Paid%2C%20Active%2C%20or%20Expired.%26nbsp%3B%20I%20can%20get%20the%203%20rows%20(%24A%241%3A%24H%243)%20to%20highlight%20correctly%20but%20only%20when%20I%20use%20an%20absolute%20reference%20(%24H%242%3D%22PAID%22).%26nbsp%3B%20If%20I%20try%20using%20only%20%24H2%20the%20colors%20get%20jumbled%20and%20do%20not%20highlight%20across%20the%203%20rows%20correctly.%26nbsp%3B%20If%20I%20keep%20the%20absolute%20reference%20and%20then%20try%20to%20copy%2Fpaste%20those%20rows%20(to%20add%20a%20new%20contract)%20the%20conditional%20formatting%20will%20move%20the%20Applies%20to%20area%20correctly%2C%20but%20still%20keeps%20the%20absolute%20reference%20as%20%24H%242.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20anyone%20have%20any%20suggestions%3F%26nbsp%3B%20I%20suppose%20I%20could%20change%20it%20to%20only%20highlight%20the%20top%20row%20if%20highlighting%20multiple%20rows%20is%20the%20problem%2C%20but%20I%20prefer%20the%20look%20of%20the%203%20rows%20highlighted.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20any%20assistance!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2730559%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2731291%22%20slang%3D%22en-US%22%3ERe%3A%20Highlighting%20multiple%20rows%20with%20conditional%20formatting%20and%20copying%20with%20relative%20references%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2731291%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1149367%22%20target%3D%22_blank%22%3E%40stuckonweb%3C%2FA%3E%26nbsp%3BThe%20only%20way%20I%20could%20get%20this%20to%20work%20was%20to%20add%20the%20status%20in%20each%20of%20the%203%20header%20rows%20in%20%26nbsp%3Bcolumn%20I%20and%20reference%20the%20CF%20rule%20to%20%24I1.%20Have%20hidden%20column%20I%20in%20the%20attached%20workbook.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I am trying to create a file to track contracts, and would like to highlight 3 rows tan, green, or red based on whether the contract is Paid, Active, or Expired.  I can get the 3 rows ($A$1:$H$3) to highlight correctly but only when I use an absolute reference ($H$2="PAID").  If I try using only $H2 the colors get jumbled and do not highlight across the 3 rows correctly.  If I keep the absolute reference and then try to copy/paste those rows (to add a new contract) the conditional formatting will move the Applies to area correctly, but still keeps the absolute reference as $H$2.

 

Does anyone have any suggestions?  I suppose I could change it to only highlight the top row if highlighting multiple rows is the problem, but I prefer the look of the 3 rows highlighted.

 

Thanks for any assistance!

2 Replies
best response confirmed by stuckonweb (New Contributor)
Solution

@stuckonweb The only way I could get this to work was to add the status in each of the 3 header rows in  column I and reference the CF rules to $I1. Then you can copy the formatting as you would like to. Have hidden column I in the attached workbook.

@Riny_van_EekelenThat works great!  Thank you so much - you saved my sanity! : )