Data validation with several conditions

Beneindias

Board Regular
Joined
Jun 21, 2022
Messages
120
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi beautiful people,

I have a problem with a file, because I can't figure out how to make a data validation that does what I need.

So, I want the data validation in cell A1
I have cell B1, where I can have it empty, or with a value(number)

Data validation that I need:
If cell B1 is empty, cell A1 should be empty, but if cell B1 have a value, I need to be able to put 0 or 1 in cell A1

How can I do this?
Can anybody help me, please?

Thank you all
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Please try this:
Book2
ABCDE
140
21
Sheet1
Cell Formulas
RangeFormula
E1:E2E1=IF(B1<>"",TRANSPOSE({0,1}),"")
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
A1List=E1#
 
Upvote 0
Please try this:
Book2
ABCDE
140
21
Sheet1
Cell Formulas
RangeFormula
E1:E2E1=IF(B1<>"",TRANSPOSE({0,1}),"")
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
A1List=E1#
I just discovered why I wasn't able to do the dat validation.

I forgot to uncheck the order to ignore empty cells.

So, I didn't even tried your code.

Thank you for your help
 
Upvote 0
Solution

Forum statistics

Threads
1,223,945
Messages
6,175,555
Members
452,652
Latest member
eduedu

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