作業行を作ると簡単なんだけどなぁ〜〜〜?
前の回答はD〜I列に前ゼロがついちゃうから変更です_(^^;)ゞ D2は=IF($C2="","",IF(COUNTIF(RISUTO!$G:$G,$C2)=0,"",IF(LEN(VLOOKUP($C2,RISUTO!$G:$I,3,FALSE))<6-COLUMN(A1)+1,"",VALUE(MID(TEXT(VLOOKUP($C2,RISUTO!$G:$I,3,FALSE),REPT(0,6)),COLUMN(A1),1))))) M2は=IF(OR($I2="",$L2=""),"",IF(VLOOKUP($C2,RISUTO!$G:$I,3,FALSE)*VALUE($J2&$K2&$L2)=0,"",IF(LEN(VLOOKUP($C2,RISUTO!$G:$I,3,FALSE)*VALUE($J2&$K2&$L2))<10-COLUMN(A1)+1,"",--MID(TEXT(VLOOKUP($C2,RISUTO!$G:$I,3,FALSE)*VALUE($J2&$K2&$L2),REPT(0,10)),COLUMN(A1),1))))
で・・・・M16上で合計を名前定義 合計1 =SUM(SUM(Sheet1!$V$2:$V$15)*10^0,SUM(Sheet1!$U$2:$U$15)*10^1,SUM(Sheet1!$T$2:$T$15)*10^2,SUM(Sheet1!$S$2:$S$15)*10^3,SUM(Sheet1!$R$2:$R$15)*10^4) 合計2 =SUM(SUM(Sheet1!$Q$2:$Q$15)*10^5,SUM(Sheet1!$P$2:$P$15)*10^6,SUM(Sheet1!$O$2:$O$15)*10^7,SUM(Sheet1!$N$2:$N$15)*10^8,SUM(Sheet1!$M$2:$M$15)*10^9) 合計 =SUM(合計1,合計2)
M16に=IF(LEN(合計)<10-COLUMN(A1)+1,"",--MID(TEXT(合計,REPT(0,10)),COLUMN(A1),1))
って感じかなぁ〜〜〜♪♪
|