Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 215
Default Combine Formula and Data Validation List in a Single Cell ??

Hello;

a) Cell C7 has a drop-down list of 6 values (data source AJ2:AJ7):
.....3
.....4
.....5
.....6
.....7
.....8

b) I need to impose a restriction on the selection such that:
IF the value in cell Q14 is 19 or 21, THEN the value in C7 should ONLY be 4
IF the value in cell Q14 is 20 or 22, THEN the value in C7 should ONLY be 5
ELSE any selected value from the list is valid.

Is there a way of doing that ??

Your help would be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Combine Formula and Data Validation List in a Single Cell ??

Try this as the source for the drop down list:

=IF(OR(Q14=19,Q14=21),AJ3,IF(OR(Q14=20,Q14=22),AJ4 ,AJ2:AJ7))


--
Biff
Microsoft Excel MVP


"monir" wrote in message
...
Hello;

a) Cell C7 has a drop-down list of 6 values (data source AJ2:AJ7):
....3
....4
....5
....6
....7
....8

b) I need to impose a restriction on the selection such that:
IF the value in cell Q14 is 19 or 21, THEN the value in C7 should ONLY be
4
IF the value in cell Q14 is 20 or 22, THEN the value in C7 should ONLY be
5
ELSE any selected value from the list is valid.

Is there a way of doing that ??

Your help would be greatly appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 215
Default Combine Formula and Data Validation List in a Single Cell ??

Perfect! Thank you.


"T. Valko" wrote:

Try this as the source for the drop down list:

=IF(OR(Q14=19,Q14=21),AJ3,IF(OR(Q14=20,Q14=22),AJ4 ,AJ2:AJ7))


--
Biff
Microsoft Excel MVP


"monir" wrote in message
...
Hello;

a) Cell C7 has a drop-down list of 6 values (data source AJ2:AJ7):
....3
....4
....5
....6
....7
....8

b) I need to impose a restriction on the selection such that:
IF the value in cell Q14 is 19 or 21, THEN the value in C7 should ONLY be
4
IF the value in cell Q14 is 20 or 22, THEN the value in C7 should ONLY be
5
ELSE any selected value from the list is valid.

Is there a way of doing that ??

Your help would be greatly appreciated.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Combine Formula and Data Validation List in a Single Cell ??

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"monir" wrote in message
...
Perfect! Thank you.


"T. Valko" wrote:

Try this as the source for the drop down list:

=IF(OR(Q14=19,Q14=21),AJ3,IF(OR(Q14=20,Q14=22),AJ4 ,AJ2:AJ7))


--
Biff
Microsoft Excel MVP


"monir" wrote in message
...
Hello;

a) Cell C7 has a drop-down list of 6 values (data source AJ2:AJ7):
....3
....4
....5
....6
....7
....8

b) I need to impose a restriction on the selection such that:
IF the value in cell Q14 is 19 or 21, THEN the value in C7 should ONLY
be
4
IF the value in cell Q14 is 20 or 22, THEN the value in C7 should ONLY
be
5
ELSE any selected value from the list is valid.

Is there a way of doing that ??

Your help would be greatly appreciated.






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
FORMULA WITH A CELL THAT HAS A DATA VALIDATION LIST IN IT armymatt Excel Worksheet Functions 2 February 13th 08 10:43 PM
combine the two into a single formula please Steved Excel Worksheet Functions 3 September 8th 05 01:31 AM
HELP: Data > Validation ---List ----Formula amit Excel Worksheet Functions 3 April 15th 05 01:38 PM
How do I combine tabulated data into a single column and list alphabetically? Kev Nurse Excel Discussion (Misc queries) 1 February 4th 05 01:55 AM
how to add two data validation lists to a single cell? Mike Peter Excel Worksheet Functions 1 December 8th 04 08:22 PM


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