Hello all, I have a spreadsheet (A3:AE25) I would like to conditionally format based on a specific rule type. First Two row are headers that arent to be touched.
Column C houses rules anywhere from 1-20. As an example, Rule 1 requires fields D3 and F3 to have a value so I would want this highlighted in green if there is a value present. If there is a blank value or text containing the word “Required”, this field should be formatted red.
Rule 1 might also have fields that are optional like E3 and G3. I would like these to be highlighted in Orange if there is a value present or if it has the text “optional” in it. It should be highlighted in red if there is a blank.
Other fields that are not supposed to have any values values should remain blank without any formats, but if it does have a value, I would like this to have a background color of red.
So basically it would be an IF statement (looking at column C, if rule type = 1, then....) There are multiple rules that have varying fields of required/optional so a VBA script that would conditionally format these specified cells would really make things easier and reduce human error. Any help in creating a template script for two rules would be great, the rest I would be able to add myself. Thanks in Advance!!
Column C houses rules anywhere from 1-20. As an example, Rule 1 requires fields D3 and F3 to have a value so I would want this highlighted in green if there is a value present. If there is a blank value or text containing the word “Required”, this field should be formatted red.
Rule 1 might also have fields that are optional like E3 and G3. I would like these to be highlighted in Orange if there is a value present or if it has the text “optional” in it. It should be highlighted in red if there is a blank.
Other fields that are not supposed to have any values values should remain blank without any formats, but if it does have a value, I would like this to have a background color of red.
So basically it would be an IF statement (looking at column C, if rule type = 1, then....) There are multiple rules that have varying fields of required/optional so a VBA script that would conditionally format these specified cells would really make things easier and reduce human error. Any help in creating a template script for two rules would be great, the rest I would be able to add myself. Thanks in Advance!!
Last edited: