Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default Locking Cell through Validation

Dear All,
I am working in a program in which I want to lock a Cell in such a way like
if A1 = "Boiler" , then Cell A2 should not allow the user to enter the
number more than 28,800. If A1 = Any text other than boiler then Cell A2 can
alow the user to enter the number more than 28,800 but should not be more
than 68,000.
Please guide me how I can I do this with Data Validation. I tried with Data
Validation--- Allow--- Custom, but in vain.

Thanks and Regards,
Premanand.S

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Locking Cell through Validation

Select A2, then try this as the formula in DVAllowCustom:
=OR(AND(A1="Boiler",A2<=28800,ISNUMBER(A2)),AND(A1 <"Boiler",A2<=68800,ISNUMBER(A2)))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:15,900 Files:354 Subscribers:53
xdemechanik
---
"Premanand Sethuraman" wrote:
Dear All,
I am working in a program in which I want to lock a Cell in such a way like
if A1 = "Boiler" , then Cell A2 should not allow the user to enter the
number more than 28,800. If A1 = Any text other than boiler then Cell A2 can
alow the user to enter the number more than 28,800 but should not be more
than 68,000.
Please guide me how I can I do this with Data Validation. I tried with Data
Validation--- Allow--- Custom, but in vain.

Thanks and Regards,
Premanand.S

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default Locking Cell through Validation

Thanks Max, for providing the clear solution for my query
Prem.

"Max" wrote:

Select A2, then try this as the formula in DVAllowCustom:
=OR(AND(A1="Boiler",A2<=28800,ISNUMBER(A2)),AND(A1 <"Boiler",A2<=68800,ISNUMBER(A2)))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:15,900 Files:354 Subscribers:53
xdemechanik
---
"Premanand Sethuraman" wrote:
Dear All,
I am working in a program in which I want to lock a Cell in such a way like
if A1 = "Boiler" , then Cell A2 should not allow the user to enter the
number more than 28,800. If A1 = Any text other than boiler then Cell A2 can
alow the user to enter the number more than 28,800 but should not be more
than 68,000.
Please guide me how I can I do this with Data Validation. I tried with Data
Validation--- Allow--- Custom, but in vain.

Thanks and Regards,
Premanand.S

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Locking Cell through Validation

Welcome, Prem
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:16,000 Files:354 Subscribers:53
xdemechanik
---
"Premanand Sethuraman" wrote
in message ...
Thanks Max, for providing the clear solution for my query
Prem.



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
Locking Data Validation Drop Down Joe D Excel Discussion (Misc queries) 0 June 12th 08 02:34 PM
Locking cell whatzzup Excel Discussion (Misc queries) 2 November 1st 07 08:16 PM
Locking non-Validation cells in ranges Sandy Excel Worksheet Functions 1 September 1st 07 08:46 PM
locking formula in cells in without locking whole sheet SuziQ Excel Discussion (Misc queries) 1 July 21st 06 03:58 PM
Locking a cell John Excel Worksheet Functions 1 December 17th 05 01:04 PM


All times are GMT +1. The time now is 06:15 PM.

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"