excel中怎么批量随机生成十一位的字母加数字,前2-3位是相同的数字或字母?

2024-12-27 11:20:03
推荐回答(3个)
回答1:

打开EXCEL,任意单元格输入公式:
="AA"&MID(ROUND(RAND(),9),3,9)
得到的就是前两位是AA,后面是9位随机数字。

回答2:

3个字母:
=REPT(CHAR(RANDBETWEEN(65,90)),3)&TEXT(RANDBETWEEN(1,99999999),"00000000")
2个字母:
=REPT(CHAR(RANDBETWEEN(65,90)),2)&TEXT(RANDBETWEEN(1,999999999),"000000000")

回答3:

="A1B"&RIGHT(A1&MID(A2,3,4),8)


A列先用rand生成一个随机数