matrix – How to create the table

I want to create this kind of painting, here I give only one example, but I have to create a big painting. Please keep your answers more general.

{{a, b, c}, {a, b, c1}, {a, b, c2 .....} then {{a, b1, c1}, {a, b1, c2 ....} } then ,, {a1, b, c}, {a1, b, c}, ....}

Simplify, I want to keep the first two identical entries and change the third entry, then again the first identical entry and change the second and third for each entry of first value, there are several entries of the second and third elements. and I have a lot of entries from the first item.