How to validate unique "compound" entries?

Posted on 2012-09-19
Last Modified: 2012-09-19
Hello - I have a data input spreadsheet where the user enters project budget allocations in rows where 3 of the cells must be a unique combination of company code, site location, and service type.

There could be any number of rows, but those 3 values, once entered on a given row, must not repeat on any other row.

How do you do this?

Question by:mlagrange
    LVL 23

    Accepted Solution

    Assuming your range to apply the validation is A2:C5, then select that range and go to Data Validation, select Custom from Allow menu and enter formula:


    Click Ok.

    Now, if you enter say a, b, c in A2:C2 you won't be able to enter that combo in any other row.

    Author Closing Comment

    Works like a charm - Thanks!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
    This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
    This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
    This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now