How to create a GUID in Excel?

后端 未结 14 2228
天涯浪人
天涯浪人 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:45

    This is not a problem with the function at all.

    It took me a bit of digging, but the problem is in copying and pasting. Try copying this: RANDBETWEEN(0,6553‌​5) string, posted in your original question, and paste it into a Hex Editor, then you'll see that there are actually two null characters in the 65535:

    00000000  52 41 4E 44 42 45 54 57 45 45 4E 28 30 2C 36 35  RANDBETWEEN(0,65
    00000010  35 33 00 00 35 29                                53‌..​5)
    

提交回复
热议问题