Help needed on multple formulas in data validation

raghavender

New Member
Joined
Jul 29, 2011
Messages
8
Hi,

Please help me in datavalidation forumla

I trying to add multiple conditions in custom formula

1) I wanted to prevent the duplicate entries in range of cells (=COUNTIF($C$20:$C$31,C20)=1)

2) In same range of cells, data should accept from another range.

I tried to add both formulas using AND formula, but not wokring.

Can some body help on this

Thanks
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hi,

Please help me in datavalidation forumla

I trying to add multiple conditions in custom formula

1) I wanted to prevent the duplicate entries in range of cells (=COUNTIF($C$20:$C$31,C20)=1)

2) In same range of cells, data should accept from another range.

I tried to add both formulas using AND formula, but not wokring.

Can some body help on this

Thanks
Can you provide more specific details with regards to item 2?
 
Upvote 0
Ok sir, i will try to explain in detail:

In datavalidation option i need multiple conditions to be applied
1) Duplicate entries to be prevented, for that i tried to add the formula as (=countif($c$20:$c$31,c20)=1) and it is working fine.
2) Second conditions is : in cell range c20 to c31 values should match in another table,
a. For this i have defined a table with name “xxxxx”
b. i just added a custom validation rule as =named range i.e. =xxxxx.
Validations are working fine when i applied individually, i need both validations to be worked,
For this i added the custom validation as “ =and(countif($c$20:$c$31,c20)=1,xxxxx).
But both conditions are not working, please help me is there any way that multiple conditions can be applied in data validation.

Please reply me if you are not clear with questions.

Thanks in advance and appreciate your help on this.

Raghu
 
Upvote 0
Ok sir, i will try to explain in detail:

In datavalidation option i need multiple conditions to be applied
1) Duplicate entries to be prevented, for that i tried to add the formula as (=countif($c$20:$c$31,c20)=1) and it is working fine.
2) Second conditions is : in cell range c20 to c31 values should match in another table,
a. For this i have defined a table with name “xxxxx”
b. i just added a custom validation rule as =named range i.e. =xxxxx.
Validations are working fine when i applied individually, i need both validations to be worked,
For this i added the custom validation as “ =and(countif($c$20:$c$31,c20)=1,xxxxx).
But both conditions are not working, please help me is there any way that multiple conditions can be applied in data validation.

Please reply me if you are not clear with questions.

Thanks in advance and appreciate your help on this.

Raghu
Try this...

=AND(COUNTIF($C$20:$C$31,C20)=1,COUNTIF(xxxxx,C20))
 
Upvote 0
Wow :), its working perfectly fine, thanks for your swift response.

Is there any way that i can also add a "drop down list" data validation rule from another range.

Thanks,
Raghu
 
Upvote 0
Wow :), its working perfectly fine, thanks for your swift response.

Is there any way that i can also add a "drop down list" data validation rule from another range.

Thanks,
Raghu
Not in the same range. That would be 2 different types of validation and you can only have 1 type of validation for a cell.

You can probably do what you want with a VBA event macro if you can get someone to write the code.
 
Upvote 0

Forum statistics

Threads
1,224,564
Messages
6,179,544
Members
452,925
Latest member
duyvmex

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top