公式这么长,求简化!
=IF(MATCH(VALUE(RIGHT(A2,2)),{0,1,26,51,76})=5,REPLACE(A2,LEN(A2)-2+1,2,"76")&" ~ "&IF(LEN(A2)<8,REPLACE(TEXT(VALUE(REPLACE(A2,LEN(A2)-2+1,2,"76"))+24,"00000000"),1,8-LEN(A2),""),TEXT(VALUE(REPLACE(A2,LEN(A2)-2+1,2,"76"))+24,"00000000")),IF(MATCH(VALUE(RIGHT(A2,2)),{0,1,26,51,76})=4,REPLACE(A2,LEN(A2)-2+1,2,"51")&" ~ "&REPLACE(A2,LEN(A2)-2+1,2,"75"),IF(MATCH(VALUE(RIGHT(A2,2)),{0,1,26,51,76})=3,REPLACE(A2,LEN(A2)-2+1,2,"26")&" ~ "&REPLACE(A2,LEN(A2)-2+1,2,"50"),IF(MATCH(VALUE(RIGHT(A2,2)),{0,1,26,51,76})=2,REPLACE(A2,LEN(A2)-2+1,2,"01")&" ~ "&REPLACE(A2,LEN(A2)-2+1,2,"25"),IF(MATCH(VALUE(RIGHT(A2,2)),{0,1,26,51,76})=1,REPLACE(A2,LEN(A2)-3+1,3,TEXT((VALUE(RIGHT(A2,3))-24),"000"))&" ~ "&A2))))) |