提问人:Diego Ribba 提问时间:11/17/2023 最后编辑:Mayukh BhattacharyaDiego Ribba 更新时间:11/17/2023 访问量:55
Excel公式,用于根据从具有多个下拉列表的另一个表获得的数据填充表格
Excel Formula to populate table based on data obtained from another table with multiple drop down lists
答:
0赞
user11222393
11/17/2023
#1
=DROP(REDUCE("",TOROW(B1:C1&"-"&TOCOL(B2:C2))&"-"&TOCOL(B3:D3),LAMBDA(a,b,VSTACK(a,TEXTSPLIT(b,"-")))),1)
请注意,“-”分隔符用于联接和拆分。明智地选择它。
结果:
0赞
Mayukh Bhattacharya
11/17/2023
#2
尝试一些类似使用的东西,没有任何递归,效率更高。LAMBDA()
• 细胞中使用的配方A8
=TRIM(TEXTSPLIT(TEXTAFTER(" "&TOCOL(TOROW(B2:C2&" "&TOCOL(B3:C3))&" "&TOCOL(B4:D4))," ",{1,2,3})," "))
或者,更动态一点
=SORT(TEXTSPLIT(TEXTAFTER(" "&TOCOL(TOCOL(IFS(B2:E2<>"",B2:E2&" "&
TOCOL(IFS(B3:E3<>"",B3:E3),3)),3)&" "&IFS(B4:E4<>"",B4:E4),3)," ",
SEQUENCE(,MAX(TOCOL(IFS(B2:E4<>"",COLUMN(B2:E4)-1),3))))," "),3)
评论