EXCEL单元格A1输入3-6,A2的值会=A1最后值6减最前值3再加1的公式如何写
展开全部
给你一个更人性化的
=IF(A1="","",IF(A1="-",1,IF(ISERROR(VALUE(SUBSTITUTE(A1,"-",""))),"非法字符",IF(LEN(A1)-LEN(SUBSTITUTE(A1,"-",""))<>1,"格式错误",IF(REPLACE(A1,1,FIND("-",A1),"")="",,REPLACE(A1,1,FIND("-",A1),""))-IF(REPLACE(A1,FIND("-",A1),LEN(A1)-FIND("-",A1)+1,"")="",,REPLACE(A1,FIND("-",A1),LEN(A1)-FIND("-",A1)+1,""))+1))))
=IF(A1="","",IF(A1="-",1,IF(ISERROR(VALUE(SUBSTITUTE(A1,"-",""))),"非法字符",IF(LEN(A1)-LEN(SUBSTITUTE(A1,"-",""))<>1,"格式错误",IF(REPLACE(A1,1,FIND("-",A1),"")="",,REPLACE(A1,1,FIND("-",A1),""))-IF(REPLACE(A1,FIND("-",A1),LEN(A1)-FIND("-",A1)+1,"")="",,REPLACE(A1,FIND("-",A1),LEN(A1)-FIND("-",A1)+1,""))+1))))
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
=6-3+1
=4
=4
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
A2=RIGHT(A1,1)-LEFT(A1,1)+1
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询