Sub Machine_Overview()
Dim a As Variant, b As Variant
Dim lr As Long, lc As Long, r As Long, c As Long, k As Long
Dim CurrMachine As String
Const fr As Long = 7 '<- Main data header row
lr = Cells.Find(What:="*", LookIn:=xlValues, SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
lc = Cells.Find(What:="*", LookIn:=xlFormulas, SearchOrder:=xlByColumns, SearchDirection:=xlPrevious).Column
a = Range("A" & fr, Range("A" & lr)).Resize(, lc).Value
b = Range("A1", Range("A2").End(xlDown)).Resize(, lc).Value
For r = 2 To UBound(a)
If Len(a(r, 1)) > 0 Then CurrMachine = a(r, 1)
For c = 2 To UBound(a, 2)
If Len(a(r, c)) > 0 Then
k = 2
Do Until b(k, 1) = CurrMachine
k = k + 1
Loop
b(k, c) = 1
End If
Next c
Next r
With Range("A1").Resize(UBound(b, 1), UBound(b, 2))
.Value = b
.SpecialCells(xlConstants, xlNumbers).Interior.Color = 15773696
.SpecialCells(xlConstants, xlNumbers).ClearContents
End With
End Sub