+ Reply to Thread
Results 1 to 2 of 2

Blocking entry of data in a cell

Hybrid View

  1. #1
    Rob
    Guest

    Blocking entry of data in a cell

    I have created a time sheet with four time periods, there are two possible
    entries in each period "Travel Time" and "Labor". I want to restrict entry to
    one or the other of these cells per period. I would also like to display a
    message if an attempt is made to enter data into both cells of the same
    period. I have been unable to find a solution in the help files.
    Thanks
    Rob

  2. #2
    Debra Dalgleish
    Guest

    Re: Blocking entry of data in a cell

    You can use data validation to prevent typing in both cells. For
    example, if the cells are C2 and D2:

    Select cell C2, and choose Data > Validation
    From the first dropdown, choose Custom
    In the Formula box, type: =D2=""
    Select the Error Alert tab, and type your message.
    Click OK

    Do the same in cell D2, with the formula: =C2=""

    Note that users would be able to paste values into both cells -- data
    validation only prevents invalid entries that are typed.

    Rob wrote:
    > I have created a time sheet with four time periods, there are two possible
    > entries in each period "Travel Time" and "Labor". I want to restrict entry to
    > one or the other of these cells per period. I would also like to display a
    > message if an attempt is made to enter data into both cells of the same
    > period. I have been unable to find a solution in the help files.
    > Thanks
    > Rob



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


+ 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