Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
132 views
in Technique[技术] by (71.8m points)

Default cell values when editing new row non-programmatically in Google Sheets

I have a spreadsheet that I maintain manually, whenever a new line is edited I would like the columns in the row to have a default value, such as True or False or some other category value.

enter image description here

I know about using e.g. =B2:B if another column has a formula referencing B but I am just talking about setting a default value per cell. Is there a smart way of achieving this?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Try to use this formula:

=IF(LEN($A2)<>0,"Yes","-")

or

=IF(LEN($A2)<>0,"No","-")

But you may need to drag-down the formula manually if you will use this. That is why I decided to set the cell value to "-" if ever column A is empty so that you will be aware until which row did you copied the formula.

Sample Sheet: enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...