How to convert (IF AND statement) to Custom - Data Validation

love_guy_1977

Board Regular
Joined
Aug 5, 2006
Messages
111
Hi,,

How can I convert (IF AND statement) to Custom - Data Validation.

My Example is:
=IF((AND(A1<>"",B1="")),,"XXX")

It is actually forcing C1 to accept value if A1 is not empty and B1 is empty


Thank you
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Do A1 or B1 have formulas or do you type in value in those cells? It matters.

If they have formulas, then try this as the DV formula...
=AND(LEN(A1)>0, LEN(B1)=0)

Also, make sure you have "Ignore Blank" unchecked on the Data Validation dialog.
 
Last edited:
Upvote 0
Do A1 or B1 have formulas or do you type in value in those cells? It matters.

If they have formulas, then try this as the DV formula...
=AND(LEN(A1)>0, LEN(B1)=0)

Also, make sure you have "Ignore Blank" unchecked on the Data Validation dialog.

Thank you,

=AND(NOT(ISBLANK(A1)), ISBLANK(B1))
is working with "Ignore Blank" unchecked

Thank you again
 
Upvote 0

Forum statistics

Threads
1,214,588
Messages
6,120,409
Members
448,959
Latest member
camelliaCase

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