我想在Excel 10中的单元格上添加一些数据验证。我想强制用户输入一个9-char长的字符串,前8个字符作为数字,最后一个字符串为大写字母。
提前感谢你
答案 0 :(得分:1)
这个公式可以帮助:
@Override
public View getView(int position, View convertView, ViewGroup parent) {
CustomView customView = (CustomView) convertView;
if (customView == null ) {
customView = new CustomView(false, this.getItem(position), mContext, position).getView();
}
// You need to add these setters to your CustomView
customView.setCustomDataObject(this.getItem(position));
customView.setPosition(position);
customView.setCameFromA(false);
return customView;
}
=and(isnumber(left(A1,8)+0),len(A1)=9,code(right(A1))>=65,code(right(A1))<=90)
=前8个字符为数字isnumber(left(A1,8)+0)
= 9-char long len(A1)=9
=“A”和“Z”之间的字符