Forum Discussion

Peter Lyons's avatar
Peter Lyons
Copper Contributor
Apr 22, 2018

Consolidate unique values from matched cells

Hi All,

 

The table below probably explains it best, however, I am trying to consolidate the unique values in column C against the common value in column B then populate the consolidated data into column D separated with a /. If the data in column B also exists in Column F then the test "Direct" should also be consolidated into Column D.

 

Eg CNSPER can be via Direct & BNE & MEL & SYD. Result should be Direct/BNE/MEL/SYD

Where there is only one possible via point then their should be no "/"

EG MELSYD result should be Direct

 

 

 

ABCDEF
2Connecting Direct
3ODViaResult OD
4CNSPERBNEDirect/BNE/MEL/SYD CNSPER
5CNSPERMELDirect/BNE/MEL/SYD MELSYD
6CNSPERSYDDirect/BNE/MEL/SYD LAXNYC
7ADLCNSBNEBNE/MEL/SYD  
8ADLCNSMELBNE/MEL/SYD  
9ADLCNSSYDBNE/MEL/SYD  
10LAXNYCBOS   
11LAXNYCCHI   
12LAXNYCSFO   
13MELSYD    

 

Thanks in advance,

 

Peter

 

2 Replies

  • Detlef_Lewin's avatar
    Detlef_Lewin
    Silver Contributor

    Peter,

     

    {=IF(COUNTIFS($E$3:$E$5,A3),"Direct"&IF(B3="","","/"),"")&TEXTJOIN("/",TRUE,IF(($A$3:$A$12=A3)*($B$3:$B$12<>""),$B$3:$B$12,""))}

     

Resources