Some organizations do not want Users to modify Opportunities once they have been closed, regardless of whether they are 'won' or 'lost.'
Here are two approaches to preventing Users from editing Closed or Closed Won Opportunity records. The examples below use example profile IDs in the formula syntax. Note that the IDs used below will vary by organization.
In Salesforce Classic: Setup | Customize | Opportunities | Validation Rule
In Lightning Experience: Gear icon | Setup | Click Object Manager | Opportunity | Validation Rules
CLOSED
The following validation rule will only allow Users to edit closed Opportunities if they are assigned to a Profile ID listed (For example, System Administrator "00et0000000q111" or Sales VP "00et0000000q222") will be able to edit the Opportunity.
Validation rule syntax:
AND(
PRIORVALUE( IsClosed ) = True,
NOT(OR(
$Profile.Id = "00et0000000q111",
$Profile.Id = "00et0000000q222"))
)
CLOSED WON
The following validation rule will only allow Users to edit closed or won Opportunities if they are assigned to single profile ID below (For example, System Administrator or "00et0000000q111") will be able to edit the Opportunity.
AND(
ISPICKVAL(PRIORVALUE(StageName),"Closed Won"),
NOT($Profile.Id = "00et0000000q111")
)
Notes:
000385070

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.