Forum Discussion

Cristixss2022's avatar
Cristixss2022
Copper Contributor
Apr 07, 2022
Solved

Array to text conditional

Hi, I am new to formulas so I ask for your help:

I wish to obtain an array to text field in column D for each change on column A. What function do I need to use.

I put a sample:

codesize I wish to be like this
5s s,m,xl,xxl
5m  
5xl  
5xxl  
2s s,m,l,xl,xxl,xxxl
2m  
2l  
2xl  
2xxl  
2xxxl  
3s s,m,l,xl
3m  
3l  
3xl  
  • Cristixss2022 

    In D2:

     

    =IF(A2=A1,"",TEXTJOIN(",",TRUE,IF($A$2:$A$1000=A2,$B$2:$B$1000,"")))

     

    If you don't have Microsoft 365 or Office 2021, but Office 2019, confirm with Ctrl+Shift+Enter.

    Fill down.

2 Replies

  • Cristixss2022 

    In D2:

     

    =IF(A2=A1,"",TEXTJOIN(",",TRUE,IF($A$2:$A$1000=A2,$B$2:$B$1000,"")))

     

    If you don't have Microsoft 365 or Office 2021, but Office 2019, confirm with Ctrl+Shift+Enter.

    Fill down.

Resources