Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Using validation to block cells


I'm just getting started with using validation, so I know the gist of
using data-validation to limit the input perameters, but I was
wondering if anyone could help me with something a bit more
complicated. In one cell, I want to limit the user to inputting either
a 1, 2, 3, or N/A. If they put a 1,2, or 3, they can continue across
the row, filling out the rest of the fields (patient data). If they
put an N/A, however, I'd like to somehow block them from entering any
data in the cells to the right of the cell with the N/A. I'm sure
excel can do this, I just couldn't find a tutorial about it.

Also, are there multiple types of "blocked" cells (i.e. locked, hidden,
darkened out, input error if anything is typed in it, etc.)? Is there a
way to do validation with each of them, or does validation only support
one type?

Thanks,
-RiotLoadTime


--
RiotLoadTime
------------------------------------------------------------------------
RiotLoadTime's Profile: http://www.excelforum.com/member.php...o&userid=35956
View this thread: http://www.excelforum.com/showthread...hreadid=569856

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Using validation to block cells


Make a list let's say in Column D:
1
2
3
N/A

In the validation form select List and in the Source specify
=$D$1:$D$4


--
raypayette


------------------------------------------------------------------------
raypayette's Profile: http://www.excelforum.com/member.php...o&userid=29569
View this thread: http://www.excelforum.com/showthread...hreadid=569856

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Using validation to block cells


Ray,

I understand that that will make my drop-down box with those four
options (1, 2, 3, N/A), but with it block the input user from filling
in any of the cells in the same row if "N/A" is selected?

Thanks,
-RiotLoadTime


--
RiotLoadTime
------------------------------------------------------------------------
RiotLoadTime's Profile: http://www.excelforum.com/member.php...o&userid=35956
View this thread: http://www.excelforum.com/showthread...hreadid=569856

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Using validation to block cells


I have provided a solution for this, please look at my previous post.

RiotLoadTime Wrote:
Ray,

I understand that that will make my drop-down box with those four
options (1, 2, 3, N/A), but with it block the input user from filling
in any of the cells in the same row if "N/A" is selected?

Thanks,
-RiotLoadTime



--
starguy
------------------------------------------------------------------------
starguy's Profile: http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=569856

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Using validation to block cells


Thanks a lot Starguy, that helps quite a bit. I was wondering if you
also knew how to add additional validation to the cells in B:F so that
it's not only OR($AB3=1,$AB3=2,$AB3=3) but also the input user must
input a 0 or a 1. I tried =AND(OR($AB3=1,$AB3=2,$AB3=3),OR(0,1)), but
I obviously don't exactly know how the source field works.

Thanks again,
-RiotLoadTime


--
RiotLoadTime
------------------------------------------------------------------------
RiotLoadTime's Profile: http://www.excelforum.com/member.php...o&userid=35956
View this thread: http://www.excelforum.com/showthread...hreadid=569856



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Using validation to block cells


put this in formula if you want to allow 0 as well.

OR($AB3=0,$AB3=1,$AB3=2,$AB3=3)

RiotLoadTime Wrote:
Thanks a lot Starguy, that helps quite a bit. I was wondering if you
also knew how to add additional validation to the cells in B:F so that
it's not only OR($AB3=1,$AB3=2,$AB3=3) but also the input user must
input a 0 or a 1. I tried =AND(OR($AB3=1,$AB3=2,$AB3=3),OR(0,1)), but
I obviously don't exactly know how the source field works.

Thanks again,
-RiotLoadTime



--
starguy
------------------------------------------------------------------------
starguy's Profile: http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=569856

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Using validation to block cells


Starguy,

Sorry, I meant allowing the user to only input a 0 or 1 -in the cells
B:F-.

So in all: a user can only input a value into cells B:F if the
corresponding value in column A is a 1,2,3. Also, the value they put
in B:F can only be a 0 or 1

Thanks,
-RiotLoadTime


--
RiotLoadTime
------------------------------------------------------------------------
RiotLoadTime's Profile: http://www.excelforum.com/member.php...o&userid=35956
View this thread: http://www.excelforum.com/showthread...hreadid=569856

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Using validation to block cells


select your column in which you want to allow values 1,2,3,N/A
suppose you want to input these values in col A (range A1:A50)
select range A1:A50 and go to Data Validation from Allow select List
and in Source put "1, 2, 3, N/A" (without quotes) and press Ok.
now select the range at the right of this column where you want to put
other data based on the value in col A (i suppose that range is
B1:F50), after selecting this range go to Data Validation, in Allow
select Custom, in Formula put =OR($A1=1,$A1=2,$A1=3) and press Ok.
now try to put data in your sheet and check for all validations.

hope this would serve your purpose.

RiotLoadTime Wrote:
I'm just getting started with using validation, so I know the gist of
using data-validation to limit the input perameters, but I was
wondering if anyone could help me with something a bit more
complicated. In one cell, I want to limit the user to inputting either
a 1, 2, 3, or N/A. If they put a 1,2, or 3, they can continue across
the row, filling out the rest of the fields (patient data). If they
put an N/A, however, I'd like to somehow block them from entering any
data in the cells to the right of the cell with the N/A. I'm sure
excel can do this, I just couldn't find a tutorial about it.

Also, are there multiple types of "blocked" cells (i.e. locked, hidden,
darkened out, input error if anything is typed in it, etc.)? Is there a
way to do validation with each of them, or does validation only support
one type?

Thanks,
-RiotLoadTime



--
starguy
------------------------------------------------------------------------
starguy's Profile: http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=569856

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
Determine if cells are used for data validation in Excel Brettjg Excel Discussion (Misc queries) 0 June 12th 06 04:13 PM
checking that cells have a value before the workbook will close kcdonaldson Excel Worksheet Functions 8 December 5th 05 04:57 PM
Drop Down Boxes for Validation Cells are Too Wide Geoff Excel Discussion (Misc queries) 1 May 10th 05 08:27 PM
Help adding text values Texas-DC_271 Excel Worksheet Functions 7 January 15th 05 11:14 PM
Convert data type of cells to Text,Number,Date and Time Kevin Excel Worksheet Functions 1 December 31st 04 12:57 PM


All times are GMT +1. The time now is 07:19 PM.

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

About Us

"It's about Microsoft Excel"