Hello, I am trying to use the unique value and the text join function. But I am having some trouble.
Thank you
Data Warehouse.xlsx | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | 510000122763 | Cost Center | Value 1 | |||
2 | 510000122763 | Cost Center | Value 1 | |||
3 | 510000122763 | Cost Center | Value 1 | |||
4 | 510000122763 | Cost Center & Payor1 | Value 2 | |||
5 | 510000122763 | Cost Center & Payor2 | Value 2 | |||
6 | 510000122763 | Cost Center | Value 2 | |||
7 | 510000122763 | Cost Center | Value 2 | |||
8 | ||||||
9 | What I am getting for my Result | |||||
10 | 510000122 | 763 | Cost Center Cost Center & Payor1 Cost Center & Payor2 | value 1 Value 2 | ||
11 | =TEXTJOIN(CHAR(10),1,UNIQUE(IF(A9&B9=A1:A7,B1:B7,""))) | =TEXTJOIN(CHAR(10),1,UNIQUE(IF(A9&B9=A1:A7,C1:C7,""))) | ||||
12 | ||||||
13 | What I'm trying to get | |||||
14 | 510000122 | 763 | Cost Center Cost Center Cost Center & Payor1 Cost Center & Payor2 | Value 1 Value 2 Value 2 Value 2 | ||
Sheet4 |
Thank you