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.
因此,我使用 left 函数获取字符串的前 4 个字符,我需要使用它运行 vlookup,但它找不到匹配项,因为它正在查看数字。
我想在宏中执行此操作,所以我不确定语法。有人可以帮忙吗?
使用val()函数
例如,如果 x = 5 并且存储为字符串,您也可以:
x = x + 0
并且新的 x 将存储为数值。