简体   繁体   中英

How to use COUNTIF for conditional formatting in Excel

I am trying to use a formula to highlight cells which exist in another range with conditional formatting. The formula I am using is:

=COUNTIF(VerticalList,A1)=0

When pressing OK, Excel tells me that there is a problem with the formula. I don't see the problem. Can someone help me out? What is wrong with my formula?

截屏

The other day another SO user had a similar problem . I think you cannot use a structed reference in a conditional formatting formula.

Try:

=COUNTIF(INDIRECT("VerticalList"),A1)=0

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