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.
我正在尝试使用包含带有文本和数字的 ID 号的列的最大公式显示下一个 ID 号(例如,XXX0043)。有人可以帮忙吗?
假设您的 ID 在 A1:A10 中,并且数字部分始终是最后 4 个字符:
=MAX(--right(A1:A10,4))
确认公式时使用CONTROL++而不是. 当 { } 出现在您的公式周围时,您将知道您已经做对了。请注意,不能手动添加 { }。SHIFTENTERENTER
更新:基于 Solar Mikes 评论
="xxx"&RIGHT("0000"&MAX(--right(A1:A10,4)),4)
假设 xxx 没有改变……如果 xxx 改变了,那么它会更复杂一些。