# CLOSEDPERIOD

When you need to perform an action specific to the closed or open periods in a forecast, you can use the .CLOSEDPERIOD in conjunction with \[Forecast] to refer to the closed periods. To refer to the open periods, use the NOT operator along with the CLOSEDPERIOD function.&#x20;

## Example

Let us say we want to add adjustment values to the open periods while marking 'closed' for the closed periods. To refer to the closed periods, we have used \[Forecast].CLOSEDPERIOD in the example below. To check and execute the action we have used the conditional statement, [IF](https://docs.inforiver.com/formula-syntax/conditional-statements).

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FVVeNGssbSTYTqEW17AWY%2FForecast%20reference.png?alt=media&#x26;token=cbdfa46e-0ff1-4029-b254-cc8bd00ad628" alt=""><figcaption><p>.CLOSEDPERIOD</p></figcaption></figure>
