Rename duplicates with random alphabets in a column - Excel

后端 未结 2 444
庸人自扰
庸人自扰 2021-01-16 20:07

I have a list of 500 names in column A.

1  name1
2  name2
3  name3
4  name1
5  name2
6  name3
7  name1
8  name2
9  name3
..

And i need to

2条回答
  •  北荒
    北荒 (楼主)
    2021-01-16 20:17

    Without using VBA - you can't edit the cells themselves, except using formatting.

    You could however, use a helper column and use a formula on these lines to accomplish this:

    =IF(A2=A1,CHOOSE(RANDBETWEEN(1,26),"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z")&" "&A2,A2)
    

    Bear in mind that because this is random, there is a small chance of two consecutive letters - so you may need to use another formula to check for this and make a small amount of manual tweaks.

提交回复
热议问题