How to create a GUID in Excel?

后端 未结 14 2423
天涯浪人
天涯浪人 2021-01-30 20:16

I need a function to add a GUID to cells in excel. I found this previous question on stackoverflow, but it is not working. It suggests the following function:

=CO         


        
14条回答
  •  野性不改
    2021-01-30 20:47

    The formula for French Excel:

    =CONCATENER(
    DECHEX(ALEA.ENTRE.BORNES(0;4294967295);8);"-";
    DECHEX(ALEA.ENTRE.BORNES(0;42949);4);"-";
    DECHEX(ALEA.ENTRE.BORNES(0;42949);4);"-";
    DECHEX(ALEA.ENTRE.BORNES(0;42949);4);"-";
    DECHEX(ALEA.ENTRE.BORNES(0;4294967295);8);
    DECHEX(ALEA.ENTRE.BORNES(0;42949);4))
    

    As noted by Josh M, this does not provide a compliant GUID however, but this works well for my current need.

提交回复
热议问题