Empty data cell validation

不羁的心 提交于 2021-01-28 14:19:25

问题


How can I add validation on cell, that checks if the cell is not empty after creating new data record? Something like mandatory fields.


回答1:


I think this is not possible (in the way I think you are requesting). From here:

If data validation is applied to cells containing data, rules won't be applied until the data is modified.

That does not actually say "No, it is not possible" but I think can be inverted as, "No modification, no trigger for validation" - and I'm assuming your cells start off empty (though for blanks I think it does not actually make any difference).

I suggest considering alternatives, possibly conditional formatting of cells that are empty (there is specific provision for Cell is empty), a formula to count the number of blanks cells in a range that should be populated (since you mention records you might prefer a row to be flagged rather than each individual blank cell), or resorting to a script.



来源:https://stackoverflow.com/questions/24995055/empty-data-cell-validation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!