Excel Formula to populate table based on data obtained from another table with multiple drop down lists

74 Views Asked by At

I'm looking for a formula to populate a table based on data obtained from another table that has multiple drop-down lists.

enter image description here

Any help will be greatly appreciated.

2

There are 2 best solutions below

0
On BEST ANSWER

Try something along the lines of using without any recursive LAMBDA() with more efficiency.

enter image description here


• Formula used in cell A8

=TRIM(TEXTSPLIT(TEXTAFTER(" "&TOCOL(TOROW(B2:C2&" "&TOCOL(B3:C3))&" "&TOCOL(B4:D4))," ",{1,2,3})," "))

Or, bit more dynamic

enter image description here


=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)

0
On
=DROP(REDUCE("",TOROW(B1:C1&"-"&TOCOL(B2:C2))&"-"&TOCOL(B3:D3),LAMBDA(a,b,VSTACK(a,TEXTSPLIT(b,"-")))),1)

Note that "-" delimiter is used to join and split. Choose it visely.

Result:

enter image description here