Data validation

ONLYOFFICE Spreadsheet Editor offers a data validation feature that controls the parameters of the information entered in cells by users.

To access the data validation feature, choose a cell, a range of cells, or a whole spreadsheet you want to apply the feature to, open the Data tab, and click the Data Validation icon on the top toolbar. The opened Data Validation window contains three tabs: Settings, Input Message, and Error Alert.

Settings

The Settings section allows you to specify the type of data that can be entered:

Note: Check the Apply these changes to all other cells with the same settings box to use the same settings to the selected range of cells or a whole worksheet.

Data validation - settings window

  • choose the required option in the Allow menu:
    • Any value: no limitations on information type.
    • Whole number: only whole numbers are allowed.
    • Decimal: only numbers with a decimal point are allowed.
    • List: only options from the drop-down list you created are allowed. Uncheck the Show drop-down list in cell box to hide the drop-down arrow.

      List - settings

    • Date: only cells with the date format are allowed.
    • Time: only cells with the time format are allowed.
    • Text length: sets the characters limit.
    • Other: sets the necessary validation parameter given as a formula.

    Note: Check the Apply these changes to all other cells with the same settings box to use the same settings to the selected range of cells or a whole worksheet.

  • specify a validation condition in the Data menu:
    • between: the data in cells should be within the range set by the validation rule.
    • not between: the data in cells should not be within the range set by the validation rule.
    • equals: the data in cells should be equal to the value set by the validation rule.
    • does not equal: the data in cells should not be equal to the value set by the validation rule.
    • greater than: the data in cells should exceed the values set by the validation rule.
    • less than: the data in cells should be less than the values set by the validation rule.
    • greater than or equal to: the data in cells should exceed or be equal to the value set by the validation rule.
    • less than or equal to: the data in cells should be less than or equal to the value set by the validation rule.
  • create a validation rule depending on the allowed information type:
    Validation conditionValidation ruleDescriptionAvailability
    Between / not betweenMinimum / MaximumSets the value rangeWhole number / Decimal / Text length
    Start date / End dateSets the date rangeDate
    Start time / End timeSets the time periodTime


    Equals / does not equal
    Compare toSets the value for comparisonWhole number / Decimal
    DateSets the date for comparisonDate
    Elapsed timeSets the time for comparisonTime
    LengthSets the text length value for comparisonText length
    Greater than / greater than or equal toMinimumSets the lower limitWhole number / Decimal / Text length
    Start dateSets the starting dateDate
    Start timeSets the starting timeTime
    Less than / less than or equal toMaximum Sets the higher limitWhole number / Decimal / Text length
    End dateSets the ending dateDate
    End timeSets the ending timeTime
    As well as:
    • Source: provide the source of information for the List information type.
    • Formula: enter the required formula to create a custom validation rule for the Other information type.

Input Message

The Input Message section allows you to create a customized message displayed when a user hovers their mouse pointer over the cell.

Data validation - input message settings

  • Specify the Title and the body of your Input Message.
  • Uncheck the Show input message when cell is selected to disable the display of the message. Leave it to display the message.

Input message - example

Error Alert

The Error Alert section allows you to specify the message displayed when the data given by users does not meet the validation rules.

Data validation - error alert settings

  • Style: choose one of the available presets, Stop, Alert, or Message.
  • Title: specify the title of the alert message.
  • Error Message: enter the text of the alert message.
  • Uncheck the Show error alert after invalid data is entered box to disable the display of the alert message.

Error alert - example

Watch video

Data validation for spreadsheets in ONLYOFFICE Docs

Restrict entering irrelevant values into cells of your spreadsheet with data validation.

Host ONLYOFFICE Docs on your own server or use it in the cloud

Article with the tag:
Browse all tags