Excel通过公式生成guiduuid

Posted 无羽亦逍遥

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Excel通过公式生成guiduuid相关的知识,希望对你有一定的参考价值。

 

1、Excel生成guid,uuid  格式:600d65bc-948a-1260-2217-fd8dfeebb1cd 

=LOWER(CONCATENATE(DEC2HEX(RANDBETWEEN(0,POWER(16,8)),8),"-",DEC2HEX(RANDBETWEEN(0,POWER(16,4)),4),"-","4",DEC2HEX(RANDBETWEEN(0,POWER(16,3)),3),"-",DEC2HEX(RANDBETWEEN(8,11)),DEC2HEX(RANDBETWEEN(0,POWER(16,3)),3),"-",DEC2HEX(RANDBETWEEN(0,POWER(16,8)),8),DEC2HEX(RANDBETWEEN(0,POWER(16,4)),4)))

 

2、Excel生成guid,uuid  格式:600d65bc948a12602217fd8dfeebb1cd 

=LOWER(CONCATENATE(DEC2HEX(RANDBETWEEN(0,POWER(16,8)),8),"",DEC2HEX(RANDBETWEEN(0,POWER(16,4)),4),"","4",DEC2HEX(RANDBETWEEN(0,POWER(16,3)),3),"",DEC2HEX(RANDBETWEEN(8,11)),DEC2HEX(RANDBETWEEN(0,POWER(16,3)),3),"",DEC2HEX(RANDBETWEEN(0,POWER(16,8)),8),DEC2HEX(RANDBETWEEN(0,POWER(16,4)),4)))

3、Excel生成guid,uuid  格式:4E3B14BB-ECF3-7B2E-A5A2-FE6E1A52DE6A 

=CONCATENATE(DEC2HEX(RANDBETWEEN(0,POWER(16,8)),8),"-",DEC2HEX(RANDBETWEEN(0,POWER(16,4)),4),"-","4",DEC2HEX(RANDBETWEEN(0,POWER(16,3)),3),"-",DEC2HEX(RANDBETWEEN(8,11)),DEC2HEX(RANDBETWEEN(0,POWER(16,3)),3),"-",DEC2HEX(RANDBETWEEN(0,POWER(16,8)),8),DEC2HEX(RANDBETWEEN(0,POWER(16,4)),4))

4、Excel生成guid,uuid  格式:4E3B14BBECF37B2E-A5A2FE6E1A52DE6A  

=CONCATENATE(DEC2HEX(RANDBETWEEN(0,POWER(16,8)),8),"",DEC2HEX(RANDBETWEEN(0,POWER(16,4)),4),"","4",DEC2HEX(RANDBETWEEN(0,POWER(16,3)),3),"",DEC2HEX(RANDBETWEEN(8,11)),DEC2HEX(RANDBETWEEN(0,POWER(16,3)),3),"",DEC2HEX(RANDBETWEEN(0,POWER(16,8)),8),DEC2HEX(RANDBETWEEN(0,POWER(16,4)),4))

以上是关于Excel通过公式生成guiduuid的主要内容,如果未能解决你的问题,请参考以下文章

如何做一个公式,使excel能用code128a字体生成可识别的条码

使用 Excel 公式填充列

Excel公式知多少?

通过公式 EXCEL 制表符分隔导出

excel怎么随机生成字母

方法ROUND(A1,2)试了,但excel公式自动生成的数有的是一位小数有的是二位小数。