我在不同的列中输入了这些值:
First column Second Column Third column
72 54,72 35,43
63 63,70,74 41
39 32,39,49 51
从这张表中我需要一个这样的输出:
First_output Second_output Third_output
50 54,35,43 [50,54][54][35,43]
50 70,74,41 [50,70,74][70,74][41]
50 32,49,51 [50,32,49][32,49][51]
First_output我使用if(第一列> 100,第一列,50),
second_output和third_output对我来说有点头疼,我尝试过连接的东西,但我不能为不同的场景摆脱First列。
规则:
答案 0 :(得分:0)
假设First column
在A1中,而不在VBA中,在D2中:
50
在E2中:
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B2&","&C2,A2,","),",,,",","),",,","")
在F2中:
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE("[50,"&SUBSTITUTE(B2,A2,"")&"]["&SUBSTITUTE(B2,A2,"")&"]["&C2&"]",",,",","),",]","]"),"[,","[")
并将所有三个复制到适合的地方。