Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 542
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Searching cells from user input masanovic Excel Discussion (Misc queries) 1 June 21st 08 11:13 AM
Restrict-Filter-Limit-Validate user input in Excel Dr. Thom Excel Discussion (Misc queries) 0 January 22nd 06 08:06 PM
how do I restrict cell input to dates only? James E Slack Excel Discussion (Misc queries) 2 December 12th 05 12:10 AM
Restrict input into cell array dlp1848 Excel Discussion (Misc queries) 1 September 26th 05 08:35 PM
Restrict input if amount is exceeded Der Musensohn Excel Worksheet Functions 1 April 8th 05 11:33 PM


All times are GMT +1. The time now is 12:49 AM.

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

About Us

"It's about Microsoft Excel"