Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
dgraham
 
Posts: n/a
Default Data Validation Question


Hi, I have the following formula that i use, is there a way to have the
numbers in a worksheet as they will change ie.. numbers will be added
and removed.

=AND(OR(AND(B3=121,B3<=125),AND(B3=149,B3<=156), AND(B3=320,B3<=363),AND(B3=700,B3<=799),AND(B3= 800,B3<=991)),COUNTIF($B$3:$E$46,B3)<2)

Regards

David


--
dgraham
------------------------------------------------------------------------
dgraham's Profile: http://www.excelforum.com/member.php...o&userid=33138
View this thread: http://www.excelforum.com/showthread...hreadid=536648

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bryan Hessey
 
Posts: n/a
Default Data Validation Question


In (say) K1:L5 put
121 125
149 156
320 363
700 798
800 991

then use

=AND(OR(AND(B3=K1,B3<=L1),AND(B3=K2,B3<=L2),
AND(B3=K3,B3<=L3),AND(B3=K4,B3<=L4),AND(B3=
K5,B3<=L5)),COUNTIF($B$3:$E$46,B3)<2)

HTH

--

dgraham Wrote:
Hi, I have the following formula that i use, is there a way to have the
numbers in a worksheet as they will change ie.. numbers will be added
and removed.

=AND(OR(AND(B3=121,B3<=125),AND(B3=149,B3<=156), AND(B3=320,B3<=363),AND(B3=700,B3<=799),AND(B3= 800,B3<=991)),COUNTIF($B$3:$E$46,B3)<2)

Regards

David



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=536648

  #3   Report Post  
Posted to microsoft.public.excel.misc
dgraham
 
Posts: n/a
Default Data Validation Question


Thanks, If I choose to use another sheet, would I put "Sheet1!" in front
of the cell range.

David


--
dgraham
------------------------------------------------------------------------
dgraham's Profile: http://www.excelforum.com/member.php...o&userid=33138
View this thread: http://www.excelforum.com/showthread...hreadid=536648

  #4   Report Post  
Posted to microsoft.public.excel.misc
Bryan Hessey
 
Posts: n/a
Default Data Validation Question


Whatever the name of the sheet you choose to use to store the numbers,
yes.


=AND(OR(AND(B3=Sheet4!K1,B3<=Sheet4!L1),AND(B3=S heet4!K2,B3<=Sheet4!L2),
AND(B3=Sheet4!K3,B3<=Sheet4!L3),AND(B3=Sheet4!K4 ,B3<=Sheet4!L4),AND(B3=Sheet4!K5,B3<=Sheet4!L5)), COUNTIF($B$3:$E$46,B3)<2)

--

dgraham Wrote:
Thanks, If I choose to use another sheet, would I put "Sheet1!" in front
of the cell range.

David



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=536648

  #5   Report Post  
Posted to microsoft.public.excel.misc
dgraham
 
Posts: n/a
Default Data Validation Question


Thank Brian,

When I use another sheet I get an error message "You may not use
references to other worksheets or workbooks for Data Validation
criteria" I guess that means I can't do it?

Regards

David


--
dgraham
------------------------------------------------------------------------
dgraham's Profile: http://www.excelforum.com/member.php...o&userid=33138
View this thread: http://www.excelforum.com/showthread...hreadid=536648



  #6   Report Post  
Posted to microsoft.public.excel.misc
Bryan Hessey
 
Posts: n/a
Default Data Validation Question


. . ... Data Validation?
was not mentioned (except as a topic).

If you are using data validation on the data to check validity against
the permitted ranges in the table you could duplicate the table into
the current sheet, with (say) AK1:AL5 = Sheet4!AK1 etc

--

dgraham Wrote:
Thank Brian,

When I use another sheet I get an error message "You may not use
references to other worksheets or workbooks for Data Validation
criteria" I guess that means I can't do it?

Regards

David



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=536648

  #7   Report Post  
Posted to microsoft.public.excel.misc
Gary Brown
 
Posts: n/a
Default Data Validation Question


You can put the table onto another sheet, but instead of using cell
references, you use named ranges. Data Validation works with cell
references, as long as they are in the same sheet, but stangly Data
Validation will work if you use named ranges, which refer to cells in
another sheet.


--
Gary Brown
------------------------------------------------------------------------
Gary Brown's Profile: http://www.excelforum.com/member.php...o&userid=17084
View this thread: http://www.excelforum.com/showthread...hreadid=536648

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
Excel Macro to Copy & Paste [email protected] Excel Worksheet Functions 0 December 1st 05 01:56 PM
Data validation question Ted Rogers New Users to Excel 3 September 5th 05 12:26 AM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
Another Exciting Data Table Question!!!! xinekite Charts and Charting in Excel 1 May 29th 05 01:22 PM
DATA VALIDATION IN REVERSE #2 (FOR JULIE D.) Wayne Excel Discussion (Misc queries) 0 March 22nd 05 06:24 AM


All times are GMT +1. The time now is 02:10 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"