![]() |
Cell formating
I had hoped to do this with Conditional Formatting, but it does not seem to
be allowed. If cell A3 is not blank I want to change the border format on cells A5, A7 and A8 with the lines which in effect crosses out the cell. |
Cell formating
Put your conditional format in cells A5, A7, and A8 and use the formula
=A3<"" in each cell. HTH Otto "Patrick C. Simonds" wrote in message ... I had hoped to do this with Conditional Formatting, but it does not seem to be allowed. If cell A3 is not blank I want to change the border format on cells A5, A7 and A8 with the lines which in effect crosses out the cell. |
Cell formating
Otto's reply tells you how to apply a conditional format based on a different
cell (ie the format for cells A5, A7 & A8 are based on cell A3), however you may not be able to apply the border style that you want. I don't know what version of Excel you're using, but in Excel 2003 there are limitations to the kinds of broders you can apply with conditional formatting. You can only apply thin (not bold) borders on the cell edges. The diagonal "border" that I think you're referring to is not available to use with conditional formatting. You could instead apply the strikethrough font style, or else put a hatch pattern or grey colour in the cell (ie make the cell appear "greyed out"). Both of those are available as conditional formats in Excel 2003. You could use VBA (macros) to do the diagonal border if you're keen. You could write code which applies the chosen border style based on the condition. To get it to apply automatically when Cell A3 changes you would need to put the code in the Change event code for that sheet. If you want more info on that, ask. -- If a post answers your question, please mark it as the answer. "Patrick C. Simonds" wrote: I had hoped to do this with Conditional Formatting, but it does not seem to be allowed. If cell A3 is not blank I want to change the border format on cells A5, A7 and A8 with the lines which in effect crosses out the cell. |
Cell formating
Thanks I was afraid that was the case so I will try one of your other
solutions "Cringing Dragon" wrote in message ... Otto's reply tells you how to apply a conditional format based on a different cell (ie the format for cells A5, A7 & A8 are based on cell A3), however you may not be able to apply the border style that you want. I don't know what version of Excel you're using, but in Excel 2003 there are limitations to the kinds of broders you can apply with conditional formatting. You can only apply thin (not bold) borders on the cell edges. The diagonal "border" that I think you're referring to is not available to use with conditional formatting. You could instead apply the strikethrough font style, or else put a hatch pattern or grey colour in the cell (ie make the cell appear "greyed out"). Both of those are available as conditional formats in Excel 2003. You could use VBA (macros) to do the diagonal border if you're keen. You could write code which applies the chosen border style based on the condition. To get it to apply automatically when Cell A3 changes you would need to put the code in the Change event code for that sheet. If you want more info on that, ask. -- If a post answers your question, please mark it as the answer. "Patrick C. Simonds" wrote: I had hoped to do this with Conditional Formatting, but it does not seem to be allowed. If cell A3 is not blank I want to change the border format on cells A5, A7 and A8 with the lines which in effect crosses out the cell. |
All times are GMT +1. The time now is 10:36 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com