Data validation with several conditions

Beneindias

Board Regular
Joined
Jun 21, 2022
Messages
116
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

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
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,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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