简体   繁体   English

如果另一个单元格 = “X”,则突出显示此单元格规则

[英]IF another cell = “X” then highlight this cell rule

Looking for some help with my rental property analysis spreadsheet.寻求有关我的出租物业分析电子表格的帮助。 I have different criteria when evaluating a single family residence as compared to a duplex or triplex.与复式或三层相比,我在评估单户住宅时有不同的标准。 I analyze properties by how many doors they have.我根据房产的门数来分析房产。 My main evaluation criteria is $100 or more of cash flow per units.我的主要评估标准是每单位 100 美元或更多的现金流。 So if it's a single family, I'm looking for $100+ cash flow, or if it's a duplex $200+ cash flow, etc. I like to see the cash flow cell highlighted in GREEN or RED when it does/does not meet these conditions.因此,如果它是一个家庭,我正在寻找 100 美元以上的现金流,或者如果它是一个 200 美元以上的复式现金流等。我喜欢在满足/不满足这些条件时看到以绿色或红色突出显示的现金流单元格条件。 I've managed to get cell J5 to show 200 for a duplex and 100 for a single family.我已经设法让单元格 J5 显示 200 个复式和 100 个单个家庭。 Can someone help me with the rule I'd need in cell H5?有人可以帮我解决我在单元格 H5 中需要的规则吗? It should go something like "If J5=100 then H5=>100 highlight green or H5<100 highlight red" or "If J5=200 then H5=>200 highlight green or H5<200 highlight red".它应该 go 类似于“如果 J5=100 则 H5=>100 突出显示绿色或 H5<100 突出显示红色”或“如果 J5=200 则 H5=>200 突出显示绿色或 H5<200 突出显示红色”。

在此处输入图像描述

Thank you a ton in advance!提前谢谢你!

This will result in two separate rules.这将导致两个单独的规则。


Use the format only cells that contain option under new formatting rules:在新格式规则下使用format only cells that contain格:

在此处输入图像描述

You can set "greater than or equal to" for your first rule, compared to J5 ... you don't need to state specifically "200" or "100" as that will be dictated by J5 .J5相比,您可以为您的第一条规则设置“大于或等于”......您不需要 state 特别是“200”或“100”,因为这将由J5决定。 This would be the green fill.这将是绿色填充。

Your second rule on the SAME CELL will be "Less than" J5 , which would be your red fill.您对 SAME CELL 的第二条规则将是“小于” J5 ,这将是您的红色填充。

在此处输入图像描述

enter image description here在此处输入图像描述

Here's a screenshot of the rules I have for the cell but it doesn't seem to be working?这是我为单元格设置的规则的屏幕截图,但它似乎不起作用?

Could it have anything to do with my formula for J5?这和我的J5公式有什么关系吗? It is =IF(H15="Duplex", "200", IF(H15="SFR", "100"))它是 =IF(H15="双工", "200", IF(H15="SFR", "100"))

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

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