简体   繁体   English

如果错误或空白,突出显示单元格

[英]if error or blank, highlight cell

I have an excel file where row AP has a list of emails.我有一个 excel 文件,其中 AP 行有一个电子邮件列表。 This list of emails is generated by a VLOOKUP from another file.此电子邮件列表是由另一个文件的VLOOKUP生成的。 I want to highlight cell H4 if my range in column AP has a blank or error message in one of the cells.如果我在列 AP 中的范围在其中一个单元格中有空白或错误​​消息,我想突出显示单元格 H4。 This formula should do the trick but i don't know where I am going wrong.这个公式应该可以解决问题,但我不知道我哪里出错了。

{=IF(ISNA(AP7:AP22),"Error column AP","Yes")}

I could also use a Macro if easier.如果更容易,我也可以使用宏。

由于您的公式仅在出现 #N/A 错误时才会标记,因此您还需要修改公式以查找空格。

{=IF(SUM(IF(ISNA(AP7:AP22),1,IF(AP7:AP22="",1,0)))>0,"Error column AP","Yes")}

暂无
暂无

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

相关问题 如果日期格式不正确或空白,如何突出显示单元格? - How to highlight cell if date format is incorrect or blank? 突出显示空白单元格,其中相邻列中的单元格不为空 - Highlight blank cell, where cell in adjacent column is not empty 如果在不同工作表中比较时空白,如何在excel中突出显示单元格? - How to highlight the cell in excel if its blank on comparison in different sheets? 使用条件格式突出显示基于相邻单元格的单元格,但前提是要格式化的单元格为空白 - Using Conditional Formatting to highlight a cell based on an adjacent cell, but only if the cell being formatted is blank Excel 如果 A 列中的单元格和 B 列中的单元格为空白而不是 G 列中的突出显示单元格,则条件格式 - Excel Conditional Formatting if cell in Column A AND the cell in Column B are blank than highlight cell in Column G 如果单元格突出显示,则 - If cell is highlight then 在 Google 表格中将单元格中的 #DIV/0 错误替换为 0 或空白 - Replace #DIV/0 error in cell to 0 or blank in Google Sheets 如果左侧单元格为空,组合框将重置为第一个“空白”条目 - Combobox resets to first “blank” entry if cell on left is blank Error 检查单元格是否为空白,如果是,填充它,然后将结果与旧值进行比较,如果不同,使用 VBA 突出显示? - Checking if cell is blank, if it is, fill it, then compare result to old value & if different, highlight using VBA? 如果单元格为空白,则返回空白单元格 - Return a blank cell if the cell is blank
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM