0

Any idea how to convert this structured data:

enter image description here

into the following?

enter image description here

I have 30K rows so I would need a semi automatic way to do it if possible.

Thanks for your time

UPDATE: enter image description here

enter image description here

1 Answers1

0

As per my below screenshot I have used below formula to B6 cell to extract unique numbers.

=TRANSPOSE(UNIQUE(FILTERXML("<t><s>"&TEXTJOIN("</s><s>",TRUE,B2:H4)&"</s></t>","//s")))

Then in B7 cell use SUMPRODUCT() to find per client number is exist or not and copy down & across the formula as needed.

=SUMPRODUCT(($A$2:$A$4=$A7)*($B$2:$H$4=B$6))

enter image description here

Harun24hr
  • 30,391
  • 4
  • 21
  • 36