Hi,
I am trying to find on how to find unique value based on two column. Column C must be repeated based on how much unique value available in column D
Current formula used in column C is
={IFNA(INDEX($A$1:$A$6,MATCH(0,COUNTIF($C$1:C1,$A$1:$A$6),0)),"")}
Current situation
<tbody>
[TD="align: center"]1[/TD]
[TD="align: right"]Formula 1[/TD]
[TD="align: right"]Formula 2[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]PXAB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: right"]PXAB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]PXAB[/TD]
[TD="align: right"]CN[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]CN[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]CN[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]6[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]11[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]12[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
</tbody>
Intended Result
<tbody>
[TD="align: center"]1[/TD]
[TD="align: right"]Formula 1[/TD]
[TD="align: right"]Formula 2[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]PXAB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: right"]PXAB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]PXAB[/TD]
[TD="align: right"]CN[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]CN[/TD]
[TD="align: right"]PXAB[/TD]
[TD="align: right"]CN[/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]CN[/TD]
[TD="align: center"]6[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]11[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]12[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
</tbody>
OR
<tbody>
[TD="align: center"]1[/TD]
[TD="align: right"]Formula 1[/TD]
[TD="align: right"]Formula 2[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]PXAB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: right"]PXAB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]PXAB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]CN[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]CN[/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]6[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]11[/TD]
[TD="align: right"]PXAB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]12[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
</tbody>
I am trying to find on how to find unique value based on two column. Column C must be repeated based on how much unique value available in column D
Current formula used in column C is
={IFNA(INDEX($A$1:$A$6,MATCH(0,COUNTIF($C$1:C1,$A$1:$A$6),0)),"")}
Current situation
A | B | C | D | |
---|---|---|---|---|
Co Code | Country | |||
<tbody>
[TD="align: center"]1[/TD]
[TD="align: right"]Formula 1[/TD]
[TD="align: right"]Formula 2[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]PXAB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: right"]PXAB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]PXAB[/TD]
[TD="align: right"]CN[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]CN[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]CN[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]6[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]11[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]12[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
</tbody>
Intended Result
A | B | C | D | |
---|---|---|---|---|
Co Code | Country | |||
<tbody>
[TD="align: center"]1[/TD]
[TD="align: right"]Formula 1[/TD]
[TD="align: right"]Formula 2[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]PXAB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: right"]PXAB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]PXAB[/TD]
[TD="align: right"]CN[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]CN[/TD]
[TD="align: right"]PXAB[/TD]
[TD="align: right"]CN[/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]CN[/TD]
[TD="align: center"]6[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]11[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]12[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
</tbody>
OR
A | B | C | D | |
---|---|---|---|---|
Co Code | Country | |||
<tbody>
[TD="align: center"]1[/TD]
[TD="align: right"]Formula 1[/TD]
[TD="align: right"]Formula 2[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]PXAB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: right"]PXAB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]PXAB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]CN[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]CN[/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]6[/TD]
[TD="align: right"]PXBB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]11[/TD]
[TD="align: right"]PXAB[/TD]
[TD="align: right"]IN[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]12[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]13[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
</tbody>