A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How to restrict user to input only one of multiple cells



 
 
Thread Tools Display Modes
  #1  
Old August 28th, 2008, 03:37 PM posted to microsoft.public.excel.worksheet.functions
JAmes
external usenet poster
 
Posts: 904
Default How to restrict user to input only one of multiple cells

Hello, here's a problem I've been wrestling with. Is there any way to design
a worksheet that would only allow a user to enter a value in one of a group
of cells? For example, suppose A1, B1, and C1 were my group, corresponding to
outcomes like positive/neutral/negative. If the user makes an entry in B1,
say, the worksheet would disallow and/or delete anything in A1 or C1.

I know you can do this in VB, and I know you could avoid the problem
entirely by simply having one cell that was restricted (via Data Validation)
to the three outcomes above. But neither of these are options for me. Anyone
know how to do this as described?

James
  #2  
Old August 28th, 2008, 04:23 PM posted to microsoft.public.excel.worksheet.functions
Gary''s Student
external usenet poster
 
Posts: 7,584
Default How to restrict user to input only one of multiple cells

You are correct! Data Validation is the solution.

Data Validation Settings Custom Formula
=COUNTA($A$1:$C$1)2

--
Gary''s Student - gsnu200802


"James" wrote:

Hello, here's a problem I've been wrestling with. Is there any way to design
a worksheet that would only allow a user to enter a value in one of a group
of cells? For example, suppose A1, B1, and C1 were my group, corresponding to
outcomes like positive/neutral/negative. If the user makes an entry in B1,
say, the worksheet would disallow and/or delete anything in A1 or C1.

I know you can do this in VB, and I know you could avoid the problem
entirely by simply having one cell that was restricted (via Data Validation)
to the three outcomes above. But neither of these are options for me. Anyone
know how to do this as described?

James

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:21 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.