首页 > 代码库 > Excel Skill two

Excel Skill two

 


"   =IF(LEN(B3)=23,B3,A3&" "&B3&REPT(" ",23-LEN(B3))&C3)      &&&&&&& verify the char length of material


" =IF(LEN(A3)=5,A3,A3&REPT(" ",5-LEN(A3)))   *******************   verify the char length of BOM level item


=IF(LEN(A13)=5,A13,A13&REPT(" ",5-LEN(A13)))&IF(LEN(B13)=23,B13,B13&REPT(" ",23-LEN(B13))&C13)

"=IF(LEN(A3)=5,A3,A3&REPT(" ",5-LEN(A3)))&IF(LEN(B3)=23,B3,B3&REPT(" ",22-LEN(B3))&C3)   ::: Combine the three colunms

"=(IF(LEN(C3)=2,B3&REPT(" ",22-LEN(B3))&C3, B3&REPT(" ",23-LEN(B3))&C3))     ::::::::: judge the length of C column

=IF(LEN(A2)=5,A2,A2&REPT(" ",5-LEN(A2)))&IF(LEN(B2)=23,B2,B2&REPT(" ",23-LEN(B2))&C2)

=IF(LEN(A1)=5,A1,A1&REPT(" ",5-LEN(A1)))&IF(LEN(B1)=23,B1,B1&REPT(" ",23-LEN(B1))&C1)


"=IF(LEN(A3)=5,A3,A3&REPT(" ",5-LEN(A3)))&(IF(LEN(C3)=2,B3&REPT(" ",22-LEN(B3))&C3,B3&REPT(" ",23-LEN(B3))&C3))
<计算三个column(A1,B1,C1)的固定长度,但是在C1列的长度无论在1 digit or 2 digit,显示出来的位置总长度 都是一样的  >


Excel Skill two