+ Reply to Thread
Results 1 to 2 of 2

How to validate data entries to be unique within an array

Hybrid View

  1. #1
    Dwight at Boeing
    Guest

    How to validate data entries to be unique within an array

    I am using a worksheet to track channel assignments for a data acquisition
    system. The sheet has an array of cells which define by rows the input cards
    in the system. The columns are the channels for each card. The entries are
    short mnemonics which identify which signal is connected to a particular
    channel. I would like to make sure that the same signal name cannot be
    entered twice in the array. This validation would assist in relocating
    signals if the system has to be reconfigured and would assist in assigning
    signal names to new proposed signals.

    Can an array of cells be selected and a validation check applied to make
    sure that only one occurence of a data entry is made within the array?

  2. #2
    Bernie Deitrick
    Guest

    Re: How to validate data entries to be unique within an array

    Dwight,

    Select your cells, then use Data | Validation... Choose "Custom" and use a
    formula like

    =COUNTIF($A$1:$H$10,A1)<=1

    This formula should be written with the address of the entire range in $$
    format as the first argument, and the address of the activecell (the cell
    that is not shaded within the selection) as the second.

    HTH,
    Bernie
    MS Excel MVP

    "Dwight at Boeing" <Dwight at Boeing@discussions.microsoft.com> wrote in
    message news:302C2E38-F9C6-4C80-A060-25A6ECF3C2E4@microsoft.com...
    > I am using a worksheet to track channel assignments for a data acquisition
    > system. The sheet has an array of cells which define by rows the input

    cards
    > in the system. The columns are the channels for each card. The entries

    are
    > short mnemonics which identify which signal is connected to a particular
    > channel. I would like to make sure that the same signal name cannot be
    > entered twice in the array. This validation would assist in relocating
    > signals if the system has to be reconfigured and would assist in assigning
    > signal names to new proposed signals.
    >
    > Can an array of cells be selected and a validation check applied to make
    > sure that only one occurence of a data entry is made within the array?




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1