Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Macro to Copy & Paste | Excel Worksheet Functions | |||
How can I populate an Excel cell based on the data in another cell | Excel Worksheet Functions | |||
Vlookup for data contained in a cell | Excel Worksheet Functions | |||
Sort pages? | Excel Discussion (Misc queries) | |||
Splitting Data in a Cell | Excel Worksheet Functions |