简体   繁体   中英

if error or blank, highlight cell

I have an excel file where row AP has a list of emails. This list of emails is generated by a VLOOKUP from another file. I want to highlight cell H4 if my range in column AP has a blank or error message in one of the cells. 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")}

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