简体   繁体   English

基于另一个单元格中颜色值的单元格颜色

[英]Cell color based on colour value in another cell

I'd ideally like to do this without VBA but if that's the only option that makes sense I guess I'll go with that :) 理想情况下,我想在没有VBA的情况下执行此操作,但如果那是唯一有意义的选项,我想我会考虑使用:)

I have a set of cells that require formatting and then another set of cells that define my style, ie background color, font color. 我有一组需要格式化的单元格,然后还有另一组定义我的样式(即背景色,字体颜色)的单元格。 Is it possible to have Excel set the background color or a cell font based on instructions in a cell. 是否可以让Excel根据单元格中的指令设置背景颜色或单元格字体。 If I can get even just the background color that would be great. 如果我什至可以得到很好的背景色。

Cell
1
2
3

Instructions 使用说明

 Background Color  FFFFF
 Font Color        FFFFF

FYI I'm using Excel 2010 on Windows 7. Some background : I have tables that are styled so headers and certain rows take specific colours but for the next report iteration I'd like different colours assigned but want to automate that formatting. 仅供参考,我在Windows 7上使用Excel2010。某些背景:我设置了表格样式,因此标题和某些行采用了特定的颜色,但是对于下一次报表迭代,我希望分配不同的颜色,但希望自动执行该格式。

Id suggest trying to use Conditional Formatting tools. ID建议尝试使用条件格式设置工具。 They are pretty flexible 他们很灵活

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM