单元格输入
=LOOKUP(RAND(),{0,0.25,0.5,0.75},{"A","B","C","D"})&TEXT(RAND()*10000,"0000")&LOOKUP(RAND(),{0,0.25,0.5,0.75},{"A","B","C","D"})&TEXT(RAND()*10000,"0000")&LOOKUP(RAND(),{0,0.25,0.5,0.75},{"A","B","C","D"})&TEXT(RAND()*10000,"0000")&LOOKUP(RAND(),{0,0.25,0.5,0.75},{"A","B","C","D"})&TEXT(RAND()*10000,"0000")
LOOKUP(RAND(),{0,0.25,0.5,0.75},{"A","B","C","D"})是随机生成一个0~0.9999的数,如果生成的数字大于0小于0.25,则显示A,0.25-0.50就显示B,以此类推;
TEXT(RAND()*10000,"0000")是随机生成一个0~0.9999的数,乘以10000后应该是一个随机的一到四位数(小数点后还有),再用TEXT函数将这个一到四位数强制显示为四位数;
上面两个公式用&连接起来就是一个A8469这样的字符串,然后再用&连接三个同样的字符串,就得到了你要的结果。