Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 261
  • Last Modified:

How to validate unique "compound" entries?

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?

Thanks
0
mlagrange
Asked:
mlagrange
1 Solution
 
NBVCCommented:
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:

=COUNTIFS($A$2:$A$5,$A2,$B$2:$B$5,$B2,$C$2:$C$5,$C2)=1

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.
0
 
mlagrangeAuthor Commented:
Works like a charm - Thanks!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now