[英]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.