简体   繁体   中英

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. 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. 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. 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. I have tried "lesser than" $C44 , "lesser than" $C$44 , and even "lesser than" insert formula above . Any further ideas? Thank you very much in advance!

An example can be seen here: http://imgur.com/dU0TGVa , where "Food/Other Allow." keeps track of the remaining I can spend taken from the original $600. I am formatting Row 33 , coloring them red if they are lesser than -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. Are you sure you have automatic calculations enabled?

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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