ws.getColumn("A").eachCell({ includeEmpty: true }, function(cell, rowNumber) { cell.dataValidation = { type: 'list', allowBlank: true, formulae: ['"male,female,other"'] }; });