根据单元格范围内的字母高亮显示列中的单元格 [英] Highlight cells in a column depending on a letter present in cell range

查看:118
本文介绍了根据单元格范围内的字母高亮显示列中的单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表示项目进展的列(百分比),如果相应的行中没有字母 P ,则应显示为红色。使用以下公式发生一些非常奇怪的事情:

  = ISERROR(FIND(p,$ H5:$ Y65))

所以我设置了 P 不是一个错误并且不包含 P 的单元格应格式化为红色。但是,使用这个公式,只有在第一列中有一个 P ,即H是格式化的。公式似乎忽略了H之后的所有其他列。



任何建议?

解决方案

查找没有您要查找的功能,它会在 尝试从相关列中的第5行到第65行选择,然后选择HOME>样式 - 条件格式,新规则...,使用公式确定要格式化的单元格格式化值公式是真的:

  = ISERROR(MATCH(P,$ H5:$ Y5,0) )

格式化... ,选择红色填充,确定。



假设 P 是整个单元格内容,不仅仅是其中的一部分。


I have a column indicating progress on projects (in percentages) which should turn red if in the corresponding rows there is no letter P. With the following formula something very strange happens:

=ISERROR(FIND("p",$H5:$Y65))

So I have set P not being an error and the cell that doesn't contain P should be formatted red. However, with this formula, only if there is a P in the first column i.e. H does it format. The formula seems to ignore all the other columns after H.

Any suggestions?

解决方案

FIND does not have the functionality you seek, it searches within a string not within an array. Try selecting from row 5 to row 65 in the relevant column and HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::

=ISERROR(MATCH("P",$H5:$Y5,0))

Format..., select red fill, OK, OK.

Assumes P is entire cell content, not merely part of.

这篇关于根据单元格范围内的字母高亮显示列中的单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆