Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default formula custom data validation

I have a small table in excel, which appears as follows:
A B C
EX-1 94000 110700
EX-2 105400 124100
EX-3 118000 138900
EX-4 135500 159500
EX-5 151800 178700
MOF-5 117206 144551

Below this chart, I will require many data entries. Column D is a drop down
list which forces users to pick one of the values in column A above. Column
I is where users will have to enter a valid number--in this case, I am trying
to create a data validation formula in column I which will allow users to
enter any value beween the minimum value in B and the maximum value in C,
based on the value they chose in column D.

I have read a lot of info on the nested IF function, and understand that you
can nest up to 7 layers. However, in the data validation formula, as soon as
I enter more than 4 layers, nothing works. Stop at only 4, and my validation
works perfectly.

Here is the formula I want to enter:
=IF(AND(D11=$A$3,I11=$B$3,I11<=$C$3),I11,IF(AND(D 11=$A$4,I11=$B$4,I11<=$C$4),I11,IF(AND(D11=$A$5,I 11=$B$5,I11<=$C$5),I11,IF(AND(D11=$A$6,I11=$B$6, I11<=$C$6),I11,IF(AND(D11=$A$7,I11=$B$7,I11<=$C$7 ),I11,IF(AND(D11=$A$8,I11=$B$8,I11<=$C$8),I11)))) ))

However, the only way it seems to work is if I remove 2 of the arguments:
=IF(AND(D11=$A$3,I11=$B$3,I11<=$C$3),I11,IF(AND(D 11=$A$4,I11=$B$4,I11<=$C$4),I11,IF(AND(D11=$A$5,I 11=$B$5,I11<=$C$5),I11,IF(AND(D11=$A$6,I11=$B$6, I11<=$C$6),I11))))

Can somebody please help me? I'm not completely new to excel, but I cannot
for the life of me figure out why this doesn't work--why it stops at 4, if I
enter a fifth "if", none of the data validation works.

Thanks, Kara

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default formula custom data validation

If you are using XL2003 or earlier, there is a limit of 7 levels of
nesting with functions - not just with IFs. You are using IF functions
and AND functions, and so you reach this limit after 4 IFs.

Perhaps you need to revise your data validation rules.

Pete

On Feb 6, 11:57*am, Kara wrote:
I have a small table in excel, which appears as follows:
A * * * * *B * * * * C
EX-1 *94000 *110700
EX-2 *105400 *124100
EX-3 *118000 *138900
EX-4 *135500 *159500
EX-5 *151800 *178700
MOF-5 117206 144551

Below this chart, I will require many data entries. *Column D is a drop down
list which forces users to pick one of the values in column A above. *Column
I is where users will have to enter a valid number--in this case, I am trying
to create a data validation formula in column I which will allow users to
enter any value beween the minimum value in B and the maximum value in C,
based on the value they chose in column D.

I have read a lot of info on the nested IF function, and understand that you
can nest up to 7 layers. *However, in the data validation formula, as soon as
I enter more than 4 layers, nothing works. *Stop at only 4, and my validation
works perfectly.

Here is the formula I want to enter:
=IF(AND(D11=$A$3,I11=$B$3,I11<=$C$3),I11,IF(AND(D 11=$A$4,I11=$B$4,I11<=$C*$4),I11,IF(AND(D11=$A$5, I11=$B$5,I11<=$C$5),I11,IF(AND(D11=$A$6,I11=$B$6 ,*I11<=$C$6),I11,IF(AND(D11=$A$7,I11=$B$7,I11<=$C $7),I11,IF(AND(D11=$A$8,I11*=$B$8,I11<=$C$8),I11) )))))

However, the only way it seems to work is if I remove 2 of the arguments:
=IF(AND(D11=$A$3,I11=$B$3,I11<=$C$3),I11,IF(AND(D 11=$A$4,I11=$B$4,I11<=$C*$4),I11,IF(AND(D11=$A$5, I11=$B$5,I11<=$C$5),I11,IF(AND(D11=$A$6,I11=$B$6 ,*I11<=$C$6),I11))))

Can somebody please help me? *I'm not completely new to excel, but I cannot
for the life of me figure out why this doesn't work--why it stops at 4, if I
enter a fifth "if", none of the data validation works.

Thanks, Kara


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default formula custom data validation

Use this as your data validation formula:

=AND(I11=MIN(IF(A3:A8=D11,B3:B8)),I11<=MAX(IF(A3: A8=D11,C3:C8)))

--
Biff
Microsoft Excel MVP


"Kara" wrote in message
...
I have a small table in excel, which appears as follows:
A B C
EX-1 94000 110700
EX-2 105400 124100
EX-3 118000 138900
EX-4 135500 159500
EX-5 151800 178700
MOF-5 117206 144551

Below this chart, I will require many data entries. Column D is a drop
down
list which forces users to pick one of the values in column A above.
Column
I is where users will have to enter a valid number--in this case, I am
trying
to create a data validation formula in column I which will allow users to
enter any value beween the minimum value in B and the maximum value in C,
based on the value they chose in column D.

I have read a lot of info on the nested IF function, and understand that
you
can nest up to 7 layers. However, in the data validation formula, as soon
as
I enter more than 4 layers, nothing works. Stop at only 4, and my
validation
works perfectly.

Here is the formula I want to enter:
=IF(AND(D11=$A$3,I11=$B$3,I11<=$C$3),I11,IF(AND(D 11=$A$4,I11=$B$4,I11<=$C$4),I11,IF(AND(D11=$A$5,I 11=$B$5,I11<=$C$5),I11,IF(AND(D11=$A$6,I11=$B$6, I11<=$C$6),I11,IF(AND(D11=$A$7,I11=$B$7,I11<=$C$7 ),I11,IF(AND(D11=$A$8,I11=$B$8,I11<=$C$8),I11)))) ))

However, the only way it seems to work is if I remove 2 of the arguments:
=IF(AND(D11=$A$3,I11=$B$3,I11<=$C$3),I11,IF(AND(D 11=$A$4,I11=$B$4,I11<=$C$4),I11,IF(AND(D11=$A$5,I 11=$B$5,I11<=$C$5),I11,IF(AND(D11=$A$6,I11=$B$6, I11<=$C$6),I11))))

Can somebody please help me? I'm not completely new to excel, but I
cannot
for the life of me figure out why this doesn't work--why it stops at 4, if
I
enter a fifth "if", none of the data validation works.

Thanks, Kara



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default formula custom data validation

Brilliant! I can't thank you enough, you have no idea how many hours I
agonized over how to make this work, thanks so much Biff, I really appreciate
it :)

"T. Valko" wrote:

Use this as your data validation formula:

=AND(I11=MIN(IF(A3:A8=D11,B3:B8)),I11<=MAX(IF(A3: A8=D11,C3:C8)))

--
Biff
Microsoft Excel MVP


"Kara" wrote in message
...
I have a small table in excel, which appears as follows:
A B C
EX-1 94000 110700
EX-2 105400 124100
EX-3 118000 138900
EX-4 135500 159500
EX-5 151800 178700
MOF-5 117206 144551

Below this chart, I will require many data entries. Column D is a drop
down
list which forces users to pick one of the values in column A above.
Column
I is where users will have to enter a valid number--in this case, I am
trying
to create a data validation formula in column I which will allow users to
enter any value beween the minimum value in B and the maximum value in C,
based on the value they chose in column D.

I have read a lot of info on the nested IF function, and understand that
you
can nest up to 7 layers. However, in the data validation formula, as soon
as
I enter more than 4 layers, nothing works. Stop at only 4, and my
validation
works perfectly.

Here is the formula I want to enter:
=IF(AND(D11=$A$3,I11=$B$3,I11<=$C$3),I11,IF(AND(D 11=$A$4,I11=$B$4,I11<=$C$4),I11,IF(AND(D11=$A$5,I 11=$B$5,I11<=$C$5),I11,IF(AND(D11=$A$6,I11=$B$6, I11<=$C$6),I11,IF(AND(D11=$A$7,I11=$B$7,I11<=$C$7 ),I11,IF(AND(D11=$A$8,I11=$B$8,I11<=$C$8),I11)))) ))

However, the only way it seems to work is if I remove 2 of the arguments:
=IF(AND(D11=$A$3,I11=$B$3,I11<=$C$3),I11,IF(AND(D 11=$A$4,I11=$B$4,I11<=$C$4),I11,IF(AND(D11=$A$5,I 11=$B$5,I11<=$C$5),I11,IF(AND(D11=$A$6,I11=$B$6, I11<=$C$6),I11))))

Can somebody please help me? I'm not completely new to excel, but I
cannot
for the life of me figure out why this doesn't work--why it stops at 4, if
I
enter a fifth "if", none of the data validation works.

Thanks, Kara




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default formula custom data validation

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Kara" wrote in message
...
Brilliant! I can't thank you enough, you have no idea how many hours I
agonized over how to make this work, thanks so much Biff, I really
appreciate
it :)

"T. Valko" wrote:

Use this as your data validation formula:

=AND(I11=MIN(IF(A3:A8=D11,B3:B8)),I11<=MAX(IF(A3: A8=D11,C3:C8)))

--
Biff
Microsoft Excel MVP


"Kara" wrote in message
...
I have a small table in excel, which appears as follows:
A B C
EX-1 94000 110700
EX-2 105400 124100
EX-3 118000 138900
EX-4 135500 159500
EX-5 151800 178700
MOF-5 117206 144551

Below this chart, I will require many data entries. Column D is a drop
down
list which forces users to pick one of the values in column A above.
Column
I is where users will have to enter a valid number--in this case, I am
trying
to create a data validation formula in column I which will allow users
to
enter any value beween the minimum value in B and the maximum value in
C,
based on the value they chose in column D.

I have read a lot of info on the nested IF function, and understand
that
you
can nest up to 7 layers. However, in the data validation formula, as
soon
as
I enter more than 4 layers, nothing works. Stop at only 4, and my
validation
works perfectly.

Here is the formula I want to enter:
=IF(AND(D11=$A$3,I11=$B$3,I11<=$C$3),I11,IF(AND(D 11=$A$4,I11=$B$4,I11<=$C$4),I11,IF(AND(D11=$A$5,I 11=$B$5,I11<=$C$5),I11,IF(AND(D11=$A$6,I11=$B$6, I11<=$C$6),I11,IF(AND(D11=$A$7,I11=$B$7,I11<=$C$7 ),I11,IF(AND(D11=$A$8,I11=$B$8,I11<=$C$8),I11)))) ))

However, the only way it seems to work is if I remove 2 of the
arguments:
=IF(AND(D11=$A$3,I11=$B$3,I11<=$C$3),I11,IF(AND(D 11=$A$4,I11=$B$4,I11<=$C$4),I11,IF(AND(D11=$A$5,I 11=$B$5,I11<=$C$5),I11,IF(AND(D11=$A$6,I11=$B$6, I11<=$C$6),I11))))

Can somebody please help me? I'm not completely new to excel, but I
cannot
for the life of me figure out why this doesn't work--why it stops at 4,
if
I
enter a fifth "if", none of the data validation works.

Thanks, Kara






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
Data validation custom formula JICDB Excel Worksheet Functions 1 May 7th 07 03:44 PM
Custom data validation Guy Normandeau Excel Discussion (Misc queries) 3 April 18th 06 04:12 PM
Data Validation - Scroll in the formula bar for a custom criteria Hanno Scholtz Excel Worksheet Functions 3 September 22nd 05 02:11 PM
Data Validation - Custom - Formula DYeomans Excel Worksheet Functions 2 May 2nd 05 05:21 AM
Excel2K: Is it possible to use dynamic named ranges in custom data validation formula? Arvi Laanemets Excel Discussion (Misc queries) 0 December 2nd 04 11:29 AM


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