Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 VBA 中为 excel 编写一个函数。=findval("Word",B:B),我想在范围 B:B(这些是短字符串)中搜索一个单词。如果该词存在,则返回是或否。到目前为止,我可以在字符串中搜索一个词,但我不能让它在一个范围内工作。
工作表功能就足够了吗?
=IF(COUNTIF(B:B,"*"&"Word"&"*"),"Yes","No")