ExcelTip.Net留存知识帖 ---【注:附件之前被网盘供应商清空后,现已修复-现已修复-现已修复为本地下载!】
现在位置:首页 > E问E答 > 函数与公式 > 如何从同一单元格字符串中拆分最大值最小值?

如何从同一单元格字符串中拆分最大值最小值?

作者:绿色风 分类: 时间:2022-08-17 浏览:112
楼主
lrlxxqxa
Q:如何从同一单元格字符串中拆分最大值最小值?


 

A:以最小值为例(最大值同理)

1
  1. =IF(ISNUMBER(FIND("-",$A2)),--LEFT($A2,FIND("-",$A2)-1),IF(OR(LEFT($A2)={"≥",">"}),--MID($A2,2,5),IF(OR(LEFT($A2)={"≤","<"}),0,IF(ISNUMBER(FIND("±",$A2)),LEFT($A2,FIND("±",$A2)-1)-MID($A2,FIND("±",$A2)+1,5)))))


2
  1. =IF(ISNUMBER(FIND("-",$A2)),--LEFT($A2,FIND("-",$A2)-1),IF(OR(LEFT($A2)={"≥",">"}),--MID($A2,2,5),IF(OR(LEFT($A2)={"≤","<"}),0,IF(ISNUMBER(FIND("±",$A2)),LEFT($A2,FIND("±",$A2)-1)-MID($A2,FIND("±",$A2)+1,5)))))


3
  1. =--CHOOSE(LOOKUP(1,0/(LEN(A2)-LEN(SUBSTITUTE(A2,{"-","≥","≤",">","<","±"},))),ROW($1:$6)),LEFT(A2,FIND("-",A2)-1),MID(A2,2,99),0,MID(A2,2,99),0,LEFT(A2,FIND("±",A2)-1)-MID(A2,FIND("±",A2)+1,99))


4
  1. =--CHOOSE(LOOKUP(,-FIND({"-","≥",">","≤","<","±"},A2),{1,2,3,4,5,6}),LEFT(A2,FIND("-",A2)-1),MID(A2,2,15),MID(A2,2,15),0,0,LEFT(A2,FIND("±",A2)-1)-MID(A2,FIND("±",A2)+1,15))


5
  1. =IF(OR(LEFT(A2)={"<","≤"}),,IF(OR(LEFT(A2)={"≥",">"}),MID(A2,2,9),IF(ISERR(FIND("-",A2)),LEFT(A2,FIND("±",A2)-1)-MID(A2,FIND("±",A2)+1,9),LEFT(A2,FIND("-",A2)-1))))


6
  1. =IF(COUNTIF(A2,"*-*"),LEFT(A2,FIND("-",A2)-1),IF(OR(COUNTIF(A2,{"≥*",">*"})),RIGHT(A2,LEN(A2)-1),IF(OR(COUNTIF(A2,{"≤*","<*"})),0,IF(COUNTIF(A2,"*±*"),LEFT(A2,FIND("±",A2)-1)-RIGHT(A2,LEN(A2)-FIND("±",A2)),""))))*1


7
  1. =CHOOSE(MATCH(9,FIND({"-","≥",">","<","≤","±"},A2)),LEFT(A2,FIND("-",A2)-1),MID(A2,2,9),MID(A2,2,9),,,LEFT(A2,FIND("±",A2)-1)-MID(A2,FIND("±",A2)+1,9))


8
  1. =IF(COUNT(FIND({"≥",">"},A2)),RIGHT(A2,LEN(A2)-1),-LOOKUP(1,-LEFT("00"&A2,ROW($1:$9))))-(0&MID(A2,FIND("±",A2&"±")+1,9))
  1. =-IF(COUNT(FIND({"≥",">"},A2)),-MID(A2,2,9),LOOKUP(1,-LEFT("00"&A2,ROW($1:6))))-(0&MID(A2,FIND("±",A2&"±")+1,9))
  1. =IF(COUNT(FIND({"≥",">"},A2)),MID(A2,2,9),-LOOKUP(1,-LEFT(0&0&A2,ROW($1:9))))-(0&MID(A2,FIND("±",A2&"±")+1,9))

拆分最大值最小值.rar
2楼
larkzh
收藏了,这个在判断是否符合标准时很有用。

免责声明

有感于原ExcelTip.Net留存知识的价值及部分知识具有的时间限定性因素, 经与ExcelTip.Net站长Apolloh商议并征得其同意, 现将原属ExcelTip.Net的知识帖采集资料于本站点进行展示, 供有需要的人士查询使用,也慰缅曾经的论坛时代。 所示各个帖子的原作者如对版权有异议, 可与本人沟通提出,或于本站点留言,我们会尽快处理。 在此,感谢ExcelTip.Net站长Apolloh的支持,感谢本站点所有人**绿色风(QQ:79664738)**的支持与奉献,特此鸣谢!
------本人网名**KevinChengCW(QQ:1210618015)**原ExcelTip.Net总版主之一

评论列表
sitemap