Others

How to Prevent Duplicate Date and Desk Entries in Microsoft Lists

Olivia MillerOlivia Miller Oct 29, 2026 868 views

Question details

The user wants to prevent duplicate records for a combined date and desk selection in Microsoft Lists.

How to Prevent Duplicate Date and Desk Entries in Microsoft Lists
Product
Microsoft Lists
Device & OS
not provided
Scenario
Managing desk bookings or scheduling where a specific desk on a specific date must remain a unique combination.
Observed behavior
Microsoft Lists natively allows enforcing unique values on a single column, but lacks built-in functionality to enforce uniqueness across a combination of two or more columns.
Before you start

Ensure you have full edit permissions for your Microsoft List and access to Microsoft Power Apps within your Microsoft 365 environment to customize the submission form.

Solution 1Recommended

Use Power Apps to Validate Combined Date and Desk Fields

Since Microsoft Lists cannot natively enforce uniqueness across two columns, you must customize the list form with Power Apps to validate the date and desk combination before the item is saved.

This method intercepts the form submission process and checks the existing Microsoft List records to see if the chosen date and desk combination already exists.

1
Customize the form in Power Apps

Open your Microsoft List. In the top command bar, click on 'Integrate', select 'Power Apps', and then click 'Customize forms'.

2
Select the Submit button

Once Power Apps loads, locate the button or icon used to save the form (often a checkmark icon or a 'Save' button) and select it.

3
Modify the OnSelect property

In the formula bar for the OnSelect property, write a Power Fx formula using the LookUp or Filter function to query the list. Check if a record exists where the Date column matches the selected Date and the Desk column matches the selected Desk.

4
Add an error notification condition

Wrap your form submission function in an If statement. If the LookUp finds a match, trigger an error using Notify('This desk is already booked on this date.', NotificationType.Error). If no match is found, execute the SubmitForm(SharePointForm1) function.

5
Save and Publish

Click 'File', then 'Save', and finally click 'Publish to SharePoint'. Return to your list and test the form by attempting to submit a duplicate entry.

Use Power Apps to Validate Combined Date and Desk Fields
Custom Validation Complete: Your custom Power Apps form will now block users from submitting duplicate combinations, ensuring accurate desk booking.
Free Microsoft Office alternative

Easily Manage Schedules and Prevent Duplicates with WPS Spreadsheet

If you are managing desk bookings, schedules, or rosters and prefer a flexible, offline-friendly spreadsheet environment, WPS Office is a robust alternative. With WPS Spreadsheet, you can easily use Data Validation formulas to prevent duplicate combinations without writing complex Power Apps code.

  1. 1. Download and Install WPS Office: Get WPS Office for free from the official website and open WPS Spreadsheet.
  2. 2. Set up your tracker: Create a new booking tracker or open your existing Microsoft Excel booking file (.xlsx) directly in WPS Spreadsheet.
  3. 3. Apply Data Validation: Select your input columns, navigate to the 'Data' tab, click 'Data Validation', and apply a custom formula to block duplicate entries.
Use built-in Data Validation and COUNTIFS formulas to instantly restrict and prevent duplicate desk and date entries.100% compatible with Microsoft Excel (.xlsx, .xls) formats, ensuring seamless file sharing with your team.Lightweight, fast, and completely free to use with a familiar, easy-to-learn interface.Includes comprehensive tools for Word processing, Spreadsheets, Presentations, and PDF editing in a single suite.
microsoft office alternative - wps office

Frequently Asked Questions

Can Microsoft Lists natively prevent duplicate entries across multiple columns?

No, Microsoft Lists only supports enforcing unique values for single columns natively. To enforce uniqueness across a combination of columns (like Date and Desk), you must use Microsoft Power Apps for form validation.

Why is the 'Enforce unique values' option grayed out in List Settings?

This option may be disabled if the column type does not support unique values (such as multi-line text or choice columns that allow multiple selections), or if the list already contains duplicate values in that specific column. You must remove existing duplicates first.

Does enforcing unique values apply to items edited in the Grid view?

Yes, if a single column has 'Enforce unique values' enabled in List Settings, users will receive a validation error if they try to enter a duplicate value, even when editing the list quickly in Grid view.