用方括号分隔一些值,并将数字从一列减少到另一列

Separate some values by brackets and decrease a number from a column to another column

我在不同的列中输入了这些值:

First column   Second Column    Third column
72              54,72            35,43
63              63,70,74         41
39              32,39,49         51

从这个table我需要这样的输出:

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(First column>100,First column,50),
second_output 和 third_output 对我来说有点头疼,我已经尝试过连接,但我无法摆脱不同场景的第一列。

规则:

假设 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&"]",",,",","),",]","]"),"[,","[")  

然后将所有三个都复制下来以适应。