ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   If A1 is empty, then delete the cell I'm in - with data validatio (https://www.excelbanter.com/excel-programming/381932-if-a1-empty-then-delete-cell-im-data-validatio.html)

Shelly

If A1 is empty, then delete the cell I'm in - with data validatio
 
Hello,

I have a cell (B1) that is using data validation to a named list.
I want to also put a condition on the cell (B1) that if a particular other
cell (A1) is empty, then this cell (B1) is empty too. But, the data
validation won't let me put a forumula into the cell (B1).

How can I put a formula into a cell that is 'protected' by data validation?

Thanks!

Bernard Liengme

If A1 is empty, then delete the cell I'm in - with data validatio
 
Not sure if this will satisfy:
In H1:H10 I have the valid entries
In I1 I have the formula =IF(ISBLANK($A$1),"",H1) which I copy down to I10
I name I1:I10 as OKlist
In Data Validation I specify OKlist
Now, OKLIst will have values in it if A1 is non-blank otherwise the list
hold 10 blanks
However, I can still type invalid entries in B1 when A1 is blank
I could use Conditional Formatting to make the cell red under these
conditions
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Shelly" wrote in message
...
Hello,

I have a cell (B1) that is using data validation to a named list.
I want to also put a condition on the cell (B1) that if a particular other
cell (A1) is empty, then this cell (B1) is empty too. But, the data
validation won't let me put a forumula into the cell (B1).

How can I put a formula into a cell that is 'protected' by data
validation?

Thanks!





All times are GMT +1. The time now is 12:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com