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 中找到一行的长度(只计算非空的单元格)?先感谢您。
如果您对“长度”的想法与最后一个非空单元格匹配: 列中的最后一个非空单元格
=INDEX(A:A,MAX((A:A<>"")*(ROW(A:A))))
Excel 2007+