=LEFT(IF(VLOOKUP(表二!B2,表一!B:E,2,)=,,SUBSTITUTE(SUBSTITUTE(表一!C$1,(,VLOOKUP(表二!B2,表一!B:E,2,)),),,))&IF(VLOOKUP(表二!B2,表一!B:E,3,)=,,SUBSTITUTE(SUBSTITUTE(表一!D$1,(,VLOOKUP(表二!B2,表一!B:E,3,)),),,))&IF(VLOOKUP(表二!B2,表一!B:E,4,)=,,SUBSTITUTE(SUBSTITUTE(表一!E$1,(,VLOOKUP(表二!B2,表一!B:E,4,)),),,)),LEN(IF(VLOOKUP(表二!B2,表一!B:E,2,)=,,SUBSTITUTE(SUBSTITUTE(表一!C$1,(,VLOOKUP(表二!B2,表一!B:E,2,)),),,))&IF(VLOOKUP(表二!B2,表一!B:E,3,)=,,SUBSTITUTE(SUBSTITUTE(表一!D$1,(,VLOOKUP(表二!B2,表一!B:E,3,)),),,))&IF(VLOOKUP(表二!B2,表一!B:E,4,)=,,SUBSTITUTE(SUBSTITUTE(表一!E$1,(,VLOOKUP(表二!B2,表一!B:E,4,)),),,)))-1)