Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
198 views
in Technique[技术] by (71.8m points)

SharePoint Name to Number

I am trying to convert a name in a list to number I have a column with the title Name and it contains multiple name and I want to create a column which will take the name in the name column and change it to number, this formula works =IF(Name="Jhon","2") if I want to add more names, numbers it wont work for example, my formula is as follows.

=IF(Name ="Jhon","2")
=IF(Name ="Mike","1") 
=IF(Name ="Jane","3")

thanks.

question from:https://stackoverflow.com/questions/65939876/sharepoint-name-to-number

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The formula should be like this:

=IF(Name ="Jhon","2", IF(Name ="Mike","1",IF(Name ="Jane","3")))

For more, you could refer to this article:

https://support.microsoft.com/en-us/office/if-function-7025be14-5665-43d0-af20-8293d1fe9d3a


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...