SharePoint List Column Validation

Weronika Tomaney 1 Reputation point
2022-07-20T14:38:35.557+00:00

I'm trying to create a column validation for the reference number in the following format: P - yyyy-mm-xxxx
Also, is it possible to allow users to enter more than one reference number?

Microsoft 365 and Office SharePoint Development
{count} votes

1 answer

Sort by: Most helpful
  1. Renjie Sun-MSFT 2,861 Reputation points Microsoft Employee
    2022-07-21T08:39:38.22+00:00

    Hi @Weronika Tomaney ,

    You could use below formula to validate the column.

    =NOT(ISERROR(SEARCH("?-????-??-????",[column name],1)))

    The following steps are my testing process:

    1.Add formula.
    223044-image.png

    2.Add item failed with this validation.
    222960-image.png
    223052-image.png
    3.Add item successfully with validation.
    222947-image.png

    223006-image.png

    Per my research, multiple reference numbers cannot be validated.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.