I have found a solution for anyone interested.
Find row in which row sits in main table, example below
F(ISERROR(MATCH($B$7,Capabilities!$B$6:$B$756,0)),0,MATCH(B7,Capabilities!$B$6:$B$756,0))
Populate main table using
Sub Macro1()
'
' Macro1 Macro
'
'
'row_start = 5 // not required?
'row_end = 376 'end row // not required?
'column_num = 4 'column number // not required?
For row_n = 4 To 376 ' Range from which data cells start
real_row_n = Worksheets("WP Reqts").Cells(row_n, 4).Value 'Cell relates to cell row on capabilities spreadsheet
rrr = 6 ' Starting column of capabilities matrix
If real_row_n > 0 Then
For col = 6 To 45 'Column range in which matrix sits (Not in capabilities spreadsheet)
jjj = Worksheets("WP Reqts").Cells(row_n, col).Value
Worksheets("Capabilities").Cells(real_row_n + 5, rrr).Value = jjj
rrr = rrr + 1
Next
End If
Next
End Sub
Not very well explained, but it's here should anyone need something similar.
Bookmarks