简体   繁体   English

如何根据仅一个单元格的值有条件地格式化整个行?

[英]How to conditionally format whole row depending on ONLY ONE cell value?

Please forgive my inexperience if this is a simply-answered question, but amidst all my Googling I just cannot seem to figure this out. 如果这是一个简单回答的问题,请原谅我的经验不足,但是在我所有的谷歌搜索中,我似乎都无法弄清楚。 I have a self-made "budget" sheet of sorts, in which I set a goal to spend, for example, $600 this month. 我有一张自制的“预算”表,其中设定了一个目标,例如,本月支出600美元。 Starting out, this means that I am allowed to spend 600/31 or 600/30 daily, depending on how many days are in the current month. 首先,这意味着我可以每天花费600/31或600/30,具体取决于当月的天数。 As I spend throughout the month, I run a formula to calculate how the daily spending allowance changes depending on the days of the month with this formula: 当我整个月都在花钱时,我运行一个公式来计算每日支出津贴如何根据该月的天数变化:

=A37/(EOMONTH(TODAY(),0)-TODAY())

Where cell A37 is my 600/31 or 600/30. 其中单元格A37是我的600/31或600/30。 I simply want to know how to format a row - containing what I've spent for the whole day - and color it red depending on ONLY THIS ONE CELL'S VALUE . 我只是想知道如何格式化行-包含我一整天花的钱-并根据唯一一个细胞的值将其涂成红色。 Right now, I have the row colored red if the values are lesser than -19.35, which is -600/31, but I want the format to trigger depending on the running calculated cell rather than a number defined by me. 现在,如果值小于-19.35(即-600/31),则该行显示为红色,但是我希望根据正在运行的计算单元格而不是我定义的数字来触发格式。 I have tried "lesser than" $C44 , "lesser than" $C$44 , and even "lesser than" insert formula above . 我已经尝试了“小于” $ C44 ,“小于” $ C $ 44 ,甚至“小于” $ 上面的插入公式 Any further ideas? 还有其他想法吗? Thank you very much in advance! 提前非常感谢您!

An example can be seen here: http://imgur.com/dU0TGVa , where "Food/Other Allow." 在此处可以看到一个示例: http : //imgur.com/dU0TGVa ,其中“食物/其他允许”。 keeps track of the remaining I can spend taken from the original $600. 跟踪我可以从原来的$ 600中提取的剩余金额。 I am formatting Row 33 , coloring them red if they are lesser than -19.35 . 我正在格式化第33行 ,如果它们小于-19.35,则将它们着色为红色。

Setting up your $ left as: 将您的$设置为:

=600-SUM(C33:ZZ33)

And your rolling allowance as 和您的滚动津贴为

=A37/(EOMONTH(TODAY(),0)-TODAY())

Like you said, definitely works if you select your cells and go to conditional formatting, highlight, then less than $C$44, picture attached (different cell locations) for proof. 就像您说的那样,如果选择单元格并进行有条件的格式化,突出显示,然后贴上少于$ C $ 44的图片(不同的单元格位置)进行证明,则绝对可行。 Are you sure you have automatic calculations enabled? 您确定已启用自动计算吗?

在此处输入图片说明

暂无
暂无

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

相关问题 如何根据单元格值格式化整个工作表 - How to format the whole sheet depending on a cell value 是否可以基于另一个单元格中的值有条件地使用数据条格式化一个单元格? - Is it possible to conditionally format one cell with a databar based on a value in another cell? VBA 如何根据该范围内一个单元格的值有条件地格式化一系列单元格? - VBA How do I conditionally format a range of cells based on the value of one cell in that range? 如何根据单元格中的值复制行 - How to copy a row depending on a value in a cell 如何根据第一个单元格是否为空来有条件地格式化 Excel VBA 中的一行? - How to conditionally format a row in Excel VBA based on if first cell is empty? 如何使用python xlsxwriter有条件地格式化单元格值 - how to use python xlsxwriter to conditionally format on cell value 如果单元格行包含“ z”,则有条件地格式化A列 - Conditionally format column A if cell row contains “z” 根据第一个单元格有条件地对单元格进行格式化 - Format cells in row conditionally based on the first cell Excel:仅根据一个单元格的值或公式填充一系列单元格 - Excel: Fill a range of cells with a value or formula depending on only one cell 在Excel for Mac 2011中,如何根据该行中一个单元格中的值格式化整个行? - In Excel for Mac 2011 how do I format an entire row based on the value in one cell in that row?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM